Difference between revisions of "Showsave"

From SmartWiki
Jump to: navigation, search
m (New Save in progress image)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{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 custom fields.<br />
It can be placed in the savefunc() or the sbfunc() functions, used in [[Custom Field Type: Special – Browser Script|Special - Browser Script]] type custum field.<br />
+
[[File:Save-in-progress.png|link=|caption|200px]]<br />
 +
==Syntax==
 +
<font size="3">showsave([''msg'']);</font><br />
 +
 
 +
'''Where''':
 +
* ''msg'' is the message [optional]  to be shown.<br /><br />
 +
'''Examples:'''<br />
 +
The function called without parameter in the savefunc:
 
<pre>
 
<pre>
 
function savefunc(){
 
function savefunc(){
Line 8: Line 15:
 
}
 
}
 
</pre>
 
</pre>
The function takes one ''optional parameter'', the '''message''' to be shown.<br />
+
 
 +
The function called with the ''optional parameter'', the '''message''' in the sbfunc:<br />
 
<pre>
 
<pre>
 
function sbfunc(){
 
function sbfunc(){
showsave("Saving Census Check List");
+
showsave("Saving Check List");
 
return true;
 
return true;
 
}
 
}
 
</pre>
 
</pre>
 +
 
==See Also==
 
==See Also==
 
[[Hidesave]]
 
[[Hidesave]]
 +
 +
[[Category:JavaScript]]

Latest revision as of 11:17, 5 March 2015

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 custom fields.
caption

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;
}

See Also

Hidesave