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
zrai
Posts: 3
Registered: ‎03-05-2010
My Device: Curve 8900
Accepted Solution

Javascript...........

Hi everybody !!!

 

I have got a big problem... with JAVASCRIPT !!!

 

Here's my code : 

 

INDEX.PHP

 

<script type="text/javascript"  scr="ajax.php">

</script>

 

AJAX.PHP

 

echo "document.write('hello world')";

 

It works on all browser, iPhone, Android... But not with my BB :smileysad:

 

Someone could help me please ???

 

 

Please use plain text.
Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Javascript...........

Hi there,

 

Which OS version do you have on your phone?  Do you have JavaScript turned on in your Browser Options?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Javascript...........

Try this in ajax.php:

 

header('Content-type: text/javascript');

echo 'document.write("Hello world");';

 

Also try fixing your "scr" to "src" in index.php.

Please use plain text.
Developer
iamtony
Posts: 87
Registered: ‎02-26-2010
My Device: Bold 9000

Re: Javascript...........

Exactly my thoughts on the scr and src

Please use plain text.
New Contributor
zrai
Posts: 3
Registered: ‎03-05-2010
My Device: Curve 8900

Re: Javascript...........

thx to everybody :smileyhappy:

 

For the "scr" problem, i fixed it.

 

but it doesn't work...

 

my OS is : 4.6.1.206

Please use plain text.
New Contributor
zrai
Posts: 3
Registered: ‎03-05-2010
My Device: Curve 8900

Re: Javascript...........

[ Edited ]

i test your example... it works !!!!!!!!

 

THX !!!!!!!!!!!!!!!! :smileyvery-happy:

 

 

Please use plain text.