Issue 165: nyro ignores onsubmit ?
Status:  Invalid
Owner: ----
Closed:  Feb 2009
Reported by megato...@gmail.com, Feb 13, 2009
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
It's because you're trying to execute 2 function relative to the same event.
Did you check out on the demos sectiosn of the homepage with the form validation exemple?
Basically, you'll put your onsubmit function and in there, call nyroModalManual if
you want to.
Status: Invalid
Jul 19, 2010
#2 reddyf...@gmail.com
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
Project Member #3 nyro...@gmail.com
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
#4 reddyf...@gmail.com
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?