ajax1Add my vote for this tag create new tag
, view all tags

AJAX Framework Showcase

TWikiAjaxFramework examples.

Code on this page

<script type="text/javascript">
// <![CDATA[
var TWiki = {}; // should be in twiki.js
// ]]>
<script type="text/javascript" src="%PUBURL%/Codev/TWikiAjaxFramework/yahoo.js"></script>
<script type="text/javascript" src="%PUBURL%/Codev/TWikiAjaxFramework/connection.js"></script>
<script type="text/javascript" src="%PUBURL%/Codev/TWikiAjaxFramework/twiki_html.js"></script>
<script type="text/javascript" src="%PUBURL%/Codev/TWikiAjaxFramework/twiki_request.js"></script>
<script type="text/javascript" src="%PUBURL%/Codev/TWikiAjaxFramework/behaviour.js"></script>
<script type="text/javascript">
// <![CDATA[
   TWiki.Request.indicatorHtml = "<img src='%PUBURL%/Codev/TWikiAjaxFramework/indicator.gif' alt='' />";
   var toolsTopic = "TWikiAjaxFrameworkShowcaseTools";
   var toolsTopicUrl = "%SCRIPTURL{view}%/Codev/" + toolsTopic;
   var myrules = {
      '#expandWebBtn' : function(el) {
         el.onclick = function() {
            TWiki.Request.updateElementWithId("weblist", "expandedWebs", toolsTopicUrl + "?skin=text;section=weblist");
            return false;
// ]]>

Web list

I've stealed this idea straigt from MiniAhah, albeit simpler in this example: no toggle back.

TWiki.Request.draw("weblist", "expandedWebs", "%SCRIPTURL{view}%/Codev/TWikiAjaxFrameworkShowcaseTools?skin=text;section=weblist");

Open toggle, Twisty open toggle TWiki

Note: TWiki currently does not accept the url param section to pass to the view script.


Strange. It seems I cannot pass the url parameter section here on twiki.org.

-- ArthurClemens - 31 May 2006

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-07-25 - ArthurClemens
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.