History: Colorbox_Ajax_Load_Example
Source of version: 7
Copy to clipboard
This page is an example wiki page for the [http://profiles.tiki.org/Colorbox_Ajax_Load|Colorbox Ajax Load|box;title=Colorbox Ajax Load profile as seen on profiles.tiki.org;] Profile. ! Example using CBAjaxLoad Plugin Alias The profile creates a CBAjaxLoad Plugin Alias to simplify the required jQuery code insertion on a wiki page. 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. It works in both, Tiki 5.x and trunk: {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} {CODE(wrap=1 caption=Code:)}{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}{CODE}