Page 1 of 1

passing php vars to javascript library file

Posted: Wed Sep 13, 2006 3:51 pm
by Luke
I have an html file that calls a php page as a javascript library:

Code: Select all

<script type="text/javascript" src="jslib.php"></script>
Is it possible to pass variables to this php page?

Posted: Wed Sep 13, 2006 4:02 pm
by Luke
once again I posted before attempting the obvious:

Code: Select all

<script language="javascript" type="text/javascript" src="scripts/my_tinymce.php?foo=bar"></script>
works just fine