El 04/12/13 22:32, Tobias Boege escribió: > On Wed, 04 Dec 2013, Jesus wrote: >> Hi all >> >> I currently helping to port a VB6 program to Gambas3, but to my >> surprise, it does weird things like these from the post title: it is >> calling methods and functions from the html code inside a webbrowser >> control. >> >> It has a wb control that acts like a sort of wizard/help thing, and the >> html links in that view are calling methods inside the application. That >> links are as '<a href="act:some_class.method">some action</a>' >> >> So the question is, could it be done with gambas somehow? >> >> Regards >> -- >> Jesus Guardon > > Jesus (meant as an interjection)! I know I shouldn't question other people's > design choices but this is just mad. Actually it might have seemed like an > elegant way to communicate with an HTML page to the original author of that > program - I understand that - but this is just asking for trouble, IMHO. > > However, I guess Object.Call() is your best bet here. > > Regards, > Tobi >
Hi Tobi, thanks for reply I am at your side about some (mad) practices, but... I think Object.Call is suitable for calling or executing code inside or outside of the current class, but not the other way round, IIUC. How could I execute Object.Call from inside a webview? None of the events webview exposes are suitable for doing this IMO, since the webview.url is a property, not a method. I will experiment, thanks for the tip! Regards -- Jesus Guardon ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user