Using AJAX to Post Form Data

Using AJAX to Post Form Data

Postby Roswell » Fri Jul 06, 2007 7:03 pm

Edit: Please view the post on my website.
Last edited by Roswell on Mon Sep 17, 2007 8:47 pm, edited 2 times in total.
Roswell

Moderator Team
 
Posts: 2600
Joined: Thu Jul 05, 2007 5:06 pm


Re: Using AJAX to Post Form Data

Postby super3boy » Fri Jul 06, 2007 11:07 pm

Nice tutorial. Submitted.
Image
Image
Image
Image
User avatar
super3boy

Site Admin
 
Posts: 4620
Joined: Sun May 20, 2007 3:57 pm
Location: Atlanta, GA


Re: Using AJAX to Post Form Data

Postby pikaz » Tue Jul 17, 2007 11:35 am

This may be a few months old but, I ran across this script and while using a Firefox browser. This is a great script = ), I just have 1 little tweak that will make this run error free as-is.


Code: Select all
  <input type="button" name="button" value="Submit" onclick="javascript:myJax(getElementById('nameform'); )" />



to

Code: Select all
  <input type="button" name="button" value="Submit" onclick="javascript:myJax(getElementById('nameform').value)" />


This change because:

1. Firefox does not like the ; its really just not needed there.
2. you're sending an object, so if you specify that you want to send the value it'll print out the value instead of saying "[HTML INPUT OBJECT][Object]".


but all in all, its awesome script, thanks for sharing!
pikaz

Member
 
Posts: 3
Joined: Tue Jul 17, 2007 11:29 am


Re: Using AJAX to Post Form Data

Postby Roswell » Tue Jul 17, 2007 12:30 pm

Fixed.
Roswell

Moderator Team
 
Posts: 2600
Joined: Thu Jul 05, 2007 5:06 pm


Re: Using AJAX to Post Form Data

Postby pikaz » Tue Jul 17, 2007 12:45 pm

Just in case anyone wants to see the live version running I've added the file to my website at the following address:

http://www.arcaneisle.com/nystic/ajaxy.html

Plenty of bandwidth to go around, I assure you.
pikaz

Member
 
Posts: 3
Joined: Tue Jul 17, 2007 11:29 am


Re: Using AJAX to Post Form Data

Postby super3boy » Tue Jul 17, 2007 3:40 pm

Thats pretty cool to see it working. Welcome to nystic by the way.
Image
Image
Image
Image
User avatar
super3boy

Site Admin
 
Posts: 4620
Joined: Sun May 20, 2007 3:57 pm
Location: Atlanta, GA


Re: Using AJAX to Post Form Data

Postby Roswell » Tue Sep 04, 2007 10:50 pm

Interesting how most of these "new users" never return.
Roswell

Moderator Team
 
Posts: 2600
Joined: Thu Jul 05, 2007 5:06 pm


Re: Using AJAX to Post Form Data

Postby pikaz » Wed Sep 05, 2007 6:24 am

Still a member, just busy, busy! (school, internship, work, and girlfriend kinda sucks up 95% of my life)
:P
pikaz

Member
 
Posts: 3
Joined: Tue Jul 17, 2007 11:29 am


Re: Using AJAX to Post Form Data

Postby omoi » Wed Sep 05, 2007 6:29 am

pikaz wrote:Still a member, just busy, busy! (school, internship, work, and girlfriend kinda sucks up 95% of my life)
:P


I hear ya! Thanks for visiting, though. Get over here as often as you can!
Image

Read the rules.
Check this topic and make your suggestions known!
This is how we make suggestions.
User avatar
omoi

Moderator Team
 
Posts: 1038
Joined: Wed May 23, 2007 8:31 pm
Location: Georgia


Re: Using AJAX to Post Form Data

Postby super3boy » Wed Sep 05, 2007 6:01 pm

Yes please do. Girlfriend, LOL.

Raise your hand if you have a girlfriend right now.
Image
Image
Image
Image
User avatar
super3boy

Site Admin
 
Posts: 4620
Joined: Sun May 20, 2007 3:57 pm
Location: Atlanta, GA


Next

Return to Javascript

Who is online

Users browsing this forum: No registered users and 1 guest