Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying form items onChange 1

Status
Not open for further replies.

DanT07

Programmer
May 11, 2005
38
GB
Hi there

I am again struggling with the Mozilla browser. I have a form which has various select boxes, which when an item is selected make other select boxes appear using: display = 'block'

In IE it is fine but in Mozilla nothing shows up. I wonder if you could view the code on my page and see if anything jumps out as to why this would be happening.


Thanks for the help,
Dan
 

Which version of Mozilla are you seeing the problem with?

I'm using 1.8b2, nightly build 2005032005, and when I select "standard package" from the first select, I get to see 4 more.

Is that not what you are seeing?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Ah yes it seems my copartner has fixed the problem. This issue lay in this line:

if(document.webdesign1.package.value==0)

Apparently mozilla based browsers do not like this line and prefer:

if(document.webdesign1.elements[0].value==0)

The next question is do you know why this is? :)
 
>if(document.webdesign1.package.value==0)
>Apparently mozilla based browsers do not like this line
>The next question is do you know why this is?

The reason is that "package" is a ecma official reserved words for further development of javascript. Mozilla based script engine is provisioned for this future use and ie-based engine apparently not yet.
 
Ah I thought it might have been.

Thanks for that info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top