Hey everyone, I have a form with two selects, a category and a sub category. Obviously, the sub-category menu cannot be filled in until a category is chosen and must change based on what category is chosen. Before I was using AJAX on this form I had an onchange="this.form.submit()" on the category select, and the controller knew to simply re-render the view if params[:commit].length == 0. Worked great. When I switched to AJAX for this form I made the onchange for the category menu "this.form.onsubmit()" to get the AJAXification. Now, the effect I''m seeing is that if I choose a category, the DIV refreshes, the sub-category menu is filled in properly, BUT the form is acting as if the "Save" button was clicked, so I see the empty fields highlighted in red with the error messages. How can I test to see when the form is submitted if the submit button was actually clicked? Why is the onsubmit() handler sending a value for the submit button that wasn''t clicked? -Josh ----------- Due to the recent increase in spam and falsely sent email, I now PGP Sign all of my outgoing mail to prove my identity. This means that you will see an attachment called "PGP.sig" with this message. This attachment can be used to prove that I am who I say I am. If you are not familiar with PGP, you can safely ignore it. For more information, please visit http://www.pgp.com/ or http://www.gnupg.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060210/b3637f41/PGP.bin