Douglas, what are you pulling back? Have you tried creating a simple web page with your code to ensure that it works as expected?
Rey... On Thu, Mar 12, 2009 at 6:05 AM, Douglas Nogueira <[email protected]>wrote: > I know that.. the request works perfect... > I changed just to put here... > The problem is in the response in case of sucess... > > 2009/3/12 Blair McBride <[email protected]> > > >> AJAX requests require you to put the protocol in the URL you give it. So >> you can't just give it "www.site.com" - it needs to be >> "http://www.site.com". >> >> Hope that helps. >> >> - Blair >> >> >> >> >> On 12/03/2009 8:29 AM, Douglas Nogueira wrote: >> > I'm trying to do this: >> > >> > jQuery.ajax({ >> > type: "get", >> > url: "www.site.com <http://www.site.com>", >> > error: function(msg) { >> > displayMessage("Problem:" + msg); >> > }, >> > success: function(response) { >> > if(response){ >> > if(response=="some") >> > displayMessage("Address not found!"); >> > else >> > displayMessage("Address found!"); >> > } >> > } >> > }); >> > >> > Doesn't matter what the resposnse is, he dont show anything. >> > >> > --- >> > Doug >> > >> > > >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" 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/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
