Post Bulk Data In AJAX request

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
Reply

Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Post Bulk Data In AJAX request

 
0
  #1
Dec 27th, 2008
I want to pass a large string in ajax request that would be parsed and resultant data is returned by the server. How can I achieve this ?

Is POST method can read a large string from any html element using AJAX ? And if yes than how it is possible?

Thanks In Advance
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,581
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 461
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Post Bulk Data In AJAX request

 
0
  #2
Dec 28th, 2008
> How can I achieve this ?

In case of a GET request, the data is embedded in the query string while in case of POST request, it is passed as a argument to the send method of XHR object. Read this.

> Is POST method can read a large string from any html element
> using AJAX ?

You seem pretty confused here; what exactly do you mean by read a string from HTML element using AJAX?
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 113
Reputation: hielo is on a distinguished road 
Solved Threads: 17
hielo hielo is offline Offline
Junior Poster

Re: Post Bulk Data In AJAX request

 
0
  #3
Dec 28th, 2008
refer to the makePOSTRequest on the following page:
http://www.captain.at/howto-ajax-form-post-request.php
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Post Bulk Data In AJAX request

 
0
  #4
Dec 29th, 2008
I have gone through the above example before. My question is that I want to pass a large no of parameters with the POST request just like
url?paramString=filterBuild&buildId=122_344_533_n_.....

( where "_" is separator Character )

Is it possible to pass a large parameters with the POST request ?
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,581
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 461
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Post Bulk Data In AJAX request

 
0
  #5
Dec 29th, 2008
> Is it possible to pass a large parameters with the POST request ?

Ideally yes, since I find no mention of a limit in the HTTP specification. Practically, it depends on both the browser/user agent and the server accepting the request, which again should be enough for your needs. Are you facing any problems as of now?
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 113
Reputation: hielo is on a distinguished road 
Solved Threads: 17
hielo hielo is offline Offline
Junior Poster

Re: Post Bulk Data In AJAX request

 
0
  #6
Dec 29th, 2008
If you are not receiving all the data, it's possible your server's POST limit is too low for your needs. If you are using PHP, look for:

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

in your php.ini file and adjust it accordingly
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC