DHTML does not work in IE 6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul THompson

    #1

    DHTML does not work in IE 6

    I have a piece of code something like the following:

    START OF CODE
    <html><head><ti tle>The Wizard</title></head>
    <body> <h1>Welcome to Joe's Vet Clinic</h1>
    <div id="part1" style="position :absolute;top:1 50px;left:50px; visibility:visi ble;">
    <form name="visitor_i nfo">
    <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>YourZ ip Code:</td><td><input name="zip" type="text"></td></tr>
    </table>
    <input type="button" value="next"
    onClick="switch IfDone(this.for m, 'part1', 'part2');">
    </form></div>

    <div id="part2" style="position :absolute;top:1 50px;left:50px; visibility:hidd en;">
    <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="switch Div('part2', 'part1');">

    <input type="button" value="next"
    onClick="switch IfDone(this.for m, '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?
  • Lasse Reichstein Nielsen

    #2
    Re: DHTML does not work in IE 6

    paul@wubios.wus tl.edu (Paul THompson) writes:
    [color=blue]
    > I have a piece of code something like the following:
    >
    > START OF CODE[/color]
    ....HTML code...[color=blue]
    > END OF CODE[/color]

    Does it validate? If not, make it.
    [color=blue]
    > The code works perfectly in NN 7.0. It appears when the page is
    > served,[/color]

    What appears?
    [color=blue]
    > and the function switchIfDone changes the visibility.[/color]

    How is that function loaded? What is the code?
    [color=blue]
    > In IE6, it doesn't work at all.[/color]

    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.
    [color=blue]
    > Is there some reason why IE does not support DHTML?[/color]

    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 - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Graham J

      #3
      Re: DHTML does not work in IE 6

      > This code needs spport, and can't work as is. It is code taken from[color=blue]
      > the Apple Developer's Site.[/color]

      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.
      [color=blue]
      > 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.[/color]

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



      Comment

      Working...