In the "About wxWebConnect" it is written that it can " Execute JavaScript code directly from within a program ".
But I can't find how to do this. Maybe there is any example? Or special class?
Is there any documentation with function description.
Kirix Support Forums
JavaScript execution
5 posts
• Page 1 of 1
Re: JavaScript execution
wxWebControl has a method, Execute(). This can execute a raw Javascript string.
Please note that it will not work with XULRunner 1.9.2 without some changes, and that you cannot get the result of the Javascript call (see viewtopic.php?f=25&t=828#p2336). Both of these restrictions can be lifted, but only as yet in a somewhat fragile and experimental way.
Please note that it will not work with XULRunner 1.9.2 without some changes, and that you cannot get the result of the Javascript call (see viewtopic.php?f=25&t=828#p2336). Both of these restrictions can be lifted, but only as yet in a somewhat fragile and experimental way.
- jonmmorgan
- Registered User
- Posts: 94
- Joined: Fri May 14, 2010 9:48 am
Re: JavaScript execution
So now there is no way to execute JavaScript?
- Gera777
- Registered User
- Posts: 3
- Joined: Tue Aug 03, 2010 5:04 am
Re: JavaScript execution
There is a way of executing Javascript, but not in the officially supported release. You could try using the version at http://github.com/jonmmorgan/wxwebconnect/, though that is not officially supported by Kirix and can be quite difficult to get working (it is also only tested on Windows Vista with MSVC++ 2008 Express, though it probably works on other OSes).
- jonmmorgan
- Registered User
- Posts: 94
- Joined: Fri May 14, 2010 9:48 am
Re: JavaScript execution
Javascript execution and returning the result in a string is now in a much more solid state in my repository (it doesn't crash if invalid Javascript is passed to it or an exception is thrown, and it doesn't need to link to libmozjs/js3250.dll).
- jonmmorgan
- Registered User
- Posts: 94
- Joined: Fri May 14, 2010 9:48 am
5 posts
· Page 1 of 1
Return to wxWebConnect Questions, Thoughts & Feedback