Solved

iexplorer.exe - Application Error

Posted on 2004-08-09
5
194 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 500 total points
ID: 11766470
Instead of all your document.framename, try using window.framename
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
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 +…

705 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