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

Web and WebWorks Development

Reply
New Contributor
Posts: 2
Registered: ‎03-07-2011
My Device: Not Specified

loading local file with parameter <a href="page2.html?foo=bar">

I've tested my HTML5/javascript code using mainly Google Chrome - and it's fine in my dev environment.   But when I transfer to the tablet simulator (0.9.3), I've run into an issue I can't work around.

 

I'm trying to redirect to another page with a variable:

 

<a href="page2.html?foo=bar">

 

I'm sure there's just something odd that I'm doing wrong... but I can't figure it out.  Without the parameter, it loads the other page.   As soon as I attempt to pass a parameter with the URL, I get:

 

Error   A network error occurred.   Please try again later.

 

The firebug panel doesn't launch, so I have no idea how to figure out what error is happening behind the scenes.

 

Tested through firebug console (and all work without param, fail with param):

document.location.href="page2.html"

window.location.href="page2.html"

self.location.href="page2.html"

location.href="page2.html"

location.assign("page2.html");       

location.replace("page2.html");

 

The sample protocol URL in the documentation does show passing parameters without issues:

http://docs.blackberry.com/en/developers/deliverables/18446/Location_569358_11.jsp

 

Thanks for any suggestions!

 

Amber

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: loading local file with parameter <a href="page2.html?foo=bar">

Hi Amber,

 

This is a known issue on the 0.9.3 beta build.  More details here: 

http://docs.blackberry.com/en/developers/deliverables/24007/BB_WebWorks_SDK_Tablet_Known_Issues_Beta...

 

This has since been resolved and will be fixed in the 0.9.4 simulator due out shortly

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 49
Registered: ‎02-09-2011
My Device: Not Specified

Re: loading local file with parameter <a href="page2.html?foo=bar">

Any Idea on when the next tablet vm will be released?