pagecreate complains "cannot call methods on listview prior to initialization; attempted to call method 'refresh'"
in jQuery Mobile • 4 years ago
I am under the impression that within a bound function to pagecreate is exactly where I'm supposed to start running my app logic according to pagecreate docs.
I'm using jquerymobile 1.0b2 and jquery 1.6.2. My app logic is listed before jquerymobile min.js
My index.html page has the following source order:
The first html after the body is
- <div data-role="page" id="myid">
My app.js has
And myinsert() appends to a listview, which is the content of the page.
Does pagecreate have cause to complain, or is this a bug?
If I replace myinsert(); with
- alert('This page was just enhanced by jQuery Mobile!');
The alert fires before the visual enhancement. In fact, it is still only a blank white page, until after I close the alert box. that sounds more to me like
This may or may not be related, so I'll mention it. When I create a static page without trying to add to the listview, I also noticed that the listview does not render the arrow on the right hand side. It only renders a gray circle, otherwise the list item is correct. Are there some images I missed loading?
- 3 Replies
- 5558 Views
- 0 Followers