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