You can use the following template to include your complete Javascript code in your PHP-Nuke module:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
// 0 : do not show right blocks - 1:show right blocks
$index = 0;
include("header.php");
?>
// PUT HTML OR JAVASCRIPT CODE HERE,
// OR GET RID OF THE ?> AND <?php ABOVE AND BELOW THIS LINE
// AND USE <acronym>PHP</acronym> CODE HERE INSTEAD.
<?php
include("footer.php");
?>
|
![]() |
Javascript with PHP |
|---|---|
|
If you decide to use PHP code ("echo"s) to enter your Javascript code, you should take into account the rules presented in Section 21.9.1. |
![]() |
Javascript codebase | |
|---|---|---|
|
You may need to add the following line to your Javascript applet:
|
| Last updated Sun Aug 7 21:14:12 CEST 2005 | Permalink: http://www.karakas-online.de/EN-Book/javascript-in-php-nuke-modules-complete.html | All contents © 2004 Chris Karakas, Claudio Erba |