Warning |
---|
title | Engine Compatibility |
---|
|
replace is not supported in the Node engine. |
replace(<sel>, <url>)
Replace the page element (usually a <div>) with the element selected by <sel> with content given by the URL.
Code Block |
---|
language | javascript |
---|
theme | Confluence | language | javascript |
---|
|
replace("#foo", "http://apps.kynetx.com/") |
The following ruleset shows replace() being used
Code Block |
---|
language | javascript |
---|
theme | Confluence | language | javascript |
---|
|
ruleset a1299x181 {
meta {
name "Replace Example"
author "nathan cerny"
logging off
}
dispatch {
// domain "exampley.com"
}
rule replace_with_example is active {
select using ".*" setting ()
replace("#replace", "http://apps.kynetx.com/");
}
} |
...