Page not rendered sometimes in Jquerymobile phoengap

18 views
Skip to first unread message

lee

unread,
Jun 23, 2012, 3:35:08 PM6/23/12
to phonegap
I am developing a mobile app using phonegap, jquerymobile. The content
of my page is rendered by fetching data from server through a REST web
service XMHTTPRequest call. But for some unknown reason sometimes the
content is not displayed i.e onload is invoked but the div is not
appended. Am I doing something wrong ?

//pseudocode

<head>
</head>
<body onload="load();">
<script>
function onload()
{
// append another div with resonse from server to divConn

}
<div data-role="content" id="divConn">
</div>
</body>

Thanks
Lee
Reply all
Reply to author
Forward
0 new messages