Solved

iexplorer.exe - Application Error

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Gmail Account risks 4 91
Sudden problem (grey screen) playing flash files in any browser, any OS 7 80
yahoo Hacks 9 105
Possible Windows 10 "fixall" ? 3 59
Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
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.
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.

810 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