473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1171
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.