The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Problem with a refresh javascript

View previous topic View next topic Go down

Solved Problem with a refresh javascript

Post by Van-Helsing on Fri 1 Aug 2014 - 20: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:

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)
})
}


Last edited by Black-Shadow on Tue 5 Aug 2014 - 9:31; edited 1 time in total

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing on Mon 4 Aug 2014 - 6:51

Bump

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing on Tue 5 Aug 2014 - 8:08

Bump

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Ange Tuteur on Tue 5 Aug 2014 - 9: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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Van-Helsing on Tue 5 Aug 2014 - 9:30

Hello Ange,
Thank you very very much its solved.
:wouhou:

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Problem with a refresh javascript

Post by Ange Tuteur on Tue 5 Aug 2014 - 9:40

You're welcome

Topic archived

Have a nice day. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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