-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Cédric,
There is no reason, why the javascript should not work. Your javascript 
directory needs to be at 
the same level as the 'js' directory. I see no reason, why it could not work.

What does the javascript console say?

    - Peter

- --On May 14, 2007 16:18:08 +0200 cedric delaunay <[EMAIL PROTECTED]> wrote:

| Hi Peter,
| I would like use javascript functions in a front end plug-in but they seems 
not to be loaded.
| Is there something to now before using javascript in nfsen plugins ?
| Am I doing a big mistake using javascript in nfsen ? :-P
|
| Here is the beginning of my plugin main page :
|
| <?
| /*
|  * demo plugin
|  */
|
| // Required functions
| /*
|  * This function is  called prior to any output to the web browser and is 
intended
|  * for the plugin to parse possible form data. This function is called only, 
if this
|  * plugin is selected in the plugins tab
|  */
| function demoplugin_ParseInput( $plugin_id ) {
|      //SetMessage('error', "Error set by demo plugin!");
|     //SetMessage('warning', "Warning set by demo plugin!");
|     //SetMessage('alert', "Alert set by demo plugin!");
|     //SetMessage('info', "Info set by demo plugin!");
|
| } // End of demoplugin_ParseInput
|
|
| /*
|  * This function is called after the header with the navigation bar have been 
sent to the
|  * browser. It's now up to this function what to display.
|  * This function is called only, if this plugin is selected in the plugins tab
|  */
| function demoplugin_Run( $plugin_id ) {
|
| include('config.php');
| include ('email.php');
|
| print "<pre>";
|  print_r ($_POST);
| // print_r ($_SESSION);
|  print "</pre>";
|
| ...
| php functions ...
| ....
|
| ?>
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd";>
| <html xmlns="http://www.w3.org/1999/xhtml";>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
| <title>statistiques netflow</title>
| <link href="formulaire.css" rel="stylesheet" type="text/css" />
| <script type="text/javascript" src="javascript/cachedecache.js" />
| <script type="text/javascript" src="javascript/spy.js" />
| <script type="text/javascript" src="javascript/prototype.js" />
| <script type="text/javascript" src="javascript/scriptaculous.js" />
|
|
| </head>
| <body>
| <!--  ================= zone d'affichage du formulaire ===================== 
-->
|
| <!-- formulaire principal -->
| <form name="form_stat" id="form_stat" action="<? echo $self;?>" method="POST" 
>
|         <label for="date">entrez une date: </label>
|         <input type="text" name="date" id="date"
|
|
| ...
|
| <div id="res_cmd" class="autocomplete">
|     <?
|    include("exec.php");
|     ?>      </div>
| </body>
| </html>
| <?
| } // End of demoplugin_Run
| ?>
| // end of demoplugin
|
|
| Thanks and Regards,
| Cédric



- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box,  CH-8021   Zurich, Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iQCVAwUBRksIav5AbZRALNr/AQIgrQQAhw1WHpTpOLrnx5nwwOZQVq2foGGDAnOL
At/gTB3ef9oE1sweTBzyb+VFsLBo7yJ2tUjf3chL8++Pgq3F+4fYuVTOh2DrZVZd
zB1KIEQPpnOBppUPdUuKz5adwRCR766zfFG4OiRdHvEG9kcvkhLRFlrnrIB+vl6f
NeXd1zb2quQ=
=9Twv
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to