JQuery page loading issues
I am relatively new to use jQuery
and would like to use a method load
to post content on my page as the site I am hosting does not support any server side scripting.
I want to be able to run more JQuery on pages that are pulled (via the load method), such as reconcile in the UI library. How can I get this to work?
Greetings in advance
0
Malachi
source
to share
2 answers
method $.load
has callback
.
This will be called when the data is returned so you can create your ui controls in that callback method.
for example
//Load html page with Accordian markup
$('#someDiv').load(urlWithAccordian, function(){
//Create Accordian
$('#someUL').accordian();
});
+3
redsquare
source
to share
Change hosts! You never have to rely on JavaScript for something like rudimentary content!
+3
James
source
to share