Forum Discussion
Shridhar_Kulkar
Nimbostratus
11 years agoCan I pass the data-group values to a java script function
I have created 2 data-groups in an irule with string values - noproxy & forceproxy, which are basically Lists of URLs.
I need to pass these string values to a variable I define in a java-script ...
Kevin_Stewart
Employee
11 years agoOne thought might be to use the class get command to return a list of all of the contents of a data group (or filtered list), and then loop through that list to create your PAC data:
foreach x [class get noproxy] {
log local0. [lindex $x 0]
}
If you have key-value pairs in the data group, the class get command will return a list of lists, so the lindex command inside the loop will pull either the key or the value from each entry.
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