[jQuery] Slightly OT: Google Maps API & "Permission denied to call method XMLHttpRequest.open"

[jQuery] Slightly OT: Google Maps API & "Permission denied to call method XMLHttpRequest.open"


Here is my issue:
The js I use on the following page works great using jquery, jqmaps
and the google maps API to load up a map:
http://dev.c21hull.com/listings/map.htm?listing_id=GL-9027
Now, I want to load teh map in a modal window via an AJAX call so I
use jqmodal. When you click "mapit" the modal window loads (I know the
close btn doesn't do anything yet) and the AJAX request is returned
nicely, but when the map tries to load within the content that was
just returned I get a "Permission denied to call method
XMLHttpRequest.open" error. Here is the example:
http://dev.c21hull.com/listings/browse.htm?byid=9027&bytype=all&byprice%5Bfrom%5D=0&byprice%5Bto%5D=400000%2B&bybeds%5Bfrom%5D=0&bybeds%5Bto%5D=5%2B&bybaths%5Bfrom%5D=0&bybaths%5Bto%5D=5%2B&bysqft%5Bfrom%5D=0&bysqft%5Bto%5D=5000%2B&byacres%5Bfrom%5D=0&byacres%5Bto%5D=41%2B&search=search
I understand that the error in question happens when you make requests
cross domain, but why does this code work in teh first example but not
the second? After researching, it has been suggested I use a SS proxy;
how can I do that here? Please explain as much as possible - I'd like
to learn this and really understand it.
Thanks!!
Alex