Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Clear jQuery cache on page refresh?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43876
    Rugg
    Participant

    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.

    #130642
    CrocoDillon
    Participant

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

    #130643
    Mottie
    Member

    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?

    #130649
    Mottie
    Member

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

    #130658
    TheDoc
    Member

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.