16 Mar 08:38
setting innerHTML failing occasionally ?
Howdy -
I have a phonegap ( recent git head version ) based iOS app that does
a lot of dynamic HTML generation - mostly updating the innerHTML of
divs and spans with content fetched from a remote server.
every couple of "interactions" , I will see a silent failure of code
roughly of the form:
document.getElementById("RestaurantLocationName").innerHTML =
theName;
Sometimes it will work, sometimes it doesn't ... no obvious reasons
why - I can try a second later, and it works again ...
It happens in both the simulator and on real iPhones ...
Is it possible that somehow the DOM needs to be told to sync or
refresh or ... ?
Suggestions ?
Thanks in advance!
- djp
--
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap@...
(Continue reading)
RSS Feed