Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

iexplorer.exe - Application Error

Posted on 2004-08-09
5
Medium Priority
?
196 Views
Last Modified: 2008-03-03
Hi,

I have a jsp page on which I have put an icon. On clicking the icon a javascript function is executed that prints the contents of the page. The javascript function reads all the contents of the page, puts them into an iframe and then prints the contents of the iframe.

When I click on the icon, I am getting an error dialog that says

"The instruction at "0x70f20503" referenced memory at "0xba4e4448". The memory could not be "read". Click on OK to terminate the application. Click on Cancel to debug the application.

This error is happening in an infrequent manner. I am using an Internet Explorer version 5.5.

Does anybody know what could be the reason of this problem ?

The javascript function that is included is as below.

Thanks in advance.
Lala

----------------------------------------------------------------------
function pagePrint()
{
document.hiddenFrame.document.body.innerHTML= document.getElementById("TOP").innerHTML+document.getElementById("CONT").innerHTML+document.getElementById("BOTTOM").innerHTML+document.appIFrame.document.body.innerHTML;

      document.hiddenFrame.document.title=top.document.title;

      var newarray = hiddenFrame.document.getElementsByTagName("div");
      var divVar ;
      var ilu = 0 ;
      for(ilu=0; ilu < newarray.length; ilu++ )
      {
            divVar = hiddenFrame.document.getElementsByTagName("div").item(ilu) ;
            divVar.style.overflowY = "visible";
      }

      var newarray1 = hiddenFrame.document.getElementsByTagName("SPAN");
      var divVar1 ;
      var ilu1 = 0 ;

      for(ilu1=0 ; ilu1 < newarray1.length ; ilu1++ )
      {
            divVar1 = hiddenFrame.document.getElementsByTagName("SPAN").item(ilu1) ;
            divVar1.style.overflowY = "visible";
      }

      hiddenFrame.focus();
      hiddenFrame.print();
}
0
Comment
Question by:lala74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 11754308
Hi

Just wondering, does your page have both <div> and <span> tags in them?

Regards,
Zyloch
0
 

Author Comment

by:lala74
ID: 11759611
Yes Zyloch, It has both the <Div> and <span> tags. The javascript code collates the information present in these tags, puts them in the iframe , and then prints the iframe .
0
 
LVL 36

Accepted Solution

by:
Zyloch earned 2000 total points
ID: 11766470
Instead of all your document.framename, try using window.framename
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question