Currently, I am utilizing the Firefox Add-on SDK. Within the toolbar, there is a button that, when clicked, displays the panel HTML file. Now, my goal is to incorporate an ajax function into the On Click Event of the button within the panel HTML file.
<html>
<script>
function test()
{
var xhr=new XMLHttpRequest();
//include some ajax Code
}
</script>
<button onclick='test()'>Click Here</button>
</html>
As someone who is still learning how to navigate the Firefox SDK environment, I am seeking guidance on whether this integration is achievable. If so, what steps should I take to implement it successfully?