Here is my code:
$.ajax({
url: 'xxx',
success: function(data)
{
if (data.trim() == '0')
{
//IF CODE
}
else
{
//ELSE CODE
}
}
});
This code working fine everywhere where I want to use, but not working in case of Firefox extension.
I read the following stackoverflow articles but no avail: Call to $.ajax from firefox extension not working and Ajax In Firefox Plugin
Also try to use xmlHTTPRequest but the result is same.