>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

AJAX POST-It Notes - browser server data ajax connection buffer side program

 
Registered tutorials: 501
Registered Users: 38032



Rating: 3.33 out of 6 votes cast


  
Category: Technique Introduction

AJAX POST-It Notes

Digg this   Post to del.icio.us

Abstract: This tutorial shows how to use POST method in Ajax requests.

The XMLHTTPRequest object has a little-used, but still useful property: The ability to post data instead of passing data completely in the URI as a GET. The post method comes in handy when you need to process large chunks of data, greater than the size limit on get requests, or when you need greater security between the client and server. You do not, after all, want to pass a social security number or a credit card number and have that information recorded in your web server log files.

The good news is that setting up a POST method takes only a few more lines of code than a GET method. We'll start with three variables we'd like to pass back to the server.

var age=37; var name='John Doe'; var job='Dog Catcher'; 

The method for preparing the data for transfer is the same as for setting up a GET save we do not include the http:// and website (www.somedomain.com) at the beginning of the data. We still must escape the data and seperate the data fields with ampersands (&).

   var passData = 'age='+escape(age)+'&name='+escape(name)+'&job='+escape(job);

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 527
Unique Hits: 466


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.4 0.4 3.5 3.7 20.1 22.2
Current 0 0 0 0 16 17
Previous 0 0 4 4 25 26
Feb 23 0 0 3 3 18 23
Feb 22 0 0 9 10 26 30
Feb 21 0 0 0 0 27 27
Feb 20 2 2 6 7 23 28
Feb 19 0 0 0 0 18 21
Feb 18 1 1 10 10 15 15
Feb 17 0 0 0 0 33 35
Feb 16 1 1 3 3 0 0
Highest 5 7 13 17 33 39


Script Execution Time: 0.10639 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2