Forum Discussion

David_Fox_22251's avatar
David_Fox_22251
Icon for Nimbostratus rankNimbostratus
Sep 16, 2011

Time 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?

 

 

  • 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
  • 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.