| Issue 165: | nyro ignores onsubmit ? | |
| 3 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem? 1. I have a form in a nyroModal 2. i have a submit button 3. i click on the button 4. i have a onsubmit on the form What is the expected output? What do you see instead? i expect that first the onsubmit is checked and if ture the form is submitted. if false the form is NOT submitted. But nyro seems to ignore any onsubmits on the form. Even onsubmit="return false;" Nyro sends the form :( What version of the product are you using? On what operating system? 1.4.1 Please provide any additional information below. Is it because nyro removes the POST information of the submit button?
Feb 14, 2009
Project Member
#1
nyro...@gmail.com
Status:
Invalid
Jul 19, 2010
Could you provide some examples of how you get an onsubmit validation to work with an html form in a nyroModal window? I'm not following what you are trying to say and I even tried the code in the examples and it did not work in a modal window. It seems that anytime I execute a nyromodal window it ignores any java script I throw at it entirely... I couldn't even get a simple alert box to pop up when I opened the modal window.
Jul 20, 2010
There is an example in the nyroModal home page or in the zip file. The idea is to use the nyroModalManual function in the submit function when it's ok.
Jul 20, 2010
As I mentioned already. I checked the examples on the homepage. I even used it for testing and it works in a parent window. But when the "simple form validation" example is opened in the modal window it does not throw an error message when the field is left blank. The modal window completely ignores the java script. Even when just a simple alert window is supposed to pop up. So are you saying that similar functions need to be used to actually get java script to work? Because any of the functions in the examples on this site are being ignored by the modal window. Do I need to modify something in the actual nyromodal script itself? |
||||||||