Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
could i use ajax for this

 
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion
View previous topic :: View next topic  
Author Message
dazzclub
New one
New one


Joined: 26 Nov 2006
Posts: 2

PostPosted: Sun Nov 26, 2006 4:20 pm    Post subject: could i use ajax for this Reply with quote

hi people im working on a site, some pages are contact forms.

I want to know if its possible to use ajax to send the form, show a "sent message" in one action, without having to create any other page.

at the moment i create a page for the form, use php to collect and submit the form and a thank you page to appear if the form has been successfully sent or not.

cheers
Back to top
View user's profile Send private message
Snyke
Forum Assistant
Forum Assistant


Joined: 20 Jun 2006
Posts: 87
Location: Zurich

PostPosted: Sun Nov 26, 2006 11:27 pm    Post subject: Reply with quote

This is perfectly possible. Just ask if you need help with the implementation ^^
_________________
[::[ Snyke.net ]::]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dazzclub
New one
New one


Joined: 26 Nov 2006
Posts: 2

PostPosted: Mon Nov 27, 2006 11:34 am    Post subject: Reply with quote

thats great news.

if you can offer any assistance that will be fantastic!!!!

where do we start???

Smile
Back to top
View user's profile Send private message
Snyke
Forum Assistant
Forum Assistant


Joined: 20 Jun 2006
Posts: 87
Location: Zurich

PostPosted: Mon Nov 27, 2006 3:33 pm    Post subject: Reply with quote

Ok first of all I'd write the from handler on the server side. It's a script that receives the data, just like in classical Form processing so you won't have to modify it if you already have a working one ^^
Then we collect the data from the form by doing something like this:
Code:
val1 = document.getElementById('field1').value;

Next thing we build up a query string:
Code:
params = "?field1=" + val1 + "...";

And then we fire up the XHRequest, see some tutorials for this ^^[/code]
_________________
[::[ Snyke.net ]::]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 Advertisements
 XML & Copyright Notice 
    


Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X


Link to our site:

  


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos


Normal Bookmark


Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax


Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?


Credits:
it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert