Insert & Update Not Working Correctly
Question:
When my page updates a record in the database, the new text in the editor is not updated unless I press buttons on the editor itself (like switch to HTML view). I have tested using Macromedia's Update Record server behavior and tested using an updateable recordset.
Answer:
You are probably submitting the form with form.submit() call instead of using a standard submit button...
Well this function indeed submits your form but it does not execute any scripts that are defined on the onsubmit handler.
So your form validation as well the copy of the html contents to the hidden text field that is used to update your database do not get executed this way...
So the best solution is to make the submit button a real type="submit" and get rid of any form.submit() functions.
Comments
Be the first to write a comment
You must me logged in to write a comment.