Click to See Complete Forum and Search --> : external javascript again
Hallo,
I know this is one of the most posted threads here, but in my case its special.
I use this code for calling some JS.
<script language="JavaScript" src="../js/nopcart.js"></script>
<script language="JavaScript" src="../js/standard_lang.js"></script>
It works goed if i use in a PHP file. If I use it in a HTML file it sucks.
Any idea?
I don't see why, this is the correct syntax. Have u checked is the tree reference ../ is correct? I mean, is there a real tree way back and forth to that folder?
That's right i found the problem inside the scripts. (they need some cookie info and i called them without one)
It's solved.
errrrr... the external file name should not have special characters, like _...
Hallo,
i saw that there are problems with the path in a cookie. It seems to be that i have to register the cookie on the lowest level, otherwise i t doesn't work.
Is there anothersolution?
soccer362001
01-14-2004, 04:00 PM
Originally posted by olaf
Hallo,
I know this is one of the most posted threads here, but in my case its special.
I use this code for calling some JS.
<script language="JavaScript" src="../js/nopcart.js"></script>
<script language="JavaScript" src="../js/standard_lang.js"></script>
First of all its <script type="text/javascript" src="../js/nopcart.js"></script>
First of all its <script type="text/javascript" src="../js/nopcart.js"></script>
Well... some say that "language" is a deprecated attribute and is maybe a better ideea to use "type" instead. In fact, as far as I have noticed, if avoiding upper caps, each and both "language" or/and "type" will do the job properly... You may encounter some validation problems, but there will no real errors....
I think the most clients are ie 5 or higher. That means the script-tag should be enough...