why including www in a jquery load causes it to fail?
Posted
by zenna
on Stack Overflow
See other posts from Stack Overflow
or by zenna
Published on 2010-06-02T17:47:34Z
Indexed on
2010/06/02
17:53 UTC
Read the original article
Hit count: 302
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 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.
© Stack Overflow or respective owner