Forum Discussion
dundovic_25174
Nimbostratus
Apr 04, 2013Splashpage iRule and javascript
Is there any restriction on having 'javascript' code within the HTML splashpage iRule? I may require some mouse over image toggles implemented within the splashpage and would like to know if this is ...
dundovic_25174
Nimbostratus
Apr 04, 2013This is standard iRule:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/image.png" } {
if { [HTTP::header exists If-Modified-Since] } {
HTTP::respond 304 noserver
} else {
HTTP::respond 200 content [b64decode "IMAGE_CONTENT_HERE"] noserver "Content-Type" "image/png" "Last-Modified""Mon, 01 Jan 2013 00:00:01 EDT"
}
} else {
HTTP::respond 503 content "
.
.
.
.
.
.
.
.
.
.
.
.
" noserver
}
}
This is inserted in head section and triggered errors:
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