Foren

Liferay 6:Eqvalinet code of JavaScript for Alloy UI

Ravi Kiran, geändert vor 12 Jahren.

Liferay 6:Eqvalinet code of JavaScript for Alloy UI

Junior Member Beiträge: 53 Beitrittsdatum: 08.04.12 Neueste Beiträge
<portlet:actionURL name="addBook" var="addBookURL" />


<aui:form action="<%= addBookURL.toString() %>" method="post">

<aui:input type="text" name="name"></aui:input>
<aui:input type="password" name="pwd"></aui:input>
<aui:button type="submit"></aui:button>
</aui:form>


public void addBook(ActionRequest request, ActionResponse response) throws IOException, PortletException {

}
Hi , This is my Alloy UI Code for calling my MVCPortlet's Action class addBook Method .

My question is , I dont want to use Alloy UI in My UI , but pure JavaScript / Jquery .

So Is it possible to have equaveleint code for this in pure JavaScript ??

<aui:form action="<%= addBookURL.toString() %>" method="post">

<aui:input type="text" name="name"></aui:input>
<aui:input type="password" name="pwd"></aui:input>
<aui:button type="submit"></aui:button>
</aui:form>
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Liferay 6:Eqvalinet code of JavaScript for Alloy UI

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Sure it can be done.

You'll need to import jQuery if you want to use that; a theme is probably your best option.

Otherwise the AUI guys are just wrapping the normal html elements. Drop the AUI versions and use regular html versions, then use javascript to submit the form.