Ajax in Firefox add on panel content JavaScript -
i use firefox add on sdk
. have button in toolbar , in on click event show panel html file . need use ajax function in on click of html button used in panel html file.
<html> <script> function test() { var xhr=new xmlhttprequest(); //some ajax code } </script> <button onclick='test()'>click here</button> </html>
i new in using firefox sdk
. possible @ ?? , if possible how should ?
you can't use inline scripting inside html page in firefox addon, add script packaged local resource , executed.
basically have split in two, html , js , reference js in html
Comments
Post a Comment