
December 8th, 2012, 03:14 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Location: United States
Posts: 10
Time spent in forums: 3 h 27 m 47 sec
Reputation Power: 0
|
|
Ajax Form Submission Question
Hello,
Very new to Jquery. I don't think I need to show any code for this question but if I do I'll provide some.
here it is ...
I submit a form with an ajax call. It works fine 99% of the time. In the PHP script I return a value via echo <value> then exit immediately so the rest of the script isn't executed. ( so you get the seemless ajax effect )
Most of the time the value is returned to the .ajax call and it works great but sometimes my <value> will print out directly to the browser and exit. So all you see after you hit "submit" is a number.
Are you familiar with this behavior and if so what am I doing wrong ? Is this normal sometimes with ajax ? How can I reduce it's occurrence ? Maybe it's a PHP isssue or server config issue ?
thank you in advance 
|