views:

60

answers:

2

I am troubled without understanding the method of the outside request by the Firefox adding on.

Thanking you in advance.

+1  A: 

The Firefox Addons Development Guide should answer your questions about Firefox add-ons. Also see the Mozilla Extensions documentation.

derobert
+6  A: 

The question is not very clear, but if you are looking for something like an HTTPRequest in a Firefox Addon, the following code snippet may help you.

var xmlhttp = new XMLHttpRequest();


xmlhttp.open("GET", "http://www.sitetorequest.com",true);
xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
  alert(xmlhttp.responseText);
   Your Code here...
  }
 }

xmlhttp.send(null)
sumit_programmer