I am using a joomla module that can be used for custom php and javascript. The module only read PHP so to use a javascript you have to write a php document and inlcude the Javascript in it. How do I set this up?
I'm not familiar with Joomla, so there may be some special code required by your plugin, but in general, you can write PHP code that outputs regular ol' html to the browser. echo '<script src="foo.js"></script>'; PHP: or echo '<script>window.location = "foo.html"; </script>'; PHP:
Or, you could just end the php block and continue after like: ?> <script src="foo.js"></script> <? As with their way, you might end up with escaping problems.