DHTML does not work in IE 6

P

Paul THompson

I have a piece of code something like the following:

START OF CODE
<html><head><title>The Wizard</title></head>
<body> <h1>Welcome to Joe's Vet Clinic</h1>
<div id="part1" style="position:absolute;top:150px;left:50px;visibility:visible;">
<form name="visitor_info">
<table><tr><td>Your name:</td><td><input name="visname"
type="text"></td></tr>
<tr><td>Your phone number:</td>
<td><input name="phone" type="text"></td></tr>
<tr><td>YourZip Code:</td><td><input name="zip" type="text"></td></tr>
</table>
<input type="button" value="next"
onClick="switchIfDone(this.form, 'part1', 'part2');">
</form></div>

<div id="part2" style="position:absolute;top:150px;left:50px;visibility:hidden;">
<form name="pet_info">
<table><tr><td>Your pet's name:</td>
<td><input name="petname" type="text"></td></tr>
<tr><td>Dog, cat, fish, bird, lizard or other:</td>
<td><input type="text" name="species"></td></tr>

<tr><td>Breed:</td>
<td><input name="breed" type="text"></td></tr>
</table>

<input type="button" value="prev"
onClick="switchDiv('part2', 'part1');">

<input type="button" value="next"
onClick="switchIfDone(this.form, 'part2', 'part3');">
</form>
</div>
blah blah blah
</html>
END OF CODE

This code needs spport, and can't work as is. It is code taken from
the Apple Developer's Site.

The code works perfectly in NN 7.0. It appears when the page is
served, and the function switchIfDone changes the visibility.

In IE6, it doesn't work at all.

Is there some reason why IE does not support DHTML?
 
L

Lasse Reichstein Nielsen

I have a piece of code something like the following:

START OF CODE ....HTML code...
END OF CODE

Does it validate? If not, make it.
The code works perfectly in NN 7.0. It appears when the page is
served,

What appears?
and the function switchIfDone changes the visibility.

How is that function loaded? What is the code?
In IE6, it doesn't work at all.

What doesn't work?

You have forgotten to tell us
1) what you have done (the Javascript code is missing, and it is the
most likely location of the problem),
2) what the page is supposed to do, and
3) what happens when you run it in IE ("not work at all" is not
precise enough).

That's three out of three of the questions we need answered before we
can help you. We need to be able to *reproduce* and *recognize* the
problem.
Is there some reason why IE does not support DHTML?

IE supports DHTML. It's just your code that apparently doesn't work.

Does it give any error messages? Do you have error messages turned on at
all?

Can we see the page? Either a link to the page, or a cut down version
of the code that is sufficient to reproduce the problem (with lines
no longer than 72 characters if posted here).

/L
 
G

Graham J

This code needs spport, and can't work as is. It is code taken from
the Apple Developer's Site.

Something like http://developer.apple.com/internet/javascript/wizard.html ?
I haven't compared that with your markup and you don't show your script but
it looks related.
The code works perfectly in NN 7.0. It appears when the page is
served, and the function switchIfDone changes the visibility.

In IE6, it doesn't work at all.

Well the URL above works perfectly in IE6 for me. How does your page
differ?
 

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
473,780
Messages
2,569,610
Members
45,255
Latest member
TopCryptoTwitterChannels

Latest Threads

Top