try flXHR, which is a client-side cross-domain Ajax proxy (invisible
flash). flXHR has an indentical API to normal native XHR calls. And
there's a very easy to use jQuery plugin that makes it ridiculously
simple to integrate. http://flxhr.flensed.com/jquery.php
On Jul 30, 8:03 am, Leonardo K <leo...@gmail.com> wrote:
> I think this will help you.http://snook.ca/archives/javascript/cross_domain_aj/
>
>
>
> On Thu, Jul 30, 2009 at 07:00, Danny Ayers <danny.ay...@gmail.com> wrote:
>
> > I've run up against a cross-domain Ajax problem, essentially I want to
> > do something like:
>
> > (inhttp://hostA.com/page.html)
>
> > <script>
> > $.ajax({
> > type: "POST",
> > url: "http://hostB.com/service.php",
> > data: dataText,
> > ...
>
> > but this promptly produces an [Exception... "Access to restricted URI
> > denied" code: "1012"...
>
> > The thing is, unlike most of the related scenarios I've found, I don't
> > actually want anything back from the server, I just want to send off
> > some page access data.
>
> > Because ultimately I want this thing to be easy for end-users, the use
> > of a server-side proxy is something I'd like to avoid. I'm pretty sure
> > this should be doable /somehow/ - it appears that Google Analytics
> > must get around the problem, but I haven't been able to suss out how.
>
> > Suggestions?
>
> > (the code I'm working on is linked from
> >http://hyperdata.org/wiki/wiki/TtrackerHowItWorks
> > )
>
> > Cheers,
> > Danny.- Hide quoted text -
>
> - Show quoted text -
No comments:
Post a Comment