[jQuery Mobile] text refresh not working on Blackberry
Hi!
I have a small listview in my html:
- <ul data-role="listview">
<li id="@Local_Time_Formated" data-obfunc="sValues">Local Time: {SVALUE}</li>
</ul>
I request some svalues from a server in the onload html function. So the {SVALUE} text should be replaced by the response from the server.
First I select the right 'li' element in the HTML (actObject). After this I set the new text:
- jQuery(actObject).text(jQuery(actObject).text().replace('{SVALUE}',varNewStringValue));
- jQuery(actObject.parentNode).listview('refresh');
This is working fine with IE9. But on the Blackberry browser the text isn't replaced.
Also I tried to refresh all listviews in the 'pageshow' event but this also didn't help.
What is the correct moment/event to replace text?