There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
adware audio bios blue screen boot bsod computer crash dell driver drivers dvd email error excel firefox freeze freezing google hard drive hardware hijackthis install internet laptop linux malware network no sound outlook outlook 2007 problem router screen slow sound speakers spyware startup trojan usb video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
PHP/AJAX: Contact Form: No Reload: Help

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Hirnsausen's Avatar
Computer Specs
Senior Member with 101 posts.
 
Join Date: Jul 2008
Location: 18°00'33.64" N 76°46'50.73" W
Experience: Advanced
05-Jul-2009, 02:28 AM #1
PHP/AJAX: Contact Form: No Reload: Help
Hi.

I created a contact form and try to use (the first time in my life) Ajax to make only that part of the page reloading.

However, the problem is that the reload halts and much of that page is not being reloaded. i need help, someone who can look through my page and make the necessary corrections (with explanations, why - so I can learn from that).

Please get the form here:
http://MoonRunningsJamaica.Jamaica-F...ontactForm.rar
__________________
Thanks a lot for your time, intention, effort and for your ideas.
Greetings,
Sven
Hirnsausen's Avatar
Computer Specs
Senior Member with 101 posts.
 
Join Date: Jul 2008
Location: 18°00'33.64" N 76°46'50.73" W
Experience: Advanced
06-Jul-2009, 01:14 PM #2
No one knows?
Mr.LLB's Avatar
Senior Member with 182 posts.
 
Join Date: May 2008
Location: Toronto, Ontario
Experience: Advanced
07-Jul-2009, 01:55 PM #3
what do you mean by reload halts.....thats what ajax is for...for not having to reload pages because then u loose data.....

are you trying to submit the contact form using ajax?
Hirnsausen's Avatar
Computer Specs
Senior Member with 101 posts.
 
Join Date: Jul 2008
Location: 18°00'33.64" N 76°46'50.73" W
Experience: Advanced
07-Jul-2009, 02:06 PM #4
Hi, thanks for your reply.

No, the situation is, that only one specific part of the entire page is supposed to change after successful sending. The form sends, so far I am happy. But then it is supposed to send a message of success to the sending visitor, and that does not happen. Instead of displaying that the sending was successful, half of the entire page is not showing anymore.

Here I need help.

You can find the form at http://MoonRunningsJamaica.Jamaica-Focus.com, click there on CONTACT, and test the form.

I can give you all source code, if you want tit and can help me. I would appreciate it very much to get that form functioning completely.
__________________
Thanks a lot for your time, intention, effort and for your ideas.
Greetings,
Sven
Mr.LLB's Avatar
Senior Member with 182 posts.
 
Join Date: May 2008
Location: Toronto, Ontario
Experience: Advanced
07-Jul-2009, 02:19 PM #5
alright...i am testing your form so ignore any queries that i sent out
Mr.LLB's Avatar
Senior Member with 182 posts.
 
Join Date: May 2008
Location: Toronto, Ontario
Experience: Advanced
07-Jul-2009, 02:20 PM #6
why is it reloading the form in the form place???? ajax does not need to reload
Mr.LLB's Avatar
Senior Member with 182 posts.
 
Join Date: May 2008
Location: Toronto, Ontario
Experience: Advanced
07-Jul-2009, 02:25 PM #7
k give me the source code.....
Hirnsausen's Avatar
Computer Specs
Senior Member with 101 posts.
 
Join Date: Jul 2008
Location: 18°00'33.64" N 76°46'50.73" W
Experience: Advanced
07-Jul-2009, 04:23 PM #8
<Hi.

All that should be changed is that part of the page which contains the fields. That part should be replaced with the success message.

I will send you the RAR archive containing the necessary files. And: thanks a lot for your help!
techSeekerX's Avatar
Member with 38 posts.
 
Join Date: Apr 2007
Experience: Intermediate
08-Jul-2009, 09:27 AM #9
why should a user be able to drag the sections in your contact us page.
IMHO you've overdone the javascript and i didn't find any ajax code in that contact form
Mr.LLB's Avatar
Senior Member with 182 posts.
 
Join Date: May 2008
Location: Toronto, Ontario
Experience: Advanced
08-Jul-2009, 10:39 AM #10
haha....wondering the same thing
Hirnsausen's Avatar
Computer Specs
Senior Member with 101 posts.
 
Join Date: Jul 2008
Location: 18°00'33.64" N 76°46'50.73" W
Experience: Advanced
08-Jul-2009, 03:32 PM #11
We were been able to fix the problem partially: the contact form refreshes now entirely. So it shows completely, as it is supposed to, after sending. But still, why does the entire form refresh? I thought, AJAX would make only a part being refreshed...

Too much JavaScript: yes, true. Quite a lot. Simply remove the JS-links from the script, then you will see what is really needed at minimum.
__________________
Thanks a lot for your time, intention, effort and for your ideas.
Greetings,
Sven
Closed Thread Bookmark and Share

Tags
ajax, contact form, php

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 11:32 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.