Download Print this page

NETGEAR KWGR614 User Manual page 9

Open source wireless-g router
Hide thumbs Also See for KWGR614:

Advertisement

Web Page Integration
The boa web server is used. Custom web pages are integrated at:
user/boa/src/www_WW/
Create the main page in the above directory. Use <% nvram_get("variable name"); %> to insert the value of a NVRAM
variable.
user/boa/src/www_WW/example.html
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<META http-equiv='Pragma' CONTENT='no-cache'>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<title>Router Customization Example</title>
<link rel="stylesheet" href="/form1.css" type="text/css">
<script language="javascript" type="text/javascript">
<!-- hide script from old browsers
function loadhelp(fname)
{
if(top.helpframe != null) {
}
}
//-->
</script>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onload="loadhelp('_example');">
Q: <% nvram_get("example_question"); %><br>
A: <% nvram_get("example_answer"); %>
</body>
</html>
Create the help file in the help directory. Name the file the same as the main page with a "help_" prefix.
user/boa/src/www_WW/help/help_example.html
<html>
<head>
<META name="description" content="KWGR614">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Pragma" content="no-cache">
<META HTTP-equiv="Cache-Control" content="no-cache">
<title>Help</title>
<link rel="stylesheet" href="help.css">
</head>
<body bgcolor="#0099cc" >
<h1>Example Help</h1>
<p>This is an example web page showing how to get a parameter from nvram.
</body>
</html>
Add a link to the admin page menu by editing the contents file and including a reference to the new web page.
user/boa/src/www_WW/contents1.html
top.helpframe.location.href="help/help"+fname+".html"
KWGR Open Source Guide (Rev 2.0)

Advertisement

loading