Bugzilla 2.19.1 search-advanced.html.tmpl JS Error
Christopher Hicks
chicks at chicks.net
Tue Dec 7 17:12:34 UTC 2004
On Tue, 7 Dec 2004, Kevin Benton wrote:
> Is anyone else running into this problem? I'm wondering if it make
> sense to create a .js file for all the JavaScript then putting .
>
> <SCRIPT SRC="global/ecmascript.js" LANGUAGE="JAVASCRIPT"
> TYPE="TEXT/JAVASCRIPT">
>
> . in the header. This way, all the JavaScript could properly be pre-loaded
> before any calls to routines in the body tags such as doOnSelectProduct(0).
This is a good practice in my experience. JavaScript has a way of growing
and it tends to be something that can be reused by different pages. But
even if its not being reused having HTML in html files and JavaScript in
js files make maintenance cleaner and easier.
--
</chris>
"Fans of Mozilla's free, open-source Firefox browser make the
ardent Apple faithful look like a bunch of slackers."
- Rebecca Lieb at clickz.com
More information about the developers
mailing list