View Single Post
Old 10-14-2007, 03:57 PM   #4 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

Hi there, sorry, made a stupid mistake, ammend the function like this:

Code:
function validate(pForm)
	{
		try
		{
			checkPass(pForm);
			updateSpryForm(pForm, 'Your password was changed. You have been logged out, please log back in with your new password', false);
		}
		catch (szException)
		{
			alert(szException);
		}
		
		// I'm assuming this is intentional?
		return false;
	}
and then ammend the onsubmit so it looks like:

Code:
onsubmit="validate(this); return false;"
Lets see if that works :)
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Karl is offline  
Reply With Quote