On 8 Nov 2004 05:45:04 -0800, <ja***@cyberpine.com> wrote:
Thanks for response.
You're welcome.
I found my bug. I had left the <script language> tag [...]
The language attribute is deprecated, by the way. It has been for over six
years. The script type should be specified using the type attribute:
<script type="text/javascript">
... and apparently you can't have html in an external js file so the
function was not being found.
No, you certainly can't. The external file should only contain content
that is valid for the script language.
Incidently, what's the best way to expand on these javascript errors you
might get at the bottom of the browser screen. Any way to get more
detail, and maybe a line number or something. I'm using IE 6.0.
You can add the Microsoft Script Debugger, but I found it cumbersome to
use. I would recommend using another browser, which is generally a good
idea for Web development anyway as you don't fall into the trap of using
Microsoft-only "features"[1].
Opera's Javascript console automatically includes a trace through your
script that's very useful in determining what went wrong, where. The
development tools that come with the Mozilla Browser Suite and Mozilla
Firefox are also better than the IE console.
Opera <URL:http://www.opera.com/>
Mozilla <URL:http://www.mozilla.org/>
Mike
[1] Unless you're developing for a Microsoft-only environment, of course.
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.