combobox text

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
r3pek
Forum Newbie
Posts: 3
Joined: Fri Mar 12, 2004 7:52 am
Location: Lisbon, Portugal
Contact:

combobox text

Post by r3pek »

hi...
i want to access to a combobox that is on a frame to know value, but from another frame.

basically, i have 2 frames. one with the combobox that i want to know the value and another where i need that value. how can i do this?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

[php_man]session[/php_man]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

javascript can do it fairly easy too, if that's what you are getting at.. something like:

Code: Select all

var obj = top.frame2name.document.formname.combo_box_name;
var value = obj.optionsїobj.selectedIndex].value
(from the frame wanting the info)
Post Reply