In the Rasmus’ 30 Second Ajax Tutorial, we’re using the get method to send our request: function sndReq(action) { http.open(’get’, ‘rpc.php?action=’+action); http.onreadystatechange = handleResponse; http.send(null); } But what if we want to use the post method? Well, let’s modify that function to do just that: function sndReq(action) { http.open(’post’, ‘rpc.php’, true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", action.length); [...]
-
Recent Posts
-
Subscribe
-
Calendar
-
Recent Comments
- Mohan on SharePoint 2010: Custom Timer Job Caching Old Code
- Ah on Retrieving The Value Of A Flash DataGrid Cell
- Jakob on Retrieving The Value Of A Flash DataGrid Cell
- PJ on Retrieving The Value Of A Flash DataGrid Cell
- Juan Wong on Retrieving The Value Of A Flash DataGrid Cell
- Chris on Retrieving The Value Of A Flash DataGrid Cell
- Juan Wong on Denying Directory Listing With htaccess
- Digatex on Denying Directory Listing With htaccess
- kshitij kumar on Parser Error Message: Could not load type ‘_Default’
- JPH on Retrieving The Value Of A Flash DataGrid Cell
-
Categories
-
Blogroll
-
Imperative
-
Playground
-
Readers Online
-
Meta
-










