DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Post Bulk Data In AJAX request (http://www.daniweb.com/forums/thread164374.html)

shaikh_mshariq Dec 27th, 2008 1:24 am
Post Bulk Data In AJAX request
 
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 :)

~s.o.s~ Dec 28th, 2008 1:42 am
Re: Post Bulk Data In AJAX request
 
> 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?

hielo Dec 28th, 2008 1:51 am
Re: Post Bulk Data In AJAX request
 
refer to the makePOSTRequest on the following page:
http://www.captain.at/howto-ajax-form-post-request.php

shaikh_mshariq Dec 29th, 2008 12:08 am
Re: Post Bulk Data In AJAX request
 
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 ?

~s.o.s~ Dec 29th, 2008 1:23 am
Re: Post Bulk Data In AJAX request
 
> 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?

hielo Dec 29th, 2008 9:25 am
Re: Post Bulk Data In AJAX request
 
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


All times are GMT -4. The time now is 4:31 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC