[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Problems...



I'm pretty sure it has to do with parallel downloading and/or redrawing the
page for final formatting. When you put HEIGHT and WIDTH attributes in a
<IMG> tag you effectively delay loading those images until after the rest of
the document is loaded -- text, JavaScript, forms, etc.  Apparently Netscape
"loses" the JavaScript code when it reformats a page to accommodate the
images.  The reformat is not necessary when Netscape knows the height and
width to begin with, as it uses the size to create right-size "place
holders" for the images..

Because the bug seems to be tied in with the delay of images, I usually
don't recommend the empty <SCRIPT> tags at the end of the document, because
that seems only to be a Band-Aid patch that doesn't work in all instances.
It certainly doesn't fix the crashing bugs that can occur if you don't
provide HEIGHT and WIDTH attributes.

-- Gordon

At 12:36 PM 3/9/96 -0500, you wrote:
>On Fri, 8 Mar 1996, Gordon McComb wrote:
>
>> Could you tell us more about the nature of your script?  Is the script
>> supposed to automatically run when the page is loaded?  Is there script
>> triggered by a form button or link? 
>
>I think I just ran into that image <HEIGHT= WIDTH=> thing, I added those 
>to all my image tags, and the functions are all of the sudden called. I'm 
>using onChange in text fields to have it calculate a total and tax on the 
>fly...
>
>If you ask me ... that is a pretty strange bug, what do Images have to do 
>with whether or not a JS runs?!
>
>--
>Aaron Huslage                                            catalogue.com,inc.
>ahuslage@catalogue.com                           	 ph: 919.933.4311

--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/