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

Java Development

Reply
New Developer
Posts: 134
Registered: ‎01-11-2011
My Device: curve

Is it possible to call a javascript function embeded in the response of URL hit

Hi all

        I am working on an app in which i am to excute a javascript funtion embeded in the HTML response of the URL.

      Is it possible and if yes then please tell me how  is this possible.

Developer
Posts: 146
Registered: ‎07-24-2008
My Device: none
My Carrier: none

Re: Is it possible to call a javascript function embeded in the response of URL hit

Hii

Look in to the class

net.rim.device.api.browser.field2.BrowserField


Its available from 5.0 onwards.


It contains a method

executeScript(String script)



See if this helps.


Thanks

Ankit

 

Thanks & Regards,
Ankit Dubey
Module Lead Software Engineer, mLabs
Impetus InfoTech (India) Pvt. Ltd.
New Contributor
Posts: 3
Registered: ‎12-21-2010
My Device: Not Specified

Re: Is it possible to call a javascript function embeded in the response of URL hit

It doesn't work!!

 

Contributor
Posts: 14
Registered: ‎06-06-2011
My Device: bold 8900
My Carrier: ufone

Re: Is it possible to call a javascript function embeded in the response of URL hit

hi vishal

if u got the solution of the problem kindly let me know coz i m having the same problem

thankful for your time

 

Highlighted
Contributor
Posts: 14
Registered: ‎06-06-2011
My Device: bold 8900
My Carrier: ufone

re:

hi vishal

if u got the solution of the problem kindly let me know coz i m having the same problem

thankful for your time

 

Developer
Posts: 207
Registered: ‎09-10-2010
My Device: Not Specified

Re: re:

Look at Anikit's response. I can confirm that it works for me at least.