Just out of curiosity I was wondering how is it possible for the javascript code to embed google maps communicate with server from outside domain. I know I'm missing out something here. can anyone help?
thanks
Just out of curiosity I was wondering how is it possible for the javascript code to embed google maps communicate with server from outside domain. I know I'm missing out something here. can anyone help?
thanks
Because it writes an iframe, which then makes a request to google (so the javascript isnt actually loading from outside the domain)
EDIT: Google Maps actually uses JSONP. It loads pages as <script>
elements and then that script calls a callback method that has already been defined on your page.