Link | ajax_inPlaceEditor |
Author | Richard Moore |
Category | Custom Tag |
Version | 7.x |
License | Public Domain |
Posted | 09 Mar 2006 |
Updated | 09 Mar 2006 |
More by this author... |
This tag does what Ajax.InPlaceEditor does in scriptaculous. It saves you from having to write any javascript (woohoo!). You must have scriptaculous field (www.script.aculo.us.com) or lasso 8.5 include files in the page. Bascially you click on the text an it becomes editable. THIS TAG IS NOT SECURE Basically it will pass the table name. and paramter to update to a file called "update.lasso" This lasso code should do an inline update. This will update the field in real time without submitting a form.
[Ajax.inPlaceEditor: -id=$theMember->(find:'id'), -table='members', -field='first_name', -size = 10, -path='../ajax/', -file='update.lasso'][$myName] [/Ajax.inPlaceEditor]
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag: 'Ajax.inPlaceEditor',-container,-required='id',-optional='pair';
if:(named_param:'-div');local:'myDiv' = (named_param:'-div');else;local:'myDiv' = (lasso_uniqueID);/if;
if:(named_param:'-size');local:'mySize' = (named_param:'-size');else;local:'mySize' = 6;/if;
if:(named_param:'-rows');local:'myRows' = (named_param:'-rows');else;local:'myRows' = 1;/if;
return:'' + run_children + '';
/define_tag;
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
script.aculo.us URL