All what i want to do is show some kind of information in case of the
response be "some".
The response is a text. I have all control about the page that i'm sending
the request, the page can return anything that i want. But i want to treat
the response.
But that way, it seems that he cant compare the variable response.

---
Doug

2009/3/13 Rey Bango <[email protected]>

> Try creating a simple page like this to see if your XHR call works outside
> of the scope of Ubiquity. If it does, we can try to narrow it down from
> there:
>
> <script *src="*http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js";
> type="text/javascript">
>
> <script>
> jQuery(document).ready(function(){
>
> jQuery.ajax({
>         type: "get",
>         url: "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!");
>            }
>         }
>   });
>
> });
>
> <script>
>
>
>
>
> >
>

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