Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Contributor
bobbydharrell
Posts: 8
Registered: ‎03-28-2011
My Device: None at this time - Hoping for Playbook

Can anyone twll me how to make this webview work

here is my code

//webview
var webView = new QNXStageWebView();
var rect = new Rectangle(0, 60, 1024, 680);

// Set layout
webView.stage = stage;
webView.viewPort = rect;
webView.autoFit = true;
	
// Functionality		
webView.enableCookies = true;
webView.enableJavascript = true;
webView.enableScrolling = true;

webview = new joCard([
	new joGroup([
		CaptionVerse = new joCaption("John 3:16"),
		new joDivider(),
		webView.loadURL('http://m.youversion.com/bible/asv/john/3/16')
	])
]);

 

I want this "Card" to be just a webview that I can pass a URL to, i was able to do this on Palm with a webview control and just update the URL property ... Blackberry has been more challenging, not even sure if the

 

QNXStageWebView()

is a blackberry control ... if not can you tell me if BlackBerry WebWorks for Tablet OS has a webcontrol, if not how can I popup the browser to the webpage I want? window.open() did not seem to do the trick.

 

Thanks in advance!

Bobby

Blackberry Playbook Apps: iWitness
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Can anyone twll me how to make this webview work

Think you're in the wrong forum.  This forum is for Adobe AIR apps for the tablet.

Please use plain text.
Developer
paulhaenel
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780

Re: Can anyone twll me how to make this webview work

HI there,

 

What is the joCard ?

 

Have you tried loading the webpage like this:

 

 

webView.loadURL('http://m.youversion.com/bible/asv/john/3/16')

 

 

-----------

Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.
Please use plain text.
Contributor
coll_hupar
Posts: 20
Registered: ‎03-22-2011
My Device: playbook and 9800

Re: Can anyone twll me how to make this webview work

hiii
webView.loadURL('http://m.youversion.com/bible/asv/john/3/16')
will load the page in viewport which u gave as Rectangle.

navigateToURL(new URLRequest("http://www.google.com"));
this will load url in playbook browser.

what is jobCard.?
Please use plain text.