Can anyone debug this?
I have created a page that uses a script to allow the text layout to switch back & forth between single- & multiple-columns. The column-switching script was actually written by John Krutsch (I personally don't know this much JavaScript). (Though I appreciate the other suggestions I received, this script ended up being exactly what I was looking for.) This is a great script, there is just one bug in the page. The page makes use of DHTML & JavaScript & I know the bug is related to the use of layers. Here's what happens: When I look at the page with Netscape & then choose one of the form's radio buttons, one of the links at the top of the page (which are table cells) flashes momentarily in the top left-hand corner of the screen. It doesn't mess up the script, as the page eventually loads correctly, but if anyone can figure out what causes that I'd really like to fix it. I can't find it myself. I know it has to do with the use of layers, and it's baffling me! The error does not appear when the page is viewed with Internet Explorer. Here's the webpage & here is a text copy of the source code. Thanks! Phyllis
Lloyd Hassell posted this at 03:54 — 7th April 2000.
They have: 231 posts
Joined: Feb 2000
This problem is most likely caused because you are dynamically writing your HTML. Similar things often happen with server-side programming.
One thing I noticed is that you are missing the </html> tag at the end of you page.
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
phyllis posted this at 14:01 — 7th April 2000.
They have: 59 posts
Joined: Mar 2000
Hi, thanks for the response. I had also thought that it must be because I'm generating the text with JavaScript. However, I created another webpage that does NOT dynamically write the text but still has the same problem. So it must be connected to the layers I'm using for links (this page uses the same type of links). Here's the other page that's doing the same thing: AFSAPAC webpage. Only the first two links matter because the others go to outside pages. Here's the source text for the profile page. I'm thinking maybe it's similar to when you open a document and you haven't specified width or height for an image, and it at first leaves the wrong size space for the image. But, as far as I can tell, I can't specify the coordinates for the layers because they're actually inside inline layers. Oh well. It isn't a really critical problem, but it is kind of annoying that I can't fix it. I did fix the closing tags, but unfortunately it didn't help. Oh well. If you can think of anything else that I might check, please let me know! Thanks very much, Phyllis
John Pollock posted this at 19:03 — 7th April 2000.
He has: 628 posts
Joined: Mar 1999
As far as I know, browser support has been choppy for css and layers and such so far. There are still quite a few things that need to be fixed in both browsers.
I don't know if this one has a better explanation or not..? If I find something though I'll put it up here.
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
phyllis posted this at 19:12 — 7th April 2000.
They have: 59 posts
Joined: Mar 2000
Thanks! By the way, I followed your tutorial from http://www.pageresource.com/dhtml/jtut6.htm to make the links. In spite of the Netscape bug, I'm still very happy with the look on both pages where I used them.
Phyllis
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.