Difference between revisions of "Showsave"
From SmartWiki
Line 1: | Line 1: | ||
{{UnderConstruction}} | {{UnderConstruction}} | ||
− | The '''showsave()''' is a [[Category:JavaScript|Javascript]] function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.<br /> | + | The '''showsave()''' is a [[:Category:JavaScript|Javascript]] function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.<br /> |
It can be placed in the [[Savefunc|savefunc()]] or the [[sbfunc|sbfunc()]] functions, used in [[Custom Field Type: Special – Browser Script|Special - Browser Script]] type custum field.<br /> | It can be placed in the [[Savefunc|savefunc()]] or the [[sbfunc|sbfunc()]] functions, used in [[Custom Field Type: Special – Browser Script|Special - Browser Script]] type custum field.<br /> | ||
==Syntax== | ==Syntax== | ||
Line 16: | Line 16: | ||
</pre> | </pre> | ||
− | The function called with the ''optional parameter'', the '''message''':<br /> | + | The function called with the ''optional parameter'', the '''message''' in the sbfunc:<br /> |
<pre> | <pre> | ||
function sbfunc(){ | function sbfunc(){ | ||
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
[[Hidesave]] | [[Hidesave]] | ||
+ | |||
+ | [[Category:JavaScript]] |
Revision as of 11:15, 4 October 2013
Template:UnderConstruction
The showsave() is a Javascript function, which allows you to show the "Save in Progress" animation after the record is saved, in case it would not be shown otherwise.
It can be placed in the savefunc() or the sbfunc() functions, used in Special - Browser Script type custum field.
Syntax
showsave([msg]);
Where:
- msg is the message [optional] to be shown.
Examples: The function called without parameter in the savefunc:
function savefunc(){ showsave(); return true; }
The function called with the optional parameter, the message in the sbfunc:
function sbfunc(){ showsave("Saving Check List"); return true; }