Carregando...
TagriaLib Documentation v4
function
AttributeRequiredTypeDescription
dataTypefalsejava.lang.StringIndicates the type of return expected by ajax request. Default: json. Options: xml, json, script, html, jsonp, text
executefalsejava.lang.BooleanIt indicates whether the ajax function should be run to load the DOM. Default: false.
nametruejava.lang.StringIt indicates the name of the ajax function
urltruejava.lang.StringIndicates the url to be called by the Ajax request
renderedfalsejava.lang.BooleanIt indicates whether the component should be rendered. Default : true
<html:view>
			<html:input name="input1" value="Valor 0"/>
			
			<html:jsEvent attachTo="input1" event="blur">
			     checkForUrl();
			</html:jsEvent>
		
			<ajax:function name="checkForUrl" url="/app/ajax">
				<ajax:parameters>
					<ajax:parameter name="input1" src="input1" type="val" />
				</ajax:parameters>
			    <ajax:onSuccess>
			           /* function signature is f(data,textStatus,jqXHR):void. data: result data response, textStatus: status response text,jqXHR: ajax request object */
			           alert('Value was sent' + data.field);
			    </ajax:onSuccess>
			    <ajax:onError>
			           
			    </ajax:onError>
			</ajax:function>
		</html:view>