Forum Moderators: phranque

Message Too Old, No Replies

can external js files parse variables

         

proxyHunter

5:05 am on Oct 8, 2003 (gmt 0)

10+ Year Member



<script language="JavaScript" src="file.js?id=101"></script>

is this possible?

johannes

8:54 am on Oct 8, 2003 (gmt 0)

10+ Year Member



Do you use php or anything?

Put this

<Files file.js>
ForceType application/x-httpd-php
</Files>

in you htaccess.

Then you output the file.js with php and can parse the id=101 into the javascript.