472,371 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 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.

Jul 26 '07 #1
0 1228

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

Similar topics

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...
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...
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...
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...
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...
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...
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...
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)...
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...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.