That was one of the things I considered trying. I'd rather not do that if I
can help it. For now, I'm just placing an empty img tag inside my target
div, then changing the src of that onClick. It works well. I'm going to
change up the appearance and functionality, but here's my workup for now: 
http://www.commadelimited.com/code/picasa/3pane


andy


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Suni
Sent: Friday, October 05, 2007 2:32 AM
To: jQuery (English)
Subject: [jQuery] Re: Loading image with $.get()?


AJAX calls follow the same-origin policy, and the browser won't allow an
ajax call to another domain for security reasons. The URL for the ajax call
must reside in the same domain as the page it is being initiated from.

There are ways around this, one of which is using a server proxy (the url of
the ajax request goes to the same domain as the page. The server then
requests the data from the other domain and passes it through).

Do note that this doesn't prevent you from getting html (from the same
domain) that includes an img-tag with its src-attribute set to a url in
another domain.


Reply via email to