473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

passing large data in url

Hi All

I posted this last week on the asp forum and haven't had any response, so Ithought my I had posted in the wrong forum. If this I'm wrong, I apologise sincerely. Please help me with this.

I'm designing an online form for a client using javascript and vbscript. After a user has filled in, the form must be converted to pdf (I'm using ABCpdf5). The problem I have is that the form can be quite large and I get an error (MSXML3.DLL: System error: -2146697211.) when trying to send it to the page that actually generates the pdf. My code looks like this:


Expand|Select|Wrap|Line Numbers
  1. function BuildPDF()
  2. {
  3.  window.status = "Generating PDF..."
  4.  var oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
  5.  var s =   "<HTML>" +  divFResults.innerHTML + "</HTML>";      
  6.  var sURL = ".//IncludeFiles/BuildPDF.asp?s1=" + s;  
  7.  oXMLHTTP.open("POST", sURL, false);
  8.  oXMLHTTP.send();
  9.  var tableout = oXMLHTTP.responseText;      
  10.  oXMLHTTP.abort();    
  11.  oXMLHTTP = null;
  12.  var oData = new ActiveXObject("Microsoft.XMLDOM");
  13.  oData.async="false";      
  14.  var nodes = new ActiveXObject("Microsoft.XMLDOM");
  15.  nodes.async="false";      
  16.  oData.loadXML(tableout);      
  17.  var GenData = oData.getElementsByTagName("xml");
  18.  if(GenData.length==0)  {
  19.  alert("Unable generate PDF.");
  20.  return (false);}      
  21.  nodes.loadXML(GenData.item(0).xml);        
  22.  var sDone = nodes.documentElement.selectSingleNode("/xml/done").text   
  23.  if (sDone != "1"){
  24.  alert("Unable generate PDF.");
  25.  return (false);}
  26. }
  27.  
The error comes up on line 8 : oXMLHTTP.send();
This code works on small when small amount of data is sent. Is there size limits to the amount of data that can be sent this way. If so could you please suggest any solutions or work arounds.

If this has already been covered on this forum, please accept my apologies for reposting. Please direct me to the solution.

Thanks.
Jul 31 '07 #1
1 2991
acoder
16,027 Expert Mod 8TB
For a POST request, you need to send the data in the URL, so the send method should contain the data.

The URL should not contain the parameters. Put these in the send method call. See an Ajax example in the Articles section.
Jul 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
9
by: Just Me | last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in. Is the "ref" correct or since only a pointer is being passed should it be by value? Suppose I was passing data rather then...
1
by: Doug Taylor | last post by:
I'm VERY new to C# and still a bit clumsy with COM. I'm tasked to use C# to design and create an object that can be called from VC6, VB6, and .NET applications (and possibly even from plain old...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
11
by: Macca | last post by:
Hi, I'm writing an application that will pass a large amount of data between classes/functions. In C++ it was more efficient to send a pointer to the object, e.g structure rather than passing...
1
by: Matt B | last post by:
Hi all - I am going to implement a web service using .NET. It's a service that attributes authorship of a document to one of two authors, based on the training data provided. I am going to...
4
by: MicroMoth | last post by:
Hi, I'm trying to write a update method, in which when the user clicks the update button the update method is passed 10 form fields. Then a update SQL is run to update the database. My question...
5
by: mshaaban | last post by:
Hello, In my code I have a large static 2D arrays defined as: code: #define LONMAX 1440 #define LATMAX60 480 void main (int argc, char *argv)
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.