The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem with a refresh javascript

2 posters

Go down

Solved Problem with a refresh javascript

Post by Van-Helsing Sat 02 Aug 2014, 01:14

Hi all,
I am facing a problem with a javascript which its refreshing the recent topics system. When I am pressing the refresh button http://prntscr.com/48o4bf the first(left) column is moving right http://prntscr.com/48o4rq .

My refresh Javascript code is:
Spoiler:


Last edited by Black-Shadow on Tue 05 Aug 2014, 14:31; edited 1 time in total
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing Mon 04 Aug 2014, 11:51

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing Tue 05 Aug 2014, 13:08

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Ange Tuteur Tue 05 Aug 2014, 14:27

Hi Black Shadow,

You have recent_topics in recent_topics, so you need to unwrap your replacement.

Try this :
Code:
function refreshfmvi ()
  {
    $("#immor").show();
    $("ul#recent_topics").css("opacity", 0.5).load("/forum ul#recent_topics", function ()
    {
      $("#immor").hide();
      $("ul#recent_topics").css("opacity", 1);
        $('#recent_topics #recent_topics').unwrap();
      })
  }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing Tue 05 Aug 2014, 14:30

Hello Ange,
Thank you very very much its solved.
 :wouhou:
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Ange Tuteur Tue 05 Aug 2014, 14:40

You're welcome

Topic archived

Have a nice day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum