Forum Discussion
Futuristic_4860
Nimbostratus
Jun 21, 2012Adding HTML tag to display on top of every webpage
Hi All,
I would like to add HTML tag to show the user a notice; For example "A maintenance is coming up." No matter where they browse to, the message will always display on the top. Pretty much like a notice banner.
I am using 10.2.2 LTM.
Any help would be appreciated on this iRule.
Thanks,
Jay
3 Replies
- Arie
Altostratus
This should help:
https://devcentral.f5.com/wiki/irules.HtmlCommentScrubber.ashx
As long as there's something you can replace (e.g. ) you're in business. - Futuristic_4860
Nimbostratus
Hi Arie,
Thanks for the response but we would not like to edit any webpages and put some comment in because that is not quite practical in our environments.
Although all the webs that we have are almost identical, we do not want to manually put comments in a page.
Is there any way that we don't have to rely on replacing things and just inserting HTML tag on top of page?
Thanks,
Jay - hoolio
Cirrostratus
I think what Arie was suggesting is that you can use a stream profile and iRule to replace the < head > or < body > tag with that tag and your new additional HTML.
Here's a related post:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/1172328/afc/1196598/Default.aspx
And a link to the STREAM::expression wiki page:
http://devcentral.f5.com/wiki/iRules.stream__expression.ashx
Aaron
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
