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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Developer
tangen
Posts: 17
Registered: ‎01-07-2010
Accepted Solution

Blackberry Javascript

Hi all,

I have 2 questions:

 

1) I'm working on a location javascript.  How can I  enable BlackBerry Browser's JavaScript by program?

 

2) I don't want that this message appear:  "A javascript has requested the physical location of your device. do you whish to provide it to the script?" . How can set it automatically to ok?

 

thx

 

Luca

Please use plain text.
Administrator
astanley
Posts: 1,127
Registered: ‎07-02-2009
My Carrier: Bell

Re: Blackberry Javascript

Hi Tangen,

 

You cannot programmatically override the user's selection of the "Enable JavaScript Location Support" feature found within General Properties of Browser Options.

 

The reason for these security settings is to protect the users online privacy.  Otherwise a website would be able to monitor an individual's physical location without their consent using the BlackBerry browser.

 

The prompt you have described should be displayed only once per domain, confirming the users selection.  This behaviour cannot be overridden.

 

Best regards,

Adam

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.

Watch the BlackBerry Jam Americas Sessions.
Please use plain text.
New Member
cyip
Posts: 1
Registered: ‎10-02-2010

Re: Blackberry Javascript

Hi Adam,

 

This post has been quite a while ago. I'm wondering if this means that users have to always manually enable the 'Javascript' option on the BB browser. I'm developing a web app tailored for Blackberry browser that requires geolocation. It's just that it seems quite troublesome for users to enable the 'Javascript' option everytime they open our web.

 

Thanks.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
My Carrier: Rogers

Re: Blackberry Javascript

[ Edited ]

It depends on the OS version.  In OS 5.0 and BlackBerry 6 JavaScript is turned on by default.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
fsafadi
Posts: 29
Registered: ‎09-11-2010
My Carrier: AT&T

Re: Blackberry Javascript

My experience has been that the script will ask every single time, same domain, latest OS v.5.0.0.602

Please use plain text.
Trusted Contributor
vishal_33
Posts: 104
Registered: ‎07-08-2010
My Carrier: developer

Re: Blackberry Javascript

hi please give me solution is it possible to call javascript function that is part of web services function name like loginpress() this. so can call this function using browserfield or any other solution?
Regards
Vishal Patel
Please use plain text.
Trusted Contributor
vishal_33
Posts: 104
Registered: ‎07-08-2010
My Carrier: developer

Re: Blackberry Javascript

how can i call javascript function using browserfield from java class? or any other solution for calling javascript function ? function name like login() it is located in webservice.
Regards
Vishal Patel
Please use plain text.
New Member
kayfaka
Posts: 1
Registered: ‎01-27-2012
My Carrier: student

Re: Blackberry Javascript

Pls I need help immediately,How can I install javascript on my blackberry tour 9630?
Please use plain text.
Contributor
baileysuchacek
Posts: 10
Registered: ‎09-17-2012
My Carrier: unlocked

Re: Blackberry Javascript

Adam, you said the prompt for a javascript requesting input for user location should appear only once per domain. I get it every single screen. ?
Please use plain text.