Forum Discussion
David_Fox_22251
Nimbostratus
Sep 16, 2011Time based pop-up
Hi all,
I've been searching around and haven't been having much luck to try and find the following.
Basically I want a iRule that creates a pop-up box between a certain time, my first thought was javascript injection, something along the lines of:
script type="text/javascript">alert("This site will be down for maintenance from 2am until 8am.")
But of course I would like this to start at 1am and finish at say 2.05am.
Any ideas?
3 Replies
- Michael_Yates
Nimbostratus
Rather than doing a pop-up you could do an initial notification upon connection that would advise them of your maintenance and then after a short time direct them to the original destination page.
There is a discussion thread with some iRule Examples here:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/21282/showtab/groupforums/Default.aspx - Michael_Yates
Nimbostratus
I did some additional digging.
There is a way to do what it is you are looking for using Code Injection. There is a a Video of Colin and Joe talking about code injection here:
http://devcentral.f5.com/weblogs/dctv/archive/2011/05/20/post-of-the-week-code-injection.aspx
That will lead you here were several different techniques are discussed:
http://devcentral.f5.com/Forums/tabid/53/aft/1178951/Default.aspx
Hope this helps. - David_Fox_22251
Nimbostratus
Thanks for the info, I'll start looking into it.
Thanks.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects