Forum Discussion
fzaborowski_311
Nimbostratus
Apr 05, 2010iRule Javascript call?
Hi,
Quick question (I haven't seen this done/documented here):
I wish to call a .js file for users accessing certain pages. The script simply tags their page for us to m...
fzaborowski_311
Nimbostratus
Apr 06, 2010Hi Aaron,
Actually-you are correct-injecting it into response is what I wanted and I believe I have found how to do that based upon syntax examples and a Google Analytics example found here.
I guess my question now is (as I am, obviously, not overly familiar with iRule usage):
I could not properly nest the HTTP_RESPONSE_DATA code within a HTTP_REQUEST looking for specific uri info, does the iRules function such that if it misses the REQUEST filter, that the next WHEN statement is bypassed as well as it is part of the same iRule or will other traffic be affected by that 2nd statement injecting the js?
Sorry if this is lame-I haven't had need previously to use these in such a manner. I do appreciate any info.
I will likely run this with simple logging as the actions to see what turns up.
Thanks again!
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