Hi, first off, let me thank the JQM developers for releasing 1.0b2. Good work guys!
Now, for an issue I'm experiencing. On my active page, it have a segment of js code that binds to the click event. I noticed that if I prefetch (using data-prefetch on links) another page, the js code on the prefetched page gets executed and overwrites the current active page's js code by binding to the click event too.
Is this the normal behaviour? Any one else has experience this?
Hi, I use ajax loading exclusively for all my JQM webapp pages. On certain pages, when I tried to bind a "click" event to a particular button, I found that if I use an "id" selector in my jquery script, it will fail if the page is reloaded. However, if I replace it with a "class" selector, the script works every time. Could this be due to the way multiple "page" div are stored in the DOM? Even though only one is "active" at any one time, the same "id" in the non-active pages are interfering with the selection? Any I doing something wrong here? Has anyone else experience this before?
Hi, I'm writing a webapp using jquery mobile. All my pages are loading using ajax. However, I noticed that with each loaded page, the DOM grows by one "<div data-role="content">. Eventually, the DOM gets too bloated and the pages gets slower and slower to render.
Am I doing something wrong here? This DOM bloating does not seem be scalable. Thanks in advance for responses.