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
Contributor
Posts: 29
Registered: ‎11-22-2012
My Device: Blackberry Bold 9700
My Carrier: Axis

window.location.href didn't work on device

guys i need your help. i'm building a webworks app right now and i get a problem . 

i tried to change a page by using window.location.href = "example.html". it's worked on ripple but not on device. can some one give solution???

thanks,
-septaRD-

Contributor
Posts: 19
Registered: ‎07-18-2012
My Device: Playbook
My Carrier: None

Re: window.location.href didn't work on device

Hi!

You could try:

window.location = 'yourlink';

Eg:

<button OnClick="window.location = 'http://www.google.com';"/>

Contributor
Posts: 29
Registered: ‎11-22-2012
My Device: Blackberry Bold 9700
My Carrier: Axis

Re: window.location.href didn't work on device

hey, can i create  more than 1 html page but still use jquerymobile for the interface??? i just knew that jquery mobile has it's own rule for paging (by using div) 


Highlighted
Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: window.location.href didn't work on device

It's best to ask in a new topic rather than trying to ask a different question in an existing thread.

Tim Windsor
Open Source Technical Lead