[Jslib] jslib include

Eric Plaster plaster@urbanrage.com
Mon, 17 Sep 2001 00:06:05 -0500


<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<br>Ok, maybe I'm just blind, but I seem to have run into an error that
I can't figure out.&nbsp; Pete, could you help me out?&nbsp; I'm getting
the following error:
<br>&nbsp;
<p>-----======[ ERROR ]=====-----
<br>ERROR: in jslib.js: include&nbsp; <A HREF="file:///home/plaster/mozilla/dist/bin/chrome/dndtools/spellviewer/plugins/phb.js">file:///home/plaster/mozilla/dist/bin/chrome/dndtools/spellviewer/plugins/phb.js</A>
is not a valid path or is already loaded
<br>Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SyntaxError
<br>Message:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
missing name after . operator
<br>Result:
<br>Location:
<br>NS_ERROR_NUMBER:&nbsp;&nbsp; NS_ERROR_INVALID_ARG
<br>------------------------------
<p>If I do a "ls -l " of the path its there and permisions are correct.&nbsp;
The code:
<p>var list = importdir.readDir();
<br>for( var i=0; i &lt; list.length; i++ ) {
<br>&nbsp;&nbsp;&nbsp; include(list[i].URL);
<br>}
<pre>--&nbsp;
----
Eric Plaster&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Urban Rage Software
Senior Software Engineer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (612)555-5555
plaster@urbanrage.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.urbanrage.com">http://www.urbanrage.com</A></pre>
&nbsp;</html>