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.
The forum of the forums
2 posters

    Problem with a refresh javascript

    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Problem with a refresh javascript

    Post by Van-Helsing August 2nd 2014, 2:14 am

    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 August 5th 2014, 3:31 pm; edited 1 time in total
    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Re: Problem with a refresh javascript

    Post by Van-Helsing August 4th 2014, 12:51 pm

    Bump
    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Re: Problem with a refresh javascript

    Post by Van-Helsing August 5th 2014, 2:08 pm

    Bump
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Problem with a refresh javascript

    Post by Ange Tuteur August 5th 2014, 3:27 pm

    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();
     Â     })
     Â }
    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Re: Problem with a refresh javascript

    Post by Van-Helsing August 5th 2014, 3:30 pm

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


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

    Solved Re: Problem with a refresh javascript

    Post by Ange Tuteur August 5th 2014, 3:40 pm

    You're welcome

    Topic archived

    Have a nice day. Smile

      Current date/time is September 22nd 2024, 8:21 pm