Solved

iexplorer.exe - Application Error

Posted on 2004-08-09
5
193 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

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
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 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 +…

733 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