Foren

Taking field parameters from an AUI form to JS

thumbnail
Edwin Lobo, geändert vor 7 Jahren.

Taking field parameters from an AUI form to JS

New Member Beiträge: 10 Beitrittsdatum: 05.05.16 Neueste Beiträge
Hi, Community!

I need to solve an issue and hope you can help me...

I have an AUI form that gets one value from an input and requests my java class to perform a search.
The java class return a string result.

I need set this string as a parameter of a javascript function to process (render) in the same or another JSP.
I don't know how to do that. Any idea or example?

Or is it convenient to perform an action inside of JavaScript function? if it is, how can I do it?

I hope one of you can help me , please.


<portlet:actionurl name="findByKeyword" var="findByKeywordURL"></portlet:actionurl>
<aui:form action="<%= findByKeywordURL %>" name="<portlet:namespace />fm">
	<aui:fieldset>
		<aui:input name="keyword" label="Keyword"></aui:input>
	</aui:fieldset>
	
	<aui:button-row>
		<aui:button type="submit"></aui:button>
		<aui:button onclick="<%= viewURL.toString()%>" type="cancel"></aui:button>
	</aui:button-row>
</aui:form>