I have this:
aux=0;
jQuery.ajax({
type: "get",
url: url,
data: params,
dataType: "text",
error: function(msg) {
alert("problem");
},
success: function(response) {
if(response)
if(response==1){
aux=response;
displayMessage(aux); *(1)*
}
}
});
displayMessage(aux); *(2)*
When i do the first displayMessage(aux) he shows 1, but when i do the second
he shows 0.
And i cant call any function inside of my sucess function...
What can i do to set the aux=1 if the response=1??
-----
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
-~----------~----~----~----~------~----~------~--~---