HP WebQoS Software manual Figure A-3 Example of Custom Defer Page with Popup Dialog, Appendix a

Models: WebQoS Software

1 182
Download 182 pages 33.13 Kb
Page 166
Image 166

Policy and Rule Descriptions

Policies Set in WebQoS

Figure A-3

Example of Custom Defer Page with Popup Dialog

You must code the popup using Javascript. This is shown below:

<SCRIPT LANGUAGE="JavaScript">

<!-- Hide from non JavaScript browsers function dialog()

{

var msgs = "After the timer counts down to 0, you may click OK button to enter the site.";

if (window.confirm(msgs)) parent.location="TARGETURLKEY";

}

function clockTick()

{

now = (new Date()).getTime();

remaining = Math.max(Math.round((finalTime - now) / 1000),0);

minutes = Math.floor(remaining / 60);

166

Appendix A

Page 166
Image 166
HP WebQoS Software manual Figure A-3 Example of Custom Defer Page with Popup Dialog, Appendix a