Solved

iexplorer.exe - Application Error

Posted on 2004-08-09
5
189 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
  • 2
5 Comments
 
LVL 36

Expert Comment

by:Zyloch
Comment Utility
Hi

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

Regards,
Zyloch
0
 

Author Comment

by:lala74
Comment Utility
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 500 total points
Comment Utility
Instead of all your document.framename, try using window.framename
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

How many times have you been browsing the internet, with multiple tabs open, and closed the wrong one? Have you ever clicked 'Close all tabs' instead of 'Close current tab' ? Internet Explorer 8 now brings to you, what Firefox has had for a wh…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now