BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-08-2009, 05:10 PM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: wifi
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling function or variable from other frames

Please Login to Remove!

Hi All,

With BlackBerry browser I'm unable to call function or variables from another frame with the code: top.frames["MyFrame"].MyVariable

I tried "document" instead of "top", no way

Is there another syntax to call in another frame or is it simply not supported ?

Thanks,
Offline  
Old 12-09-2009, 09:37 AM   #2 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: wifi
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by aldebarande View Post
Hi All,

With BlackBerry browser I'm unable to call function or variables from another frame with the code: top.frames["MyFrame"].MyVariable

I tried "document" instead of "top", no way

Is there another syntax to call in another frame or is it simply not supported ?

Thanks,

In fact it doesn't work with frame name but with frame index.
Also use the window object.
window.top.frames[0].MyVariable works fine
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10000uF 63V, 105°C, 30x50mm, Electrolytic Snap in Capacitor : 1pcs per lot
$6.99
10000uF 63V, 105°C, 30x50mm, Electrolytic Snap in Capacitor : 1pcs per lot picture47uF 400V Electrolytic Snap in Capacitor, CDE:380L470M400H012: 2pcs per lot
$6.99
47uF 400V Electrolytic Snap in Capacitor, CDE:380L470M400H012: 2pcs per lot pictureRadial Capacitor's : 10 / 22 uf 400v : 47 / 100 uf 450v : Assortment 2pcs each
$7.49
Radial Capacitor's : 10 / 22 uf 400v : 47 / 100 uf 450v : Assortment 2pcs each pictureCap: .047uf 250v : 5pcs per lot
$5.99
Cap: .047uf 250v : 5pcs per lot picture330uF 50V Electrolytic Radial Capacitor, UCC KME50VB331M10X20LL: 5pcs per lot
$5.99
330uF 50V Electrolytic Radial Capacitor, UCC KME50VB331M10X20LL: 5pcs per lot picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.