472,799 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

DHTML + Mac question

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
Jul 23 '05 #1
2 1151
Lazy70 wrote:
Hi, <snip>
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

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

Jul 23 '05 #2
"Mick White" <mw******@BOGUSrochester.rr.com> wrote in message
news:Mh********************@twister.nyroc.rr.com.. .
Lazy70 wrote:
Hi,

<snip>

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
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jag | last post by:
Hi, I am trying tolink a dynamic page which was HTML till now and has been converted to a JSP and has been included in the JS library and when I am trying to deploy the site on Sun One App...
6
by: egg | last post by:
Dear Sir/Madam, I'm about to start a project, the idea is to have a web interface to let user specify the URL of a target HTML document, based on that URL, retrieved and parsed the HTML document...
2
by: Frances Del Rio | last post by:
please, can you go to http://www.francesdelrio.com/dhtml/ when you click the name of the character the font color for all the lines of that character should change.. this is a simple DHTML...
1
by: Steve | last post by:
Hi; I have heard about a few very good books on DHTML, but the most modern ones seem to have been published in 2002. Have any _significant_ changes in DHTML or the standard DOM happened since...
3
by: adrian suri | last post by:
Hi short question are selectors h1, h2 <script> p etc now case sensitive in the world of DHTML eg transitional / strict regards Adrian
5
by: Sura | last post by:
Hi I have designed a simple DHTML menu which comes over a flash animation when it appears. I have set the window mode as transparent in the flash project. This menu is showing fine when seen...
2
by: | last post by:
Hello All, Could some one send me information on DHTML tutorials where I can leand the differences between html and dhtml. Thanks, ...
4
by: bbass | last post by:
thanks to all that replyied to my previous post with the following code in question: <a href="merc.htm" target="_new_merc" onfocusout=window.close class="left_link"> i understand that the...
20
by: cwdjrxyz | last post by:
There have been fancy dhtml text effects since the early days of javascript. The rainbow text effect was one of the early ones. While some such effects may be fun on private pages, they can easily...
17
by: Jacques Jamain | last post by:
hello, in a dhtml page generated from php I want to include a file which is in fact the body of the dhtml page. My hosting ISP does not allow SSI but supports php includes. In the dhtml page, the...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.