Jamiil said the following on 5/12/2006 7:08 AM:[color=blue]
> Thanks for your prompt response Randy,[/color]
Thank you for quoting in the future.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
<URL:
http://www.safalra.com/special/googlegroupsreply/ >
[color=blue]
> the tree directory looks like this
> c:\dev\index.html
> c:\dev\sound\sound_files.wav
> c:\dev\JavaScript\DisplayTimeInStatusBar.js
> ......
> When including the *.js, I used relative address
> <html>
> <head>
> ....
> <SCRIPT SRC="JavaScript\DisplayTimeInSatatusBar.js"></SCRIPT>[/color]
That is not what you posted the first time though. But even then,
..\JavaScript and JavaScript are not the same path. For testing purposes,
put your .js file in the same folder. Resolve any and all errors, then
move it to the folder. Then, if you get errors you know it is a file
reference error. Is that the way your file is named as well? When
testing locally IE doesn't care about case, it will matter on a live
website though.
[color=blue]
> </head>
> ..
> I don't see a problem with this statement, however, I have been proven
> wrong more than once.
> Could you please elaborate a bit more on this issue?[/color]
Which issue? The path issue? If you give a src attribute an improper
source file, then IE will get a "404 Page not Found" file and insert it
in the src since it can't find the file it was hunting. And since the
first few characters of that file are <html, it is a syntax error in the
script block.
[color=blue]
> And yes, you are rihgt! I still get the runtime error!![/color]
Runtime Error or Syntax Error?
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/