I use a server-side framework to generate a jQuery Mobile multi-page with several sub-pages. The framework allows server-side handling of JS-events and the server-side event handler can "rewrite" the content of individual HTML elements.
I could have a <div id="myId"><ul data-role="listview">...</ul></div> and from the server-side replace the div content with something else. On the browser side the replacement HTML fragment is parsed and the DOM tree is adjusted.
I know about these ways of adjusting the page but the problem is that the server-side framework has a predefined (and curently fixed) way of keeping server side state in sync with the HTML page in the browser. It uses generic DOM manipulation code that seems to work on its own in all browsers I have tried. Only in combination with jQuery Mobile things start to fall apart.
Therefore I was looking for something more generic like $("#myId").refresh() or whatever.
The only alternative would be to add a jQuery-Mobile mode to the framework having it use completely different client-side code. But since page patching starts with already generated HTML fragments I doubt if this would be doable.
Works beautifully, but unfortunately breaks icm. with jQM.
Leave a comment on silviobierman's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic