Page 1 of 1

combobox text

Posted: Sat Jul 17, 2004 6:50 pm
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?

Posted: Sat Jul 17, 2004 7:51 pm
by John Cartwright
[php_man]session[/php_man]

Posted: Sat Jul 17, 2004 8:26 pm
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)