Netgear WFS709TP WFS709TP Setup Manual - Page 215

Customizing the Logged Out Box, Width, Height, Title

Page 215 highlights

WFS709TP ProSafe Smart Wireless Switch Software Administration Manual var url="/upload/popup.html"; var w=210; var h=80; var x=window.screen.width - w - 20; var y=window.screen.height - h - 60; window.open(url, 'logout', "toolbar=no,location=no,width="+w+",height="+h+",top="+y+",left="+x+",sc reenX="+x+",screenY="+y); These are some common elements to change: • URL: Set the URL to be the name of the pop-up HTML file that you created and uploaded. This should be preceded by "/upload/". • Width: Set w to be the required width of the pop-up box. • Height: Set h to be the required height of the pop-up box. • Title: Set the second parameter in the window.open command to be the title of the pop-up box. Be sure to include quotes. Customizing the Logged Out Box In order to customize the logged out box, you must first customize your welcome page and also your pop-up box. To customize the message that occurs after you have logged out then you need to replace the URL that the pop-up box will access in order to log out with your own HTML file. First, you must write the HTML web page that will actually log out the user and will also display the page that you wish. The code for an example page is shown below. The key part that must be included is the .. section. This is the part of the HTML that actually does the logout. The logout is always performed by the client accessing the /auth/logout.html file on the WFS709TP and so it is hidden in the HTML page here in order to get the client to access this page and for the WFS709TP to update its authentication status. If a client does not support the iframe tag, then the text between the and the is used. This is simply a zero-pixelsized image file that references /auth/logout.html. Either method should allow the client to log out from the WFS709TP. Everything else can be customized. Internal Captive Portal v1.0, June 2007 C-15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222

WFS709TP ProSafe Smart Wireless Switch Software Administration Manual
Internal Captive Portal
C-15
v1.0, June 2007
<script language="JavaScript">
var url="/upload/popup.html";
var w=210;
var h=80;
var x=window.screen.width - w - 20;
var y=window.screen.height - h - 60;
window.open(url, 'logout',
"toolbar=no,location=no,width="+w+",height="+h+",top="+y+",left="+x+",sc
reenX="+x+",screenY="+y);
</script>
These are some common elements to change:
URL:
Set the URL to be the name of the pop-up HTML file that you created and uploaded.
This should be preceded by "/upload/".
Width:
Set w to be the required width of the pop-up box.
Height
: Set h to be the required height of the pop-up box.
Title:
Set the second parameter in the window.open command to be the title of the pop-up box.
Be sure to include quotes.
Customizing the Logged Out Box
In order to customize the logged out box, you must first customize your welcome page and also
your pop-up box. To customize the message that occurs after you have logged out then you need to
replace the URL that the pop-up box will access in order to log out with your own HTML file.
First, you must write the HTML web page that will actually log out the user and will also display
the page that you wish. The code for an example page is shown below. The key part that must be
included is the
<iframe>..</iframe>
section. This is the part of the HTML that actually does
the logout. The logout is always performed by the client accessing the /auth/logout.html file on the
WFS709TP and so it is hidden in the HTML page here in order to get the client to access this page
and for the WFS709TP to update its authentication status. If a client does not support the iframe
tag, then the text between the
<iframe>
and the
</iframe>
is used. This is simply a zero-pixel-
sized image file that references /auth/logout.html. Either method should allow the client to log out
from the WFS709TP.
Everything else can be customized.