Re: [WSG] Popups (plus, standards-based event handling)

2005-01-14 Thread Ben Curtis
Another method I've imagined but never implemented is for each added function to add itself to an array of functions. ... It's efficient. Your imagination is should try it. Er, "Your imagination is on the right track; you should try it." My imagination, apparently, completes sentences that my f

Re: [WSG] Popups (plus, standards-based event handling)

2005-01-13 Thread Ben Curtis
Also, while it's convenient to insert javascript event handlers into HTML markup when demonstrating an example, in practice it's probably best to leave the script out of the markup and apply it from a separate script file at window.onload. One beef I have with this code, and most code of this natu

Re: [WSG] Popups (plus, standards-based event handling)

2005-01-13 Thread Paul Novitski
At 02:39 PM 1/13/05, Ben Curtis wrote: Also, while it's convenient to insert javascript event handlers into HTML markup when demonstrating an example, in practice it's probably best to leave the script out of the markup and apply it from a separate script file at window.onload. One beef I have with

Re: [WSG] Popups (plus, standards-based event handling)

2005-01-13 Thread JohnyB
window.onload = externalLinks; This is fine, if it's the only code you are assigning to onload, but it overwrites any previous onloads and is overwritten by subsequent onloads. ... Another issue is that it works only after loading the whole page... I use it in (testing setup of) a photogal

Re: [WSG] Popups (plus, standards-based event handling)

2005-01-13 Thread Ben Curtis
Also, while it's convenient to insert javascript event handlers into HTML markup when demonstrating an example, in practice it's probably best to leave the script out of the markup and apply it from a separate script file at window.onload. I'm curious as to how you do that, because to my mind