Hi Thomas,

Thanks for your reply.

However, I don't fully understand what you mean by "Use the same code
within a JSNI method".

I have a Overlay Type and I want to iterate through all the properties
in the Javascript object.

If I put my code inside a JNSI method, what is the point of having
Overlay Types?


Thanks,
Mathew



On Oct 27, 1:56 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 26 oct, 16:08, mat <[EMAIL PROTECTED]> wrote:
>
>
>
> > In Javascript its possible to enumerate Javascript Objects:
>
> > e.g:
>
> > var my obj = {"key1": "value 1","key2":"value 2", "key3","value3"};
>
> > for (var key in obj)
> > {
> >   var currentValue = obj[key];
>
> > };
>
> > I would like to know how to do this with Javascript Overlay Types in
> > GWT.
>
> Use the same code within a JSNI method.
>
> Eventually you could instanciate a JSONObject to wrap your overlay,
> but it has a cost.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to