Could someone enlighten me as to why including www in a ajax request causes it to fail.
i.e. This works:
$(‘#mydiv’).load(‘http://mydomain.com/getitems‘);
But this doesn’t (returns nothing)
$(‘#mydiv’).load(‘http://www.mydomain.com/getitems‘);
Note that http://www.mydomain.com/getitems is a valid domain, in the sense that if I point my web browser to it I am able to load the page.
Are you calling the script from mydomain.com or from http://www.mydomain.com or from otherdomain.com ?
May be you are trying to do some kind of cross site scripting with out knowing it .