shlomikalfa Posted December 22, 2007 Share Posted December 22, 2007 My page: <html> <head> <title>>Quickstart>Quick Start</title> <meta http-equiv=content-type content="text/html; charset=iso-8859-1"> <style type="text/css">body { background-color: #FFFFFF; margin: 0px 0px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; } input:disabled { background-color: #DFDFDF; } a { color: purple; text-decoration: none; } a:hover { text-decoration: underline; } b { font-weight: bold !important; } ul { list-style-type: none; } p, td { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; text-decoration: none; color: black; } form { margin: 0px; padding: 0px; } /* select { background-color: #FFFFFF; margin: 0px 0px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; text-decoration: none; } */ .uiErrorHint { border-style: none; color: red; } textarea { background-color: #FFFFFF; margin: 0px 0px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; text-decoration: none; } .header { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; color: black; padding: 8px; text-align: center; } .uiErrorCell { width: 20px; height: 16px; align: left; text-decoration: none; white-space: nowrap; } .homeHeader { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; color: black; padding: 0px 0px 8px 0px; text-align: center; } .menuHeaderLeft { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; color: black; padding: 5px 0px 5px 56px; text-align: left; } /* .bodyText { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: black; text-decoration: none; } */ .displayTable { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; color: black; } .errorMessage { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; color: black; text-align: center; } .statusSubHeader { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; color: black; } .statusLeft { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; color: black; } .errorTable { /* border-style: solid; border-color: #CC0000; border-width: 1px; */} .uiNoBorder { border-bottom: 0px; border-top: 0px; border-right: 0px; border-left: 0px; text-align: center; } .sideHeader { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: black; text-decoration: underline; } </style> <!-- checkpoint 1 --> <script language="JavaScript"> var uiMenu = new Array(); uiMenu["top"]= new Array(); uiMenu["top"]["btn_on"]=null; uiMenu["top"]["btn_off"]=null; uiMenu["top"]["btn_cur"]=null; uiMenu["top"]["id"]=null; uiMenu["top"]["next"]="quickstart"; /* uiMenu["home"]= new Array(); uiMenu["home"]["btn_on"]="../html/defs/style1/images/ti_top_menu_home_hilite.gif"; uiMenu["home"]["btn_off"]="../html/defs/style1/images/ti_top_menu_home.gif"; uiMenu["home"]["btn_cur"]=""; uiMenu["home"]["id"]="uiViewMenuTopHomeBtn"; uiMenu["home"]["next"]="null"; */ uiMenu["quickstart"]= new Array(); uiMenu["quickstart"]["btn_on"]="../html/defs/style1/images/ti_top_menu_quick_hilite.gif"; uiMenu["quickstart"]["btn_off"]="../html/defs/style1/images/ti_top_menu_quick.gif"; uiMenu["quickstart"]["btn_cur"]=""; uiMenu["quickstart"]["id"]="uiViewMenuTopQuickstartBtn"; uiMenu["quickstart"]["next"]="setup"; uiMenu["setup"]= new Array(); uiMenu["setup"]["btn_on"]="../html/defs/style1/images/ti_top_menu_setup_hilite.gif"; uiMenu["setup"]["btn_off"]="../html/defs/style1/images/ti_top_menu_setup.gif"; uiMenu["setup"]["btn_cur"]=""; uiMenu["setup"]["id"]="uiViewMenuTopSetupBtn"; uiMenu["setup"]["next"]="adv"; uiMenu["adv"]= new Array(); uiMenu["adv"]["btn_on"]="../html/defs/style1/images/ti_top_menu_advanced_hilite.gif"; uiMenu["adv"]["btn_off"]="../html/defs/style1/images/ti_top_menu_advanced.gif"; uiMenu["adv"]["btn_cur"]=""; uiMenu["adv"]["id"]="uiViewMenuTopAdvBtn"; uiMenu["adv"]["next"]="tools"; uiMenu["tools"]= new Array(); uiMenu["tools"]["btn_on"]="../html/defs/style1/images/ti_top_menu_tools_hilite.gif"; uiMenu["tools"]["btn_off"]="../html/defs/style1/images/ti_top_menu_tools.gif"; uiMenu["tools"]["btn_cur"]=""; uiMenu["tools"]["id"]="uiViewMenuTopToolsBtn"; uiMenu["tools"]["next"]="status"; uiMenu["status"]= new Array(); uiMenu["status"]["btn_on"]="../html/defs/style1/images/ti_top_menu_status_hilite.gif"; uiMenu["status"]["btn_off"]="../html/defs/style1/images/ti_top_menu_status.gif"; uiMenu["status"]["btn_cur"]=""; uiMenu["status"]["id"]="uiViewMenuTopStatusBtn"; uiMenu["status"]["next"]="help"; uiMenu["help"]= new Array(); uiMenu["help"]["btn_on"]="../html/defs/style1/images/ti_top_menu_help_hilite.gif"; uiMenu["help"]["btn_off"]="../html/defs/style1/images/ti_top_menu_help.gif"; uiMenu["help"]["btn_cur"]=""; uiMenu["help"]["id"]="uiViewMenuTopHelpBtn"; uiMenu["help"]["next"]=null; uiMenu["left"]= new Array(); uiMenu["left"]["btn_on"]=null; uiMenu["left"]["btn_off"]=null; uiMenu["left"]["btn_cur"]=null; uiMenu["left"]["id"]=null; uiMenu["left"]["next"]="quickstart"; uiMenu["quickstart"]= new Array(); uiMenu["quickstart"]["btn_on"]=""; uiMenu["quickstart"]["btn_off"]=""; uiMenu["quickstart"]["btn_cur"]=""; uiMenu["quickstart"]["id"]="uiViewMenuQuickstartQuickstartBtn"; uiMenu["quickstart"]["next"]="logout"; uiMenu["logout"]= new Array(); uiMenu["logout"]["btn_on"]="../html/defs/style1/images/ti_menu_logout.gif"; uiMenu["logout"]["btn_off"]="../html/defs/style1/images/ti_menu_logout.gif"; uiMenu["logout"]["btn_cur"]=""; uiMenu["logout"]["id"]="uiViewBtnMenuLogoutBtn"; uiMenu["logout"]["next"]=null; function jslDoMenuRollOver(menu,item_id) { var node,id; for(node=uiMenu[menu];node!=null;node=uiMenu[node["next"]]) { id=node["id"]; if(id==null) continue; node["btn_cur"]=document.getElementById(id).src; if(id==item_id) document.getElementById(id).src=node["btn_on"]; else document.getElementById(id).src=node["btn_off"]; } } function jslDoMenuRollOut(menu) { var node,id; for(node=uiMenu[menu];node!=null;node=uiMenu[node["next"]]) { id=node["id"]; if(id==null) continue; document.getElementById(id).src=node["btn_cur"]; } } </script> <!-- checkpoint 2 --> <!-- Checkpoint quickstart lib.js begin --> <!-- ../html//home.js --> <!-- az_author = az_debugger = _debugger --> <script language="JavaScript"> function jslDoToggleCheckBox(id) { var checkbox,i; var num = jslDoToggleCheckBox.arguments.length; if(num==0) return; if(num==1) { // Toggle only one checkbox checkbox = document.getElementById(id); if(checkbox == null) return; if(checkbox.value=="on") { checkbox.value="off"; checkbox.src="../html/defs/style1/images/ti_check_off.gif"; } else { checkbox.value="on"; checkbox.src="../html/defs/style1/images/ti_check_on.gif"; } } else { checkbox = document.getElementById(id); if(checkbox == null) return; // Set the first one to "checked" and the rest to "unchecked" checkbox.value="on"; checkbox.src="../html/defs/style1/images/ti_check_on.gif"; for(i=1;i < num; i++) { checkbox = document.getElementById(jslDoToggleCheckBox.arguments[i]); if(checkbox == null) return; checkbox.value="off"; checkbox.src="../html/defs/style1/images/ti_check_off.gif"; } } return false; } function jslDoToggleViews(id) { var view,i; var num = jslDoToggleViews.arguments.length; if(num==0) return; if(num==1) { // Toggle only one view view = document.getElementById(id); if(view == null) return; if(view.style.display=="block") view.style.display="none"; else view.style.display=""; } else { for(i=1;i < num; i++) { view = document.getElementById(jslDoToggleViews.arguments[i]); if(view == null) return; view.style.display="none"; } view = document.getElementById(id); if(view == null) return; // Set the first view to "block" view.style.display=""; } return false; } function doLoadPage(id,page) { var handle = document.getElementById(id); if(handle!=null) handle.src=page; } function jslDoClearHighlight(id) { var element; element = document.getElementById(id); if(element != null) { element.style.background = "white"; //element.style.border="none"; } element.blur(); return false; } function jslDoSetHighlight(id,color) { var element; element = document.getElementById(id); if(element != null) { //element.style.borderStyle="solid"; //element.style.borderColor="black"; //element.style.borderBottomWidth="1"; //element.style.borderTopWidth="1"; //element.style.borderLeftWidth="1"; //element.style.borderRightWidth="1"; element.style.background = color; } element.select(); element.focus(); return false; } function jslIsString(id) { if(document.getElementById(id).value.match("[a-zA-Z0-9_]+")!=null) return true; return false; } function jslSetValue(variable,value) { document.getElementById(variable).value=document.getElementById(value).value; } function jslDisable(id) { var i; var num=jslDisable.arguments.length; if(num==0) return; for(i=0;i < num; i++) document.getElementById(arguments[i]).disabled=true; } function jslEnable(id) { var i; var num=jslEnable.arguments.length; if(num==0) return; for(i=0;i < num; i++) document.getElementById(arguments[i]).disabled=false; } function jslDoToggleRadio(id,index,maxId) { var radiobox,i; var ids; if(maxId==1) { // Toggle only one radio radiobox = document.getElementById(id+index); if(radiobox == null) return; if(radiobox.value=="on") { radiobox.value="off"; radiobox.src="../html/defs/style1/images/ti_radio_off.gif"; } else { radiobox.value="on"; radiobox.src="../html/defs/style1/images/ti_radio_on.gif"; } } else { radiobox = document.getElementById(id+index); if(radiobox == null) return; // Set the current one to "checked" and the rest to "unchecked" radiobox.value="on"; radiobox.src="../html/defs/style1/images/ti_radio_on.gif"; for(i=0;i<maxId; i++) { if(i==index) continue; radiobox = document.getElementById(id+i); if(radiobox == null) return; radiobox.value="off"; radiobox.src="../html/defs/style1/images/ti_radio_off.gif"; } } return false; } function jslDoToggleDisabled(preText,currentId,maxId) { var Element,i; var ids; if(maxId==1) { Element = document.getElementById(preText+currentId); if(Element == null) return; if(Element.disabled==true) Element.disabled=false; else Element.disabled=true; } else { Element = document.getElementById(preText+currentId); if(Element == null) return; // Set the current one to "true" and the rest to "false" Element.disabled=false; for(i=0;i<maxId; i++) { if(i==currentId) continue; Element = document.getElementById(preText+i); if(Element == null) return; Element.disabled=true; } } return false; } function jslPostToViewCheckBox(ViewId,PostId) { if(document.getElementById(PostId).value=="1") { document.getElementById(ViewId).value="on"; document.getElementById(ViewId).src="../html/defs/style1/images/ti_check_on.gif"; } else { document.getElementById(ViewId).value="off"; document.getElementById(ViewId).src="../html/defs/style1/images/ti_check_off.gif"; } } function jslViewToPostCheckBox(PostId,ViewId) { if(document.getElementById(ViewId).value=="on") document.getElementById(PostId).value="1"; else document.getElementById(PostId).value="0"; } function jslFormSetPost(id) { document.getElementById(id).method="POST"; } function jslFormSetGet(id) { document.getElementById(id).method="GET"; } function jslFormSubmit(id) { document.getElementById(id).submit(); } function jslPageErrorMsg(msg) { var hint; if(msg!="") { hint=document.getElementById("uiViewErrorHint"); hint.style.color = "red"; alert("Check "+msg+" errors."); return false; } return true; } function jslGoTo(Menu,Page) { // Menu: { null, "home", "setup", "adv", "tools", "status", "help" } // Page: { null, pagename (from left menu once you switch to a category) } if((Menu!=null) && (Menu!="")) document.getElementById("uiPostMenu").value=Menu; if((Page!=null) && (Page!="")) document.getElementById("uiPostPageName").value=Page; jslFormSetGet("uiPostForm"); jslFormSubmit("uiPostForm"); } function jslDebugLoadOrPost(name) { var handle; var postform; var i; handle = window.open("",name,"height=1,width=1",true); handle.close(); handle = window.open("",name,"height=400,width=600,status,scrollbars,resizable",true); if(handle==null) { alert("can't open debug window"); return; } postform=document.getElementById("uiPostForm"); if(postform==null) { alert("can't populate debug window"); return; } handle.document.write('<html><head></head><body>'); handle.document.write('<table border=1 align="center" bgcolor="#D3D9DF">'); handle.document.write('<tr><td colspan=20 align="center"><b>Page Variables</b></td></tr>'); handle.document.write('<tr><td colspan=20 align="center"><b>Page Title: Quick Start</b></td></tr>'); handle.document.write('<tr>'); handle.document.write('<td align="center"> </td>'); handle.document.write('<td align="center"><b>Name</b></td>'); handle.document.write('<td align="center"><b>Value</b></td>'); handle.document.write('<td align="center"><b>Post</b></td>'); handle.document.write('</tr>'); for(i=0; i < postform.length; i++ ) { handle.document.write('<tr>'); handle.document.write('<td align="center"><b>'+i+'</b></td>'); handle.document.write('<td>'+postform.elements[i].name+'</td>'); if(postform.elements[i].value!="") handle.document.write('<td>'+postform.elements[i].value+'</td>'); else handle.document.write('<td> </td>'); if(postform.elements[i].disabled==true) handle.document.write('<td style="color:red;"><b>disabled</b></td>'); else handle.document.write('<td style="color:green;"><b>enabled</b></td>'); handle.document.write('</tr>'); } handle.document.write('</table>'); handle.document.write('</body></html>'); } function jslDoOnLoad() { if("1"=="") jslDebugLoadOrPost("uiOnLoadDebug"); uiDoOnLoad(); } function jslDoOnSubmit() { if("1"=="") jslDebugLoadOrPost("uiOnPostDebug"); } function jslDoShowComboBox(viewid,postid) { var i; var selector = document.getElementById(viewid); var value=document.getElementById(postid).value; if(selector==null) return; for(i=0; i < selector.length; i++) { if(selector.options[i].value == value) { selector.selectedIndex = i; break; } } } var erlPageErrors = new Array(); var erlPageErrorCount=0; var erlPageErrorSize=0; var erlStateIdx = 0; var erlTagIdx = 1; var erlKeyIdx = 2; var erlValueIdx = 3; var erlValueMsg = 4; function erlDoAddError(state,tag,key,value,msg) { var row; if(erlPageErrorCount == erlPageErrorSize) { erlPageErrors[erlPageErrorCount++] = new Array(state,tag,key,value,msg); erlPageErrorSize=erlPageErrorCount; } else { row = erlPageErrors[erlPageErrorCount]; row[erlStateIdx]=state; row[erlTagIdx]=state; row[erlKeyIdx]=state; row[erlValueIdx]=state; row[erlValueMsg]=state; erlPageErrorCount++; } } function erlDoResetErrors() { erlPageErrorCount=0; } function erlDoShowPageErrors() { var i; var handle,mark; for(i=0; i < erlPageErrorCount; i++) { if(erlPageErrors[i][erlStateIdx]=='good') continue; handle = document.getElementById(erlPageErrors[i][erlTagIdx]); if(handle!=null) { handle.value=erlPageErrors[i][erlValueIdx]; mark = document.getElementById(handle.name); if(mark!=null) { mark.src="../html/defs/style1/images/ti_error.gif"; mark.title=erlPageErrors[i][erlValueMsg]; } } } } function uiDoOnLoad() { return true; } function uiDoSave() { } function uiDoCancel() { jslGoTo(null,"home"); } function uiDoRefresh() { document.getElementById("uiPostForm").method="GET"; document.getElementById("uiPostForm").submit(); } </script> <!-- Checkpoint quickstart lib.js end --> <!-- save settings script --> <script language="JavaScript"> function submitPostForm() { var temp = document.getElementById("uiViewApplyButton"); if ( temp != null ) { uiDoSave() == false; } } function doWarnSave() { alert("Press OK To Save Changes."); } function uiSaveAll() { //submitPostForm(); doWarnSave(); document.getElementById("uiPostVarName").name = "logic:command/save"; document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html"; document.getElementById("uiPostForm").submit(); } function uiQuickstartSaveAll() { var temp = document.getElementById("pppoa_PostForm"); if (( document.getElementById("pppoa_PostForm") != null) && (document.getElementById("pppoe_PostForm") != null)) { submitQuickstartPostForm(); } doWarnSave(); document.getElementById("uiPostVarName").name = "logic:command/save"; document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html"; document.getElementById("uiPostForm").submit(); } function uiRestart() { if(confirm("RESTART? If you have not done a \"Save Settings\" command, you will lose any changes you have made.")) { //document.getElementById("uiPostVarName").name = "logic:command/reboot"; //jslFormSubmit("uiPostForm"); //setTimeout("uiDoNextLoc()", 2000); setTimeout("uiDoRestartNextLoc()", 0); } } function uiDoRestartNextLoc() { document.location.href="http://"+document.getElementById("uiPostIPAddr").value+"/cgi-bin/webcm?getpage=../html/defs/style1/menus/menu1.html&var:style=style1&var:main=menu1&var:menu=tools&var:menutitle=Tools&var:pagename=restart&var:pagetitle=Restart"; } </script> </head> <body onload="jslDoOnLoad()" bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 background="../html/defs/style1/images/ti_background.gif"> <table width=757 cellpadding=0 cellspacing=0 align=center border=0> <tr><td width=757 height=4 colspan=2 nowrap></td></tr> <tr><td colspan=2> <!-- Top Menu --> <table width=757 cellpadding=0 cellspacing=0 border=0> <tr> <td rowspan=3><!-- <a href="http://www.ti.com/"> --> <img src="../html/defs/style1/images/ti_top_menu_logo.gif" width=125 height=44 border=0 alt=""><!--</a>--></td> <td colspan=6> <img src="../html/defs/style1/images/ti_top_menu.gif" width=617 height=8 alt=""></td> <td rowspan=3> <img src="../html/defs/style1/images/ti_top_menu_right.gif" width=15 height=44 alt=""></td> </tr> <tr> <!-- <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=home&var:menutitle=Home" > <img src="../html/defs/style1/images/ti_top_menu_home.gif" width=103 height=27 border=0 alt="Home" id="uiViewMenuTopHomeBtn"></a></td> --> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=quickstart&var:menutitle=Quickstart" > <img src="../html/defs/style1/images/ti_top_menu_quick_hilite.gif" width=103 height=27 border=0 alt="Quick Start" id="uiViewMenuTopQuickstartBtn" ></a></td> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=setup&var:menutitle=Setup" > <img src="../html/defs/style1/images/ti_top_menu_setup.gif" width=103 height=27 border=0 alt="Setup" id="uiViewMenuTopSetupBtn" ></a></td> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=adv&var:menutitle=Advanced" > <img src="../html/defs/style1/images/ti_top_menu_advanced.gif" width=103 height=27 border=0 alt="Advanced" id="uiViewMenuTopAdvBtn" ></a></td> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=tools&var:menutitle=Tools" > <img src="../html/defs/style1/images/ti_top_menu_tools.gif" width=103 height=27 border=0 alt="Tools" id="uiViewMenuTopToolsBtn" ></a></td> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=status&var:menutitle=Status" > <img src="../html/defs/style1/images/ti_top_menu_status.gif" width=103 height=27 border=0 alt="Status" id="uiViewMenuTopStatusBtn" ></a></td> <td><a href="../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1/menus%2Fmenu1.html&var:style=style1&var:main=menu1&var:pagename=home&var:errorpagename=home&var:pagetitle=Home&var:menu=help&var:menutitle=Help" > <img src="../html/defs/style1/images/ti_top_menu_help.gif" width=102 height=27 border=0 alt="Help" id="uiViewMenuTopHelpBtn" ></a></td> </tr> <tr> <td colspan=6><img src="../html/defs/style1/images/ti_top_menu-10.gif" width=617 height=9 border=0 alt=""></td> </tr> </table> <!-- END Top Menu --> </td></tr> <tr> <td width=126 valign=top> <!-- Setup Menu --> <!--<table width=126 border=0 cellpadding=0 cellspacing=0 border=0>--> <!--<tr><td> </td></tr>--> <br><br> <table width=126 border=1 cellpadding=0 cellspacing=0 border=0> <tr><td class="sideHeader">Quick Start</td> </tr> <tr><td> </td></tr> <tr> <td><a href='../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1%2Fmenus%2Fmenu1.html&var:style=style1&var:main=menu1&var:menu=quickstart&var:menutitle=Quickstart&var:pagename=pppoe&var:errorpagename=pppoe&var:pagetitle=Login%20Settings&var:conid=connection0'> Login Settings</a></td> </tr> <tr><td> </td></tr> <tr> <td><a href='javascript:uiQuickstartSaveAll()'>Save Settings</a></td> </tr> <tr> <td><a href='javascript:uiRestart()'>Reboot</a></td> </tr> <tr> <td><a href='../cgi-bin/webcm?getpage=..%2Fhtml%2Fdefs%2Fstyle1%2Fmenus%2Fmenu1.html&var:style=style1&var:main=menu1&var:menu=quickstart&var:menutitle=Quickstart&var:pagename=logout&var:pagetitle=Log%20Out'> Log Out</a></td> </tr> </table> <!-- END Setup Menu --> </td> <td width=631> <img src="../html/defs/style1/images/ti_spacer.gif" alt="" width=1 height=1 align=left> <table width=590 border=0 cellpadding=0 cellspacing=1 bgcolor="#838383"> <tr> <td> <table width=589 height=390 border=0 cellpadding=0 cellspacing=0 bgcolor="#FFFFFF"> <!-- PROBLEM ../html/quickstart/home.html --> <tr><td valign=top><br><!-- PPPoE Setup--> <script> function doDisconnect(connName, connType) { var tempStr = connName+":"+connType+":command/stop"; // alert("doDisconnect: "+connName+":"+connType); // set var:conid document.getElementById("uiPostConId").value = connName; // e.g. "connection0:pppoa:command/stop" document.getElementById("uiPostPppDisconnect").name = tempStr; jslEnable("uiPostPppDisconnect"); // alert("doDisconnect: uiPostPppDisconnect name: "+tempStr); document.connControl.submit(); } function doConnect(connName, connType) { var tempStr = connName+":"+connType+":command/start"; // alert("doConnect: "+connName+":"+connType); // set var:conid document.getElementById("uiPostConId").value = connName; // e.g "connection0:pppoa:command/start" document.getElementById("uiPostPppConnect").name = tempStr; jslEnable("uiPostPppConnect"); document.getElementById("uiConnBtnPressed").value = 1; //document.connControl.connectBtnPressed.value = 1; // alert("doConnect: uiPostPppConnect name: "+tempStr); document.connControl.submit(); } </script> <!-- Connection Status --> <table cellspacing=1 border=0 cellpadding=4 align=center id="uiViewBodyTable" bgcolor="#757575" width=520> <tr><td align=center class="header" bgcolor="#FFFFFF">Connections (5)</td></tr> <tr><td height=5 nowrap bgcolor="#D3D9DF"></td></tr> <tr> <td bgcolor="#FFFFFF" align=center> <br> <table border=0 cellspacing=0 cellpadding=2> <tr> <td align=left><u>Description</u></td> <td width=5 nowrap rowspan=9></td> <td align=left><u>Type</u></td> <td width=5 nowrap rowspan=9></td> <td align=center><u>IP</u></td> <td width=5 nowrap rowspan=9></td> <td align=left><u>State</u></td> <td width=5 nowrap rowspan=9></td> <td align=center><u>Online</u></td> <td width=5 nowrap rowspan=9></td> <td align=left><u>Disconnect Reason</u></td> <td id=connControl> </td> </tr> <tr> <td align=left><b>quick_start</b></td> <td align=left>pppoa</td> <td align=center>79.183.13.11</td> <td align=left><b>Connected</b></td> <td align=center>16hr 28min 51sec</td> <td align=left>N/A</td> <td> <a href = "Javascript:doDisconnect('connection0','pppoa')" onClick="return true"> <img src="../html/defs/style1/images/ti_button_disconnect.gif" border=0 name="disconnect"></a> </td> </tr> <tr> <td align=left><b>Br2</b></td> <td align=left>bridge</td> <td align=center>NA</td> <td align=left>NA</td> <td align=center>NA</td> <td align=left>NA</td> <td> </td> </tr> <tr> <td align=left><b>Br2</b></td> <td align=left>bridge</td> <td align=center>NA</td> <td align=left>NA</td> <td align=center>NA</td> <td align=left>NA</td> <td> </td> </tr> <tr> <td align=left><b>Br3</b></td> <td align=left>bridge</td> <td align=center>NA</td> <td align=left>NA</td> <td align=center>NA</td> <td align=left>NA</td> <td> </td> </tr> <tr> <td align=left><b>Br4</b></td> <td align=left>bridge</td> <td align=center>NA</td> <td align=left>NA</td> <td align=center>NA</td> <td align=left>NA</td> <td> </td> </tr> </table> <tr> <td align=right bgcolor="#FFFFFF" height=19 valign=middle> <input type="image" src="../html/defs/style1/images/ti_button_refresh.gif" width=62 height=19 border=0 onclick="uiDoRefresh()" alt="Refresh"> </td> </tr> </table> <!-- END Connection Status --> <form name=connControl method=post action="webcm"> <!-- splim: form for connect/disconnect start --> <input type="hidden" name="var:main" value="menu1" id="uiPostMenuMain"> <input type="hidden" name="var:style" value="style1" id="uiPostMenuStyle"> <input type="hidden" name="getpage" value="../html/defs/style1/menus/menu1.html" id="uiPostGetPage"> <input type="hidden" name="errorpage" value="../html/status/connection.html" id="uiPostErrPage"> <input type="hidden" name="var:pagename" value="home" id="uiPostPageName"> <input type="hidden" name="var:errorpagename" value="home" id="uiPostErrorPageName"> <input type="hidden" name="var:menu" value="quickstart" id="uiPostMenu"> <input type="hidden" name="var:menutitle" value="Quickstart" id="uiPostMenuTitle"> <input type="hidden" name="var:pagetitle" value="Quick Start" id="uiPostPageTitle"> <input type="hidden" name="var:pagemaster" value="home" id="uiPostPageMaster"> <input type="hidden" name="" value="0" id="uiPostErrorState" disabled> <!-- values from here to be configured by connect / disconnect buttons --> <input type="hidden" name="var:connectBtnPressed" value="" id="uiConnBtnPressed"> <input type="hidden" name="var:conid" value="" id="uiPostConId"> <input type="hidden" name="connStart" value="" id="uiPostPppConnect" disabled> <input type="hidden" name="connStop" value="" id="uiPostPppDisconnect" disabled> </form> <script> function reloadConnPage() { document.getElementById("connControl").method="GET"; document.connControl.submit(); } if (document.getElementById("uiConnBtnPressed").value==1) { document.getElementById("uiConnBtnPressed").value=0; } setTimeout('reloadConnPage()',15000); </script> <!-- END PPPoE Setup--> <script src=/html/js/jsl.js></script> </td></tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- save settings form included here --> <!-- Post Form --> <form method="POST" action="webcm" target="_self" id="uiPostForm" onsubmit="jslDoOnSubmit()"> <!-- Refresh Form --> <input type="hidden" name="var:main" value="menu1" id="uiPostMenuMain"> <input type="hidden" name="var:style" value="style1" id="uiPostMenuStyle"> <input type="hidden" name="getpage" value="../html/defs/style1/menus/menu1.html" id="uiPostGetPage"> <input type="hidden" name="errorpage" value="../html/defs/style1/menus/menu1.html" id="uiPostErrPage"> <input type="hidden" name="var:pagename" value="home" id="uiPostPageName"> <input type="hidden" name="var:errorpagename" value="home" id="uiPostErrorPageName"> <input type="hidden" name="var:menu" value="quickstart" id="uiPostMenu"> <input type="hidden" name="var:menutitle" value="Quickstart" id="uiPostMenuTitle"> <input type="hidden" name="var:pagetitle" value="Quick Start" id="uiPostPageTitle"> <input type="hidden" name="var:pagemaster" value="home" id="uiPostPageMaster"> <!-- END Refresh Form --> <input type="hidden" id="uiPostVarName" name=""> <input type="hidden" name="bridgeip:static:settings/ip" value="10.0.0.138" id="uiPostIPAddr" disabled> </form> <!-- END Post Form --> </body> </html> well... why when i try posting to this page with the following HTML format with the OBJ: "MSXML2.ServerXMLHTTP" i get the title mentioned error : "getcgivars(): Unsupported Content-Type". Posting Format: [Obj:MSXML2.ServerXMLHTTP][iP:http://10.0.0.138/cgi-bin/webcm?getpage=../html/defs/style1/menus/menu1.html][Method:POST] [Headers: User-Agent | Mozilla/4.0 (compatible; MSIE 5.00; Windows 98) Cache-Control | no-cache Content-Type | text/html; charset=iso-8859-1 Authorization | Basic QWWxvbjY0MjA= /Headers] [PostData:connection0:pppoe:command/stop=] As u can see i do have access so the headers should be ok... and i am sending the page the PostData: connection0:pppoe:command/stop which should make my router disconnect .... PLEASE HELP !!! Link to comment https://forums.phpfreaks.com/topic/82840-getcgivars-unsupported-content-type-why-please-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.