Forums

Give help. Get help.

  • # April 4, 2013 at 8:36 am

    Hi,

    Curious if there is a preferred method for clearing/resetting the DOM cache for jQuery events…

    I’m dynamically adding an _active_ class to a series of elements with jQuery. If the page is refreshed, the _active_ class remains on the current element instead of starting over again.

    I’ve attempted to solve this by adding the following meta tags to the html, but it did not solve anything.


    Anyone have a suggestion for tackling this issue? Thank You.

    # April 4, 2013 at 9:54 am

    I’ve never heard of something like that, got a demo?

    # April 4, 2013 at 10:14 am

    Hmm, I’m not seeing the issue you are describing. I have seen something similar is Firefox when using form elements – a refresh would not reset the input values and cause a whole bunch of problems – but nothing like this with class names.

    The [demo you shared](http://jsfiddle.net/6TCdY/) is similar to a [demo I have using my visualNav plugin](http://mottie.github.com/visualNav/stepper.html). Are you seeing the same issue there?

    # April 4, 2013 at 11:27 am

    Oh! You mean the scroll position. The original description made it seem like it was a problem with the class name not being correct.

    # April 4, 2013 at 12:21 pm

    I’ve never been a fan of overwriting a browser default, keep that in mind!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag