05-12-2012 12:39 PM
I am writing a web app for blackberry smartphones using Webworks and I need to inform the user of various error messages and alerts. I have been trying to use standardAskAsync with absolutely no joy. I eventually read this post in the forum
Which informed me that standardAskAsync is not supported for smart phones. The problem is that the former stanrdardAsk has been depreciated so if I call that I also get an error.
Any ideas the correct 'blackberry' way to show the error messages. Any help much appreciated
05-12-2012 07:00 PM
standardAskAsync and customAskAsync should now work on smartphones. What error are you getting when you try to use them?
05-14-2012 10:27 AM
Correct, standardAskAsyc is supported on J2ME and Tablet OS platforms. See the "View Supported Platform Table" on the following page:
You can find full details for the standardAskAsync method here:
05-14-2012 12:30 PM
The error I am getting is - Uncaught TypeError: Object [object Object] has no method 'standardAskAsync'
This is via Ripple - The latest Chrome extension version
I inlcude the following webworks JS files
They are all dated feb 9th.
When I console.out the blackberry.ui.dialog I get the following
This looks like an old version to me! but just not sure how to get it updated to latest! I have downloaded and installed the latest 2.3.1
Any ideas where I am going wrong?
05-14-2012 03:18 PM
Oh wow, yeah that does look like "old" code.
Did you uninstall the older version of the WebWorks SDK, or install the latest (v2.3.1) on top of it? I wonder if the latter, whether the /ext folder got messed up.
Can you open this folder C:\Program Files\Research In Motion\BlackBerry WebWorks SDK 188.8.131.52\ext\blackberry.dialog\blackberry\ui\dialog
Do you see the CustomAskAsyncFunction.java and StandardAskAsyncFunction.java files?
05-14-2012 04:47 PM
Yes those functions are there but located here-
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 184.108.40.206\ext\blackberry.dialog\blackberry\ui\dialog
note X86 rather than just Program Files. I do have a Program Files Directory too (I guess for 64 bit apps - I am running Windows 7 64 bit)
I completely uninstalled everything before installing the chrome extension. I did this on Saturday (only a few days ago) and I did it for exactly the same problem. I was using the old standalone version. I checked 'programs & features' and there are no Research in Motion installations on my system. Aside from the chrome plugin but that does not show up in Programs & Features.
05-14-2012 04:50 PM
Actually I did install 2.3.1 after installing the chrome pluggin (via Chrome) could that be the issue. Should I not install 2.3.1 at all? Does the chrome plugin work without the actual API installation. I needed that so I could get access to the .js files for including in the software.
05-15-2012 09:34 AM
Okay I'm getting the exact same results in the Ripple emulator. I think this is a bug with Ripple - it is still emulating the "old" API interface. I expect this happened as the WebWorks API changed, but the Ripple team did not update their side of things.
This should not be an issue on a live device, or simulator. I expect those environments will recognize the correct properties and methods.
Would you like to submit this as a bug here?