[UPHPU] Cross domain javascript request
Chad Sollis
lists at sollis.net
Thu Jul 16 09:38:09 MDT 2009
Greetings,
I know this topic has been covered in the past, so forgive the repeat.
Looking for some quick feedback/ideas.
I need to make a call from *a*.domain.com to *b*.domain.com "behind the
scenes" but I do not need to read a response, just make the POST/GET
request.
>From the quick search I have done, I have found a couple of options. I am
wondering if there is a better option, or of the options below, what is the
consesous on which is best.
Thanks in advance for your help.
1. use an iframe with height and width of 0 or 1 to pass the data to
b.domain.com
2. use jquery $.getJSON() it will make the request cross domain, I simply
won't return anything.
3. use a proxy on a.domain.com
I actually prefer #1, because the code I use is included in many place, some
with jquery, some without jquery, and with option #3, I dont know if I have
access to create a proxy on that server.
Is iframe a bad route?
thanks all.
~SOL
More information about the UPHPU
mailing list