hi,
I have a webview section into which is loaded a HTML page. I have a page where I have written some python functions. How do I call the python function that is in a particular page from the html/javascript page that is loaded into the webview? I have done this and it works:
Code:Lianja.showDocument("python:resetidleflag()");
But it crashes Lianja if I repeat it a few times. Lianja.execute works without crashing but I can use that to only call VFP functions and not python functions. And do I need to prefix the function name with the page name or something? But strange it does execute, except that after I call it a few times it crashes Lianja.
In short is there another way of executing a python function which is in one of the pages from javascript, by using something other than showDocument?
The best way to replicate this would be to call(from Lianja/VFP or javascript) a python function repeatedly from the console, using Lianja.showDocument("python:mypyfunc"). The first time it will execute, subsequently it will freeze/hang.
Cheers,
M&M
Bookmarks