Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XmlHttpRequest issue 1

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi all,
Is there a max amount of data that an xmlhttprequest object can pass?

I'm updating a database via classic .asp page, and I'm sending the data in a request-string, one of the fields is a very large text field, varchar(4000) and I get an error:
"The system cannot locate the resource specified"

I'm assuming this is simply because I'm shuttling too much data from the client page to the server--is there another ajax-type method of sending a huge amount of data to the server?
Thanks,
--Jim
 
You can just post the data...here's a tutorial on how to do it...


basically, instead of

Code:
  url = "mypage.asp";
  params = "&site=tek-tips&forum=js";
  xmlhttp.open("GET",url + parms,true);
  xmlhttp.send(null);

you will use

Code:
  url = "mypage.asp";
  params = "&site=tek-tips&forum=js";
  xmlhttp.open("POST",url,true);
  xmlhttp.send(someparamaters);

You need to send some more header information with the post, but it should be able to handle large amounts of data. All the extra header information is in the link I sent above...



--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top