jquery - Firefox simple extension to post data -


i've created simple extension firefox. i've tried send user selected text. on mozilla web site can not find document sending rest data via post or example httpclient. want send selected text server , via server parse it.

  var req = request({     url: 'http://localhost:9989/put',     content: btoa(json.stringify(res)),     overridemimetype: "text/plain; charset=latin1",     oncomplete: function (response) {       pendingreports -= 1;       if (onfinish && pendingreports === 0) {         onfinish();       }     }   });   req.post(); 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -