OpenACS AJAX Helper

Ajax Helper for various javascript libraries. Provides helper procs to generate javascript used for Ajax and generating cinematic effects. Includes Scriptaculous 1.7.1 beta3 with Prototype 1.5.1, ExtJS 1.1.1 and the Yahoo UI Libraries (2.3.0). As of 0.87d, there is now an option to load YUI js source files direct from yahoo (http://developer.yahoo.com/yui/articles/hosting/). Lee Denison's template::head is now used to load javascript sources and css. The YUI loader is used to intelligently load YUI sources and css. As of 0.7d, all javascript libraries have been moved to ajaxhelper/www/resources to take advantage of caching. As of 0.8d, the wrappers will now be able to check a global variable to see if the required sources are loaded, this allows helper procs to automatically load the javascript sources you need.

 

Package Documentation

Procedure Files

lib/ajaxhelper-template.adp        
lib/ajaxhelper-template.tcl        
lib/compress/README.txt        
tcl/ajax-dojo-procs.tcl       Library for Ajax Helper Procs based on the dojo javascript toolkit 
tcl/ajax-ext-procs.tcl       Library for Ajax Helper Procs based on ExtJs 
tcl/ajax-listbuilder-procs.tcl       Ajax enahanced list builder features 
tcl/ajax-procs.tcl       Library for Ajax Helper Procs 
tcl/ajax-yahoo-procs.tcl       Library for Ajax Helper Procs based on Yahoo's User Interface Libraries 
tcl/dynamic-load-procs.tcl       Ajax Exprimental Procs 
tcl/json-procs.tcl       Ajax Exprimental Procs 

Procedures

ah::ajax_bubblecallout       This proc executes an xmlhttp call and outputs the response text in a bubblecallout. 
ah::ajaxperiodical       Returns javascript that calls the prototype javascript library's ajax periodic updater object. 
ah::ajaxrequest       Returns javascript that calls the prototype javascript library's ajax request (Ajax.Request) object. 
ah::ajaxupdate       Generate an Ajax.Updater javascript object. 
ah::bubblecallout       This proc will generate mouseover and mouseout javascript for dhtml callout or popup using overlibmws and the overlibmws bubble plugin. 
ah::clearpopup       This proc will generate javascript for to clear a popup. 
ah::create_js_function       Helper procedure to generate a javascript function 
ah::dojo::args       Builds a javascript object that holds the arguments that are commonly passed to a dojo function. 
ah::dojo::chart       Creates a chart using the dojo charting engine 
ah::dojo::collections_store       Creates a dojo collection store 
ah::dojo::iobind       Generates the javascript for a dojo io bind. 
ah::dojo::js_sources       Generates the javascript that loads the dojo javascript sources. 
ah::draggable       Generates javascript to make the given element a draggable. 
ah::droppable       Generates javascript to make the given element a droppable. 
ah::droppableremove       Generates javascript to remove a droppable. 
ah::effects       Generates javascript for effects by scriptaculous. 
ah::exp::js_include       Generates the javscript to include a js file dynamically via DOM to the head section of the page. 
ah::exp::js_source_dynamic       Uses the javascript dynamic loading functions to load the comma separated list of javascript source file. 
ah::exp::yui_js_source_dynamic       Dynamically Loads the Yahoo UI javascript libraries. 
ah::ext::ajax       Wrapper for Ext.Ajax.request http://extjs.com/deploy/ext/docs/output/Ext.Ajax.html#request 
ah::ext::msgbox       Wrapper for Ext.MessageBox. 
ah::ext::onready       Wrapper for Ext.onReady. 
ah::ext::requires       Everything needed for ExtJs is in 2 javascript files and 1 css file. 
ah::ext::updateprogress       Wrapper for Ext.MessageBox.updateProgress. 
ah::generate_autosuggest_array       Generates a javascript array for inclusion in a page header. 
ah::insert       Inserts text or html in a position given the element as reference. 
ah::js_sources       DEPRECATED. 
ah::lb::add_add_column_menu       Create a dropdown menu to add a column to be dislayed 
ah::lb::add_column_menu       Add dynamic dropdown menus 
ah::lb::add_view_menu       Create a dropdown menu for saved views 
ah::lb::filter_url       Prepare a URL to add a filter to a list 
ah::lb::multiple_filter_url       Prepare a URL to add a filter to a list 
ah::lb::prepare_list       Prepare the stuff we need before the list is created 
ah::lb::prepare_template       Prepare all the stuff for ajax dynamic list template 
ah::lb::validate_cr_name       Checks whether the value of the html element with the given id is a valid crname. 
ah::popup       This proc will generate javascript for an overlibmws popup. 
ah::rounder       Generates javascript to round html div elements. 
ah::sortable       Generates javascript for sortable elements. 
ah::starteventwatch       Use prototype's Event object to watch/listen for a specific event from a specific html element. 
ah::stopeventwatch       Use prototype's Event object to watch/listen to a specific event from a specific html element. 
ah::toggle       Generates javascript that toggles the state of an element. 
ah::util_list_to_json       Converts a properly structured list of lists into JSON format. 
ah::yui::addlistener       Creates javascript for Yahoo's Event Listener. 
ah::yui::autocomplete       Generates the javascript to create a YUI autocomplete object from a tcl list http://developer.yahoo.com/yui/autocomplete/ 
ah::yui::contextmenu       Generates the javascript to create a YUI context menu from a tcl list. 
ah::yui::create_tree       Generates the javascript to create a yahoo tree view control. 
ah::yui::cssclass       Generates javascript code to control css class on html elements. 
ah::yui::js_sources       DEPRECATED. 
ah::yui::menu_from_list       Generates the javascript to create a YUI menu from a tcl list. 
ah::yui::menu_from_markup       Generates the javascript to create a YUI menu from existing html markup. 
ah::yui::menu_list_to_json       Converts a properly structured list of menu items into JSON format. 
ah::yui::tooltip       Generates the javascript to create a tooltip using yahoo's user interface javascript library. 
callback::subsite::get_extra_headers::impl::my_implementation       replaces the ajaxhelper-template include 

SQL Files

Content Pages

www/
      list-add-filter.tcl Add a filter to saved filter view for a list builder list
      list-view-delete.tcl Delete a view for a list
     tests/
           test_ajax-handle.adp
           test_ajax-handle.tcl
           test_ajax.adp
           test_ajax.tcl
           test_dojochartengine.adp
           test_dojochartengine.tcl
           test_dojoiobind.adp
           test_dojoiobind.tcl
           test_dojoiobindhandle.adp
           test_dragdrop.adp
           test_dragdrop.tcl
           test_effects.adp
           test_effects.tcl
           test_extprogressbar-handler.tcl
           test_extprogressbar.adp
           test_extprogressbar.tcl
           test_insertion.adp
           test_insertion.tcl
           test_roundcorners.adp
           test_roundcorners.tcl
           test_yahoocontextmenu.adp
           test_yahoocontextmenu.tcl
           test_yahoomenu-js.adp
           test_yahoomenu-js.tcl
           test_yahoomenu-markup.adp
           test_yahoomenu-markup.tcl
           test_yahootreeview.adp
           test_yahootreeview.tcl
     xmlhttp/
           carousel-images.adp
           carousel-images.tcl Return images for attach-image carousel
  Contact Us
  Project Open Business Solutions S.L.

Calle Aprestadora 19, 12o-2a

E-08907 Hospitalet de Llobregat (Barcelona)

 Tel Europe: +34 932 202 088
 Tel US: +1 415 429 5995
 Mail: info@project-open.com