W dniu poniedziałek, 18 czerwca 2012 18:07:54 UTC+2 użytkownik C Anthony Risinger napisał: > > On Mon, Jun 18, 2012 at 10:27 AM, C Anthony Risinger <[email protected]> > wrote: > > On Mon, Jun 18, 2012 at 5:45 AM, Maho > >> > >> Am I wrong? I think not - I'm facing similar problem, and yesterday I > tried > >> to do something similar (well, opposite, access HTML objects from > pyjamas > >> code) > > ... i meant to ask what you needed to do exactly ... what do you mean > by `HTML objects`? you should be able to access anything in the DOM, > without issue, via the DOM.py module. >
I wanted to add callback to some buttons in main document, because I was not able to do it in reverse direction. Your hint about py_dispatcher is better. Is there ready py_dispatcher somewhere in pyjamas, or I should write my own to use it? BTW - few months ago I asked the same question, but worded differently. I asked "I need to call py code from html/javascript, how can I do it?". Someone replied "you don't" (need) and it was end of story. Now answer is way, way more helpful.
