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
-~----------~----~----~----~------~----~------~--~---

Reply via email to