History: Colorbox_Ajax_Load_Example
Source of version: 5
Copy to clipboard
This page is an example wiki page for the [http://profiles.tikiwiki.org/Colorbox_Ajax_Load|Colorbox Ajax Load] Profile. ! Example using CBAjaxLoad Plugin Alias This was tested and works successfully in Tiki 5.x but not in trunk: {cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV} {CODE(wrap=1 caption=Code)}{cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}{CODE} ! Example using JQ Plugin This is just the same code but instead of using CBAjaxLoad plugin alias it uses jQuery code directly put in the JQ plugin: {JQ()}$jq("#ajaxload2 a").colorbox({href: function(){return $jq(this).attr("href")+" .wikitext";}});{JQ}{DIV(id="ajaxload2")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}