RE: __data__ object
"Christian Boulanger" <[email protected]>
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <002501c3759d$ff1e7fd0$0300a8c0@Laptop> |
Alex,
There is one thing I have not quite understood about the data structure
required by __data__: why the "nwComponent"/ "nwSubcomponent" part in the
retrieved array? Couln'd nW parse the data structure into "real" associative
arrays within associative arrays, like,
{ foo:"bar", foo2: { foo3:"bar", foo4:"baz"}, ....}
So that I could call data.foo2.foo3 instead of data.
nwComponents.subComponent[0].foo3 ?
C.
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Christian Boulanger
> Sent: Monday, September 08, 2003 7:45 AM
> To: [email protected]; 'netWindows development discussion list'
> Subject: RE: [NW-Devel] __data__ object
>
>
> 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? Also, I remember that
> somewhere it said this method is only available on IE and Moz
> latest versions, is that correct?
>
> 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?
>
> C.
>
>
> _______________________________________________
> The netWindows developers list: [email protected]
> http://netwindows.org/mailman/listinfo/devel_netwindows.org
>
>
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org