Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Note unsupported


Warning
titleEngine 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
languagejavascript
themeConfluencelanguagejavascript
replace("#foo", "http://apps.kynetx.com/")

The following ruleset shows replace() being used

Code Block
languagejavascript
themeConfluencelanguagejavascript
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/");
    }
}

...