flXHR (http://flxhr.flensed.com) is a fully client-side proxy option for cross-domain Ajax. It has a jQuery plugin to make the cross-domain Ajax calls exactly identical to regular Ajax calls: http://flxhr.flensed.com/jquery.php
--Kyle On May 24, 10:55 pm, chris thatcher <[email protected]> wrote: > There is also a jquery server-side proxy solution if you are a hard core > javascripter. I use it for development and for load testing and integration > testing. Its a great tool you can drop into a java tomcat container or I > can set you up with a commandline version pretty easy. > > the gist of it is: > > { id:"#webProxyService", > clazz:"Claypool.Server.WebProxyServlet", > options:[{ > proxyHost:"localhost", > rewriteMap: > [{ urls: "myapp/service.xml", > rewrite: "http://example.com/service", > contentType:"text/xml" > }] > }] > } > > this is a java server solution, so if you are already using a different > server-side language, you should look for simple proxy options there. > > http://docs.jquery.com/Plugins/Claypoolhttp://claypooljs.com/http://github.com/thatcher > > Thatcher > > On Sun, May 24, 2009 at 10:58 AM, Andrea Giammarchi < > > > > > > [email protected]> wrote: > > Can I refresh your thoughts with my last creation? :-) > > > Full PHP Proxy: > >http://webreflection.blogspot.com/2009/05/php-full-proxy-work-in-prog... > > > Basic Twitter apps via Ajax: > >http://webreflection.blogspot.com/2009/05/basic-ajax-twitter-applicat... > > > Hope this help, please note the authentication is something not secure at > > all in that example way > > > On Sun, May 24, 2009 at 2:09 PM, John Resig <[email protected]> wrote: > > >> JSONP cross domain requests only work for JSONP-formatted data. > >> Unfortunately it's not possible to grab raw HTML in a truly cross-domain > >> manner. > > >> You may also want to check the error console, sometimes errors don't show > >> up in Firebug. > > >> --John > > >> On Sun, May 24, 2009 at 7:15 AM, Toreddo <[email protected]>wrote: > > >>> Hi, im working for a friend which uses jquery 1.2 we need to get some > >>> smiley's from an other domain. > >>> We use the following ajax code to get the smiley's: > >>> jQuery.ajax({ > >>> type: "GET", > >>> url: url_var, > >>> data: '', > >>> dataType: "jsonp", > >>> success: function(msg){ > >>> alert("d"+msg); > >>> } > >>> }); > > >>> the page which it requests contains the following html: > >>> <div style='float:left;cursor:pointer; padding:10px;width:10px; height: > >>> 10px;' onclick="addToText('http://nl.pokernews.com/img/xsmiles/ > >>> smile1.gif <http://nl.pokernews.com/img/xsmiles/%0Asmile1.gif>');"><img > >>> src='http://nl.pokernews.com/img/xsmiles/ > >>> smile1.gif <http://nl.pokernews.com/img/xsmiles/%0Asmile1.gif>' /></div> > > >>> And im not getting any messages or errors in firebug, but nothing > >>> happens! Really nothing. Even when i change the url inhttp://google.com > >>> nothing happens. And i've put an alert right before and after the code > >>> to see if it really get's executed and yes it does :S > > >>> I hope someone here can help me, because i really can't find whats > >>> wrong :s > > -- > Christopher Thatcher- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
