When using jQuery and jQueryMobile I'm running into situations where (JS) code is shared between versions of the page and uses the $(domElement).data() function to retrieve data (since I wrote the desktop version first). But from the jQM docs it isn't clear to me if this will work properly.
I'm not seeing any guidance in the docs or blog posts, SO questions or the like on this scenario so would appreciate input from the more experienced among you.
Note: the data- attribute values are set in the source by the server-side language that builds the pages from template and not in Javascript (that is, <span id="someId" data-value="someValue"/>).
I used ThemeRoller to create a theme with one swatch for each skin in my app. In the pageinit event handler I'm trying to set the theme appropriate to this specific view but I don't see any visible change. Is there a refresh-type method I need to call after executing something like this?
Product requirement is straightforward: Label goes above the slider but the product managers want two labels (e.g., low and high) at either end of the slider below it. Is this possible and if so can anyone point me to an implementation or code sample?