By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,897 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

DHTML does not work in IE 6

P: n/a
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;visib ility: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;visib ility: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?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
pa**@wubios.wustl.edu (Paul THompson) writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
> 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/...pt/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?

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.