Netgear KWGR614 KWGR614 User Manual - Page 9

Web Integration

Page 9 highlights

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 to insert the value of a NVRAM variable. user/boa/src/www_WW/example.html Router Customization Example Q: A: 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 Help Example Help This is an example web page showing how to get a parameter from nvram. 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 KWGR Open Source Guide (Rev 2.0)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

KWGR Open Source Guide (Rev 2.0)
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
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
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
<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>
<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) {
top.helpframe.location.href="help/help"+fname+".html"
}
}
//-->
</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>