PDA

View Full Version : Ajax Submit Forum


jxmckenzie
11-28-2009, 06:37 PM
I'm very new to javascript and have been trying to implement a small submit form. I used this tutorial as a basis:

http://www.queness.com/post/160/create-a-ajax-based-form-submission-with-jquery

Everything submits perfectly, but instead of the forum disappearing and relaying a success message, it reloads and displays on a blank page.

I've done some testing w/ the code on a blank page and it works perfectly, but when I drop it into my site it doesnt.

here is a test of what im working w/:

jxmckenzie.com/tarallucci/catering_alt.php
(form on the bottom left)

I can post the code separately - but I thought I might as well inquire about general problems that cause the non-ajax response...

Much Thanks!

aaaa
11-28-2009, 11:08 PM
I've tried testing it.

Firstly It's not obvious what you're actually supposed to enter in the box, looking at the source code it's supposed to be an email address but it doesn't say that anywhere.

Anyway, I've tried entering various things and just get the "Sorry, unexpected error. Please try again later." alert coming up, and then it makes the box readonly so I can't try again without refreshing the page.

You'd have to post the PHP code really I think before I/Anyone could see what the problem is.