I thought I had replied to this but it seems to have gotten lost. Anyway, I did some testing and it does not delete the old elements as you say. However my apps back end server keeps track of logical level of each result set as you drill down by appending a parm to each link that results in a call to it with the current level, then it adds one for the next level etc. it does this so that it can create unique ids for the divs in each result set. What I did was to use the logical level as a class and added an event listener for the aftertransition event. That listener get the class from the target page (event.out = false), gets the class from it and finds the numeric one. It then adds one to that value and does a delete of the elements with that class (class from target page + 1) below the body element (which is where iUI is attaching all the new divs).
When you are drilling down (increasing level number) the event code does nothing because there's nothing there to delete. When you are paging back using the back button the level number is decreasing so it's continually deleting the previous levels data. All bit of a fudge and not very generic but it does work. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
