473,385 Members | 1,661 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,385 software developers and data experts.

DHTML does not work in IE 6

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
2 3105
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: viator | last post by:
Hello everybody. I am a student doing my masters in Comp. Sci. Will some explain to me why it seems completely two worlds when taking about DHTML in NN and IE. Is there any way to write truly...
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...
5
by: parksch2 | last post by:
Hi all, I'm having a hard time with the use of my DHTML menu and video on my site. The video is served using Windows Media Player. Short of hiding it, I can't seem to get my DHTML menu to appear...
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...
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...
1
by: sdonohue | last post by:
I am not very good at DHTML, but I have a set of links that use DHTML and they work :) But now the customer wants to have one of my DHTML links call a javascript function when it is clicked on. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.