07-08-2011 03:43 AM
I’ve got a quick question regarding the Playbook QNXStageWebView class. For Creating WebView am using below mentioned code.
webView:QNXStageWebView = new QNXStageWebView();
webView.stage = stage;
webView.blockPopups = true;
webView.viewPort = new Rectangle(10, 50, stage.stageWidth, stage.stageHeight - 50);
webView.enableCookies = true;
webView.enablePlugins = true;
stage.nativeWindow.visible = true;
This is working. But i want to add the webview into the one Container, no need to add in stage. Is it possible? Can you help me with this?
07-11-2011 12:13 PM
Can you post a sample snippet code outlining how your containers are arragned so that I will be able to help in positioning your webView?
Essentially what you need to do is create a rectangle within your intended container. Point the webView.viewPort to that newly created rectangle. This will position your webView within that intended container.
BlackBerry Development Advisor
07-13-2012 05:22 PM
07-14-2012 02:36 PM
I've spoken with Backberry Architect in D.C. Office and he is chedking with the Native Development Kit Group
on how to use Cascades in Blackberry OS 10 and some simple code to use WebView Class so In other words
just as how you would use BrowserField2 in OS 7, I want the equivelent on the PlayBook in OS 10 to display a URL that's an HTML5 URL and then Override the Navigation as like I have with the custom Protocol Handler for BrowserField 2. I figured it would be about 10 lines of Code using Cascade and WebView Class (bb:Cascade:WebView) to display a URL and a simple example but I can't find one anywhere on BBForums, CrackBerry, Cascase Website so Need simple example from someone here.
07-14-2012 02:39 PM
This dosen't work. See my note on this Forum where I'm working to get us an example of WebVIew (Like Browserfield2 would be used) in Native Development Kit using OS 10 Playbook and Cascase. This can be developed for the Simulator now and the NDK Beta. RIM may have the OS 10 Playbooks soon and there is a Beta Program for OS 10 Playbook you can apply for. Write me back if you NDK example in C using WebView to display a HTML5 based URL.