02-06-2009 04:46 PM
02-11-2009 09:58 AM
09-14-2009 10:18 AM
rickyying wrote:
I got this strange problem. There javascript does not work in BrowserField application.
It works when I have following code in page:
<a href="javascript&colonalert('alert');">Alert</a>
[omissis]
I have enabled the javascript
_renderingSession.getRenderingOptions().setProperty(RenderingOptions.CORE_OPTIONS_GUID, RenderingOptions.JAVASCRIPT_ENABLED, true);
How do you do that? because my code does not works: without enabling javascript and clicking on a button that has javascript code in it, the handheld tells me it cannot execute the script, rightfully. So I enabled javascript using the very same method you used (setProperty on RenderingOptions of RenderingSession), and what I get is that the handheld does not warn me anymore about javascript, but nothing happens.
I tried a document.write() on loading the page and this works, but embedding code in a button gives no results. And even if the javascript lies into an href -- when trapping the onMenu event and manually executing the thread corresponding to the Get Link item -- nothing happens (nor an event is received on eventOccurred(), method of the RenderingSession interface). Moreover, the Event.EVENT_EXECUTING_SCRIPT event does not fire...
If this last paragraph is a little confusing, I will explain it better, just ask ![]()
Thank you all in advance.
09-15-2009 03:31 AM
09-16-2009 09:14 AM
09-17-2009 06:36 AM
12-29-2009 02:56 PM
Hi... just in case do you know where can I find the BrowserField specs. for the SDK 5? It seems it doesn't support dynamic javascript (like the old BB Browsers). Thanks!