I have a very strange problem with a Javascript function:
function changeContent(url, id) {
jQuery('#'+id).load(url);
}
As you can see the function is not very complicated. It simply loads the content of a url into an element.
But it just doesn’ t work on a computer of a friend no matter which browser he uses.
In Fiddler I can see that the request works fine but the content of the div just doesn’ t change.
Any idea what I / he can do?
All works, your function is correct:
Here is sample: http://fiddle.jshell.net/AG9nf/
Are you put same domain into url attribute?