(Classic) replace_inner()
Engine Compatibility
replace_inner
is not supported by the Node engine.replace_inner(<sel>, <expr>)
Replace the contents of the page element with the id given by <sel> with content given by the result of evaluating the expression (a string, var, extended quote, or string concatenation).
replace_inner("#foo", "This is the text")
The following ruleset shows replace_inner() being used
ruleset a1299x184 { meta { name "Replace Inner Example" author "nathan cerny" logging off } dispatch { // domain "exampley.com" } rule first_rule { select when pageview ".*" setting () replace_inner("#replace", "The content has been replaced."); } }
The following demonstrates the preceding rule:
Copyright Picolabs | Licensed under Creative Commons.