What does this code do?
$(":mobile-pagecontainer").pagecontainer("load", "#welcome2");
I have a jQuery UI autocomplete input box which I initialize, but it only works if any of the following is true:
- I call load on the fragment.
- The visitor starts on
#welcome2(rather than coming from#welcome1)
I don't understand what load does or why I need it.
EDIT: Could it be something with the order in which jQuery UI and jQuery mobile are loaded?
EDIT2: It seems no widgets on not-loaded fragment are initialized. I can't even do things like .checkboxradio("disable") unless the fragment has been explicitly loaded. what does loading mean and why isn't it done when the document is loaded?