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
Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified
Accepted Solution

problem to enable javacsript

hello,

i m new in blackberry  web application.

 

I have several basic question,so please help me to solve it.

 

(1) Is javascript enable by default in blackberry web app?

 

(2)If  javascript disable then how  can i enable it dynamically ?

 

Note:i don't want to enable it manually, i want some code which enable javascript.

 

please help me as soon as possible.

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: problem to enable javacsript

Hello, the term "Web application" can be ambiguous, so let me clarify two answers to your questions.

 

Browser-based Web application:

1) JavaScript was enabled in the borwser by default starting with OS 5.0

2) There is no fully-programmatic way to enable JavaScript in the browser.  However you can use a technique that makes use of the noscript tag and some JavaScript that prompts the user to enable JavaScript.  John Wargo has a nice blog article on how to do this:

http://www.johnwargo.com/index.php/blackberry/programmatically-enabling-javascript-in-the-blackberry...

 

 

Standalone Web application created using the BlackBerry WebWorks SDK

1) Yes

2) n/a

 

Cheers,

Adam

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: problem to enable javacsript

thanks for reply.