DHTML + Mac question

L

Lazy70

Hi,
I have an html page P that contains a iframe I.
In the same page i have two combobox, C1 and C2.
I would to load data in combo C2 after a choice by user over C1.
So I have created a jsp that get data from a DB and then build a page with
javascript code to update C2.

Foreach data I create an option with parent.document.createElement('option')
and then with an appenChild I update C2.

It worksfine on IE, Netscape (7) and Mozilla FireFox on PC, but doesn't work
in IE and Mac.
Why?
Can anybody know an alternative way to do the same thing without the reload
of P?

Thanks a lot
Ktrl+S
 
M

Mick White

Lazy70 said:
Foreach data I create an option with parent.document.createElement('option')
and then with an appenChild I update C2.

You may use, assuming form named "f", and a menu/list named "s":

document.f.s.options[document.f.s.options.length] =
new Option("Option text here","Option value here(optional)")

Mick
 
L

Lazy70

Mick White said:
Lazy70 said:
Foreach data I create an option with parent.document.createElement('option')
and then with an appenChild I update C2.

You may use, assuming form named "f", and a menu/list named "s":

document.f.s.options[document.f.s.options.length] =
new Option("Option text here","Option value here(optional)")

Mick

Thanks, now I try
I hope works ;)

Bye
Ktrl+S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top