Re: __data__ object

Alex Russell <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Organization netWindows.org
Message-ID <[email protected]>
On Sunday 07 September 2003 17:44, Christian Boulanger wrote:
> Alex wrote:
> > I'll put it on the to-do list. The short story is that you do
> > something like:
> >
> > var objFromSrvr = eval(NW_getFileTxt("http://wherever.com/data.js"));
>
> This is synchronous data transfer, meaning that the program halts until the
> file is retrieved, no? 

Correct. Another option would be to use __data__ to grab a single element that 
has script code as the CDATA child of a single parsed element. This would be 
async.

> Also, I remember that somewhere it said this method
> is only available on IE and Moz latest versions, is that correct?

Should be available on almost all common Windows IE versions (>= 5.0). MacIE 
doesn't have such a thing to the best of my knowledge, although we don't 
support MacIE anyway. This will also not work on Opera or Konqueror/Safari. 
Mozilla >= M18 will work.

> In the manual it said tha you can also use the __data__ object for
> javascript data assignment - would the content of the js - file be the
> same?

I'm not sure I understand the question. Can you clarify?

-- 
Alex Russell
[email protected]    BD10 7AFC 87F6 63F9 1691 83FA 9884 3A15 AFC9 61B7
[email protected]  F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46

_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.