"Ivo" <no@thank.you> wrote in message
news:41***********************@news.wanadoo.nl...
The files should at least be world readable.
perhaps you'll allow me to ask a follow up?
i have a function in javascript, works beutifully....nothing more than
setting a cookie....when the script is laid out in the head of the html, all
is cool! in the body section i just do an onload...and eveything works...
but when i move the function source to my server and replace it with
<SCRIPT language="JavaScript" SRC="FULLPATHNAME"></SCRIPT>
then the browser hits me with :
Error: Object Expected...on the line where i call the function....doesn't
matter what the permissions are....and the file is saved in pure text, with
the extention 'js'.....any ideas?
thanks ahead (code follows below)
when i have this in the head:
<SCRIPT LANGUAGE="JavaScript">
function SetCookie (name, value)
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
</SCRIPT>
then this works! <body onload="SetCookie('IsCrumb', 'true');"
bgcolor="#EEEEFF" text="#000000" link="#0000FF" vlink="#660033"
background="">
but the moment i replace the sourcecode with
<SCRIPT language="JavaScript"
SRC="http://www.mywebsiteexmaple.com/cgi-bin/jsSetCookie.js"></SCRIPT>
the error occurs....!!!!!!!