Darth, ...ahh, great thanks.

I got to $wnd to work for code in the cross-site communication
tutorial. I think the problem was that I was using "document and $wnd"
rather than "$doc and $wnd". I haven't completely worked out in my
head why the former wouldn't work but it seems sensible that you would
need to make sure it's all either happening on the host page or all in
the iframe.

Any guess why the tutorial uses window/document rather than $wnd/
$doc ?

Thanks again,
Mike

On Jul 20, 12:20 pm, Darth <[email protected]> wrote:
> It's explained 
> here:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> Right after the first example.
>
> window = host page
> $wnd = the nested iframe page where your scripts reside
>
> From the tutorial you cited, I'm not sure why it doesn't work when
> using $wnd. Maybe the nested page can't write to the host page?
>
> Cheers,
>
> Darth
>
> On Jul 20, 9:33 pm, mike <[email protected]> wrote:
>
> > No response cause my question is dumb or did I get lost in the shuffle
> > because I posted on Sat? I'm really curious about this... thanks
> > either way. Peace, Mike
>
> > On Jul 18, 12:35 pm, mike <[email protected]> wrote:
>
> > > The JSNI section of the dev guide uses the $wnd notation:
>
> > >http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
>
> > > But then in the cross-site commication tutorial 'window' is used.
> > > Additionally I can't get the sample code to work using $wnd. See:
>
> > >http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html
>
> > > What's the trick here? Are there some scenarios where you use $wnd and
> > > other where you use window? How do you know when to use which?
>
> > > Thanks, Mike
>
>
--~--~---------~--~----~------------~-------~--~----~
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