On Wed, Feb 6, 2013 at 5:31 AM, Daniel Gonzalez <[email protected]> wrote:
> Thanks Lukasz, but it didn't work.
>
> Doing
>
> wnd().js_callback = py_callback
>
> is not really making anything accessible via "window" to javascript.

its probably mangling the name slightly, to something like $wnd.$js_callback...

what does it say at that line of code?  try inserting some "markers",
eg. JS("/*** MARK 1 ***/"), then look for that in the generated
code... that should let you know right away whats happening.

i'm not sure offhand why it doesn't work, but wnd() => $wnd =>
appframe.parent -- unless the appframe is already in an iframe, it
should return the top.

...all that stuff we discussed in your pull request should still apply
as well; a few examples were explained:

https://github.com/pyjs/pyjs/pull/752#issuecomment-7448404
https://github.com/pyjs/pyjs/pull/752#issuecomment-7449849

...what you have is fine though.

-- 

C Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to