View Single Post
Old 12-18-2012, 06:38 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,245
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Well, first of all it's jQuery, not vanilla JavaScript, so you might be better off asking in the jQuery forum.

Having said that: Ummm...I think you misunderstood the instructions.

You are supposed to *REPLACE* the callSuccessFunction() with a call to YOUR OWN FUNCTION that tells the browser user that the email send was successful!

I see no place in any of your files where you ever created such a function, certainly none with the name callSuccessFunction.

Just as a (REALLY BAD, but should work) example:

Code:
     success : function() { alert("email sent successfully"; },
     failure : function() { alert("unable to send email"; }
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
Cyrusis (12-19-2012)