Lasso Soft Inc. > Home

[ajax_inPlaceEditor]

Linkajax_inPlaceEditor
AuthorRichard Moore
CategoryCustom Tag
Version7.x
LicensePublic Domain
Posted09 Mar 2006
Updated09 Mar 2006
More by this author...

Description

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.

Sample Usage

[Ajax.inPlaceEditor: 
    -id=$theMember->(find:'id'), 
    -table='members', 
    -field='first_name', 
    -size = 10, 
    -path='../ajax/', 
    -file='update.lasso'][$myName]
[/Ajax.inPlaceEditor]

Source Code

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;

Related Tags

Comments

30 May 2008, Greg Hemphill

script.aculo.us URL

BTW the URL is "script.aculo.us" not "www.script.aculo.us.com"

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft