History: Colorbox_Ajax_Load_Example

Preview of version: 9 (current)

This page is an example wiki page for the Colorbox Ajax Load Profile.

Example using CBAjaxLoad Plugin Alias

The profile creates a CBAjaxLoad Plugin Alias (when you have admin rights you can review the plugin alias configuration by following the link) to simplify the required jQuery code insertion on a wiki page. This was tested and works successfully in Tiki 5.x and Tiki 6.x:
{cbajaxload}
Code:
{cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}


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:
 Plugin disabled
Plugin jq cannot be executed.

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}


History

Information Version
Fri 22 of Oct, 2010 18:59 GMT-0000 luciash d' being 🧙 jonny fixed the code, so now it works in Tiki 6.x as well, thanks ! 9
Wed 08 of Sep, 2010 21:39 GMT-0000 luciash d' being 🧙 link to the plugin alias 8
Wed 08 of Sep, 2010 21:20 GMT-0000 luciash d' being 🧙 little workaround to avoid displaying additional " external nofollow" after the title in Colorbox 7
Wed 08 of Sep, 2010 21:16 GMT-0000 luciash d' being 🧙 code sample for the JQ plugin example 6
Wed 08 of Sep, 2010 18:40 GMT-0000 luciash d' being 🧙 added the sample code 5
Wed 08 of Sep, 2010 18:37 GMT-0000 luciash d' being 🧙 added example using JQ plugin 4
Tue 07 of Sep, 2010 21:36 GMT-0000 luciash d' being 🧙 wrong link 3
Sun 22 of Aug, 2010 23:41 GMT-0000 luciash d' being 🧙 absolute link 2
Sat 21 of Aug, 2010 02:06 GMT-0000 luciash d' being 🧙 1