Hi,

I am trying to load an http url into a local buffer. The content is
javascript code which has to be executed in current context. So far I
have figured out following steps:
- Create a new URI object (NS_NewURI)
- Create a channel by NS_OpenURI()
- Calling a AsyncRead() or OpenURI() to read the content from the
channel.

Now, how do I transfer the content from the listener to a buffer or
instruct it to be executed as a javascript?
is there any better way?

One more question: Is the network connection available while we are
reading the user preferences? I am trying to read the preferences from a
javascript file located on http server.

Thanks,

Mitesh




Reply via email to