掲示板
aui:form and onsubmit issue
11年前 に William Gosse によって更新されました。
aui:form and onsubmit issue
Liferay Master 投稿: 533 参加年月日: 10/07/04 最新の投稿
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?
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?
11年前 に William Gosse によって更新されました。
SOLVED: aui:form and onsubmit issue
Liferay Master 投稿: 533 参加年月日: 10/07/04 最新の投稿
I got this to work by moving my javascript call to the onclick on the submit button.
9年前 に daddy 32 によって更新されました。
RE: SOLVED: aui:form and onsubmit issue
New Member 投稿: 1 参加年月日: 13/12/09 最新の投稿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?
8年前 に Brijesh Desai によって更新されました。
RE: SOLVED: aui:form and onsubmit issue
Junior Member 投稿: 55 参加年月日: 14/10/22 最新の投稿
We were struggling with same to return false from js method which is called from onSubmit of form.
AUI form , onSubmit= "return false;" doesn't work.
Work around is put following on your aui form.
<aui:form id="setup-property-fm" onSubmit="event.preventDefault(); addproperty();" </aui:form>
event.preventDefault() is working and validated.
Thanks,
Brijesh D
AUI form , onSubmit= "return false;" doesn't work.
Work around is put following on your aui form.
<aui:form id="setup-property-fm" onSubmit="event.preventDefault(); addproperty();" </aui:form>
event.preventDefault() is working and validated.
Thanks,
Brijesh D
8年前 に Abdur rasheed によって更新されました。
RE: aui:form and onsubmit issue
Junior Member 投稿: 71 参加年月日: 08/09/26 最新の投稿
Hi ,
Check your script whether it is loading or not.
Check your script whether it is loading or not.
8年前 に Brijesh Desai によって更新されました。
RE: aui:form and onsubmit issue
Junior Member 投稿: 55 参加年月日: 14/10/22 最新の投稿Abdur rasheed:
Hi ,
Check your script whether it is loading or not.
Yes, it is loading and working as expected and validated.