User’s Manual
HSG Wireless Hotspot Gateway ENGLISH
166
<script language="Javascript">
form.action = getVarFromURL(window.location.href, 'loginurl');
</script>
<INPUT type="text" name="myusername" size="25">
<INPUT type="password" name="mypassword" size="25">
<INPUT name="button_submit" type="submit" value="Enter">
<INPUT name="button_clear" type="button" value="Clear">
</FORM>
The following shows the corresponding self-defined javascript function used to parse the
loginurl
parameter:
function getVarFromURL(url, name) {
if(name == "" || url == "") { return ""; }
name = name.replace(/[\[]/|"\\\[").replace(/[\]]/|"\\\]");
var regObj = new RegExp("[\\?&]"+name+"=([^&#]*)");
var result = regObj.exec(url);
if(result == null) { return ""; }
else { return decodeURIComponent(result[1]); }
}
An external page example that the user will see upon launching a browser, highlighted in red you can see the URL
parameters sent from the system:
Summary of Contents for HSG320
Page 1: ...V1 20 HSG Series Wireless Hotspot Gateway ...
Page 47: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 42 ...
Page 64: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 59 ...
Page 79: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 74 ...
Page 115: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 110 ...
Page 150: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 145 ...
Page 153: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 148 ...
Page 193: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 188 Connection Status With Indicators ...
Page 194: ...User s Manual HSG Wireless Hotspot Gateway ENGLISH 189 Shortcut Keys P N V11020141207 ...