I have this code:
function content(){
$("#23").load("http://www.example.com/index.html", alert('responded'));
}
Which is triggered when the body loads. It does complete the alert but it does not do anything to <div id="23"></div> located on the page.
Any ideas why?
I am brand spanking new to jquery so sorry if this is a very simple mistake.
Update: After using the code suggested and then changing some stuff in Xcode I am able to have cross domain working well. Thanks Heaps.
Your problem is that you are doing the
callbackin a wrong way, replace yourfunctionwith this: