IE changes cell widths upon JavaScript insertion??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jeffyen@gmail.com

    IE changes cell widths upon JavaScript insertion??

    Hi there, thanks to anyone in advance who can help me with this.

    I am creating an HTML page with extensive CSS and table formatting; one
    thing that is driving me absolutely bats**t crazy is that I have a
    simple Javascript date display widget:

    <script language="JavaS cript" src="script/date.js"></script>

    in one cell. Upon insertion of the script, IE takes it upon itself to
    stretch the cell vertically by a few pixels, without explanation. The
    cell's width and height are manually set by pixel (width="xx
    ', height="yy"). The length of the document.write isn't long enough to
    stretch the cell out of shape.

    Is there a way for me to get around this?

    If you'd like to see the source, please shoot me an e-mail or post.

  • Jim Moe

    #2
    Re: IE changes cell widths upon JavaScript insertion??

    jeffyen@gmail.c om wrote:[color=blue]
    > Hi there, thanks to anyone in advance who can help me with this.
    >
    > If you'd like to see the source, please shoot me an e-mail or post.
    >[/color]
    The best way is to post an URL with a test case that demonstrates the
    problem.

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)

    Comment

    • Jukka K. Korpela

      #3
      Re: IE changes cell widths upon JavaScript insertion??

      jeffyen@gmail.c om wrote:
      [color=blue]
      > Hi there, thanks to anyone in advance who can help me with this.[/color]

      You are not making it easy to help you, when you don't post the URL.
      [color=blue]
      > I am creating an HTML page with extensive CSS and table formatting; one
      > thing that is driving me absolutely bats**t crazy is that I have a
      > simple Javascript date display widget:
      >
      > <script language="JavaS cript" src="script/date.js"></script>
      >
      > in one cell.[/color]

      Your page is most probably broken by design, when considered as a World
      Wide Web page. You are probably generating a wrong date with wrong
      (unreliable) tools, in a place where no date is needed. You could show
      that I'm wrong by showing the URL and explaining why the date should be
      there if and only if JavaScript is enabled and your JavaScript code
      happens to work.
      [color=blue]
      > Upon insertion of the script, IE takes it upon itself to
      > stretch the cell vertically by a few pixels, without explanation.[/color]

      You have probably met the White Space Bug. But since you want to hide
      your source, I will hide my technical advice behind some obscurity
      (though in a manner that should be more easily solvable than the URL of
      your page).
      [color=blue]
      > Is there a way for me to get around this?[/color]

      Yes, start learning the basics of good WWW authoring.
      [color=blue]
      > If you'd like to see the source, please shoot me[/color]

      No, I think I won't.

      Comment

      • jeffyen@gmail.com

        #4
        Re: IE changes cell widths upon JavaScript insertion??

        I fixed it on my own, but gosh, I am SO happy you decided to reply with
        such helpful advice; delivered, no less, with such charming wit and
        bonhomie.

        I would suggest you start learning the basics of good manners.

        Comment

        • jeffyen@gmail.com

          #5
          Re: IE changes cell widths upon JavaScript insertion??

          That last was for Jukka; Jim, thank you for your reply.

          Comment

          Working...