Click to See Complete Forum and Search --> : JavaScript on Form Action


pjb007
May 31st, 2006, 07:28 AM
I have a form that works when the form action is set to

form action="login/login.php"

That works find it displays the error if the details are missing/incorrect and displays the correct page if the correct details are used.

But as soon as I change it to this

form action="javascript:ajaxpage('login/login.php', 'mainarea');"

It don't work fully it only displays the first error message it hits.

Notes:
mainarea is a container that holds all the data, the site is AJAX but this seems to be a JavaScript error.

Dr. Script
May 31st, 2006, 08:33 PM
Copied to AJAX ... I'm not sure exactly how to resolve this.

PeejAvery
May 31st, 2006, 10:40 PM
If it is firing a JavaScript error, then the PHP page probably calls some JavaScript based on results. You should double check that. You can also post the PHP source to help with some clarification.