passing php vars to javascript library file

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

passing php vars to javascript library file

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
Post Reply