Shajeer,
Let me ask you how you set up your Development Environment. How have you
set up your dev environment? Was it set up according to how Mozilla states
on their web page at
https://developer.mozilla.org/en-US/docs/Building_an_Extension for us to
set up our dev environment? In your dev environment set up, have you
created a folder for your extension somewhere on your hard disk (e.g.
C:\extensions\my_extension\ or ~/extensions/my_extension/), than added another
folder called chrome, and then inside THAT folder (the chrome folder) have
you yet created a folder called content? If not, it could be a good idea
to do so, now. And, it could be good to then go Inside of the *root* directory
of your extension folder, and create two new empty text files called
chrome.manifest and install.rdf. Then, in the *chrome/content *directory,
create a new empty text file called sample.xul. You can read more about
setting up your dev environment, here:
https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment.
Do you keep getting a {"d":"True"} as the return string of CallMe() method
of WebService when you try using this code you've shown me? Or is something
else happening from that exact code? I think that maybe if async: were set
to true, that it could work, possibly. What do you think about this idea?
Also, could you consider doing this as a plugin? (Some browsers might not
allow what you are trying to do due to security reasons. It could be
better to implement this via/through a plugin you could create.
April Morone
--
http://aprilmorone.blogspot.com/