How to get the data via javascript without jQuery?

  • 1
  • Question
  • Updated 7 years ago
I am working on a project where I am writing an extension for Firefox. I am writing an XPCOM component in javascript. I want this component to return the weather data from weather underground in xml form.

Now, I do not have access to jQuery here, so how would I go about pulling the file down?

Moreover, where I can I find out exactly how the jQuery code example works (I am a C/C++ coder and am using this partly as an exercise to learn multiple things)?
Photo of thisisbasil


  • 1 Post
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 124 Reply Likes
There's a javascript/jQuery/JSON code sample here:

I know you mentioned XML, but in this example the JSON works just fine at least.
Photo of chaitanya1


  • 4 Posts
  • 1 Reply Like
That's fine but how to get a key. More over If I get a key it will work in my PC. if I want my application to be launched in a server targeting some users what to do. this key is sufficient?. Please guide me.

Thanks & Regards,