![]() So my question is, Is there a way to unload the previous tab? Or is the only alternative to use elements with unique divs (even though the pages are complete separate).Cadd9 Dadd9 Cadd9 -e|-3-2-| -B|-3-| -G|-0-| D/F# Gadd9 D/F# Em7 An old man turned ninety-eight D/F# Gadd9 D/F# Em7 He won the lottery and died the next day D/F# Gadd9 D/F# Em7 It's a black fly in your chardonnay D/F# Gadd9 D/F# Em7 It's a death row pardon two minutes too late D/F# Gadd9 D/F# Em7 Isn't it ironic. When I press the Go button on this page, I see the alert box with values form the previous tab. The contents of the page are very different, but it has the identical input fields, 2 for dates (with same IDs) and Go Button. Upon clicking the button, a JS function shows an alert box with the values in each of the input fields. This page, has 2 date input fields, id for the first field is "dateFrom" and the other field is "dateTo". Now first, I click on the Traffic Data1 tab which makes the ajax call and loads the page just fine. IN other words, lets say I have a page with 2 tabs, "Traffic Data1", "Traffic Data2". So if I use lets say a DIV element with the same ID as a previously loaded tab, all JS function related to that ID try to interact with the old tab. The problem is, once I load a tab, it remains in the browsers memory (and so do its HTML elements). The page has 5 tabs and the content for each page is loaded using Ajax. ![]() I am using the jQuery Tabs library in a small application.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |