Loading...
 
Skip to main content

History: Colorbox_Ajax_Load_Example

Source of version: 8

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 __[tiki-admin.php?page=textarea&plugin_alias=cbajaxload&fullscreen=y&cookietab=3#tab3|CBAjaxLoad Plugin Alias|box;title=<big><b>Review the configuration of CBAjaxLoad Plugin Alias</b> and <b><a href='tiki-index.php?page=Colorbox+Ajax+Load+Example&fullscreen=n'>Close This Box</a></b></big>;width=90%;height=90%;]__ (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 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}

        

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