#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Script won't work until page reloaded :(


    Hi,

    Would anyone please give me a hint, why an animated (great wondergrid variant) menu demo at projectsbin.com/3 won't work unless page is reloaded (on a fresh browser load/no cache).

    When you hit CMD-R (reload) everything works nice.

    I use $(function() {}...
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,123
    Rep Power
    119
    Originally Posted by aranoti
    Hi,

    Would anyone please give me a hint, why an animated (great wondergrid variant) menu demo at projectsbin.com/3 won't work unless page is reloaded (on a fresh browser load/no cache).

    When you hit CMD-R (reload) everything works nice.

    I use $(function() {}...
    It looks like your using an anonymous function and they typically only are triggered; when the document is first initialized. You would need to create a named function and use a setTimeout/setInterval; in that function, to keep re-triggering the effect your going for here.

IMN logo majestic logo threadwatch logo seochat tools logo