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 in http://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 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
