473,405 Members | 2,379 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,405 software developers and data experts.

Sending large html data to the url

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. }
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 26 '07 #1
0 1265

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

Similar topics

3
by: David Wahl | last post by:
I have written a script to send an email to a large list of emails, it works fine except for one slightly major thing. Each email needs to have the receipient's email address at the bottom of the...
5
by: Ian N | last post by:
Hi, I'm creating a site that posts orders to an email address when they're submitted, these orders need to be in the form of official invoices so i'm using HTML to format them. I already have...
1
by: Tim Black | last post by:
My application requires sending a large piece (~2MB) of data to several devices on a network via TCP sockets. I have experimented with different methods for doing this and this has raised some...
4
by: David Morgan | last post by:
Hi This is a really weird problem. We have a website that has been running for about six months with no problems. We have recently moved it to a new server with a new ISP. The server is of a...
4
by: Chuck Ritzke | last post by:
I keep asking myself this question as I write class modules. What's the best/smartest/most efficient way to send a large object back and forth to a class module? For example, say I have a data...
5
by: BVM | last post by:
Hi: I have a problem when sending large email(more than 20Mb) from a web page. I got timeout error. How to overcome this problem? I am thinking to have a thread to send email. Once the thread...
6
by: Rani | last post by:
hi guys I need to send an email from a form the form is collecting data from a user and then submits it to us. I would like the email to appear in the following format Name: Email: Etc. all I...
4
by: Abubakar | last post by:
Hi, I am writing a server in C# and client in C++ (pure, not managed). The communication goes on through sockets. In C# I am using NetworkStream to send text data (by converting it to byte array)...
3
by: יוני גולדברג | last post by:
Hi, I have two asp.net applications on different networks. One application has to call some operation/method on the other application and pass two large files as parameters: One file is huge xml...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.