Liferay ist zum sechsten Mal in Folge ein Leader im Gartner Magic Quadrant. Hier mehr erfahren

Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
William Gosse
aui:form and onsubmit issue
30. April 2012 13:22
Antwort

William Gosse

Rang: Regular Member

Nachrichten: 231

Eintrittsdatum: 4. Juli 2010

Neue Beiträge

When I add an onsubmit to my aui:form tag it doesn't seem to prevent the submission even the javscript that's called is returning false.

I even tried just having onSubmit="return fales;" in the aui:form tag which didn't stop the submission as well.

I'm trying to add this to the standard login.jsp.

Is there something special about how aui:form handles onsubmits?
William Gosse
SOLVED: aui:form and onsubmit issue
14. Mai 2012 03:40
Antwort

William Gosse

Rang: Regular Member

Nachrichten: 231

Eintrittsdatum: 4. Juli 2010

Neue Beiträge

I got this to work by moving my javascript call to the onclick on the submit button.
daddy 32
RE: SOLVED: aui:form and onsubmit issue
29. Januar 2015 01:03
Antwort

daddy 32

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 9. Dezember 2013

Neue Beiträge

William Gosse:
I got this to work by moving my javascript call to the onclick on the submit button.


But that's not a solution - what happens when user submits the form by pressing enter?