troubleshooting Question

works then doesnt work

Avatar of CosmicKoder
CosmicKoder asked on
Web Browsers
3 Comments2 Solutions225 ViewsLast Modified:
i have a website i built and sometimes it works in IE 7 and sometimes it doesnt. I have the source from a page that i tired to load and it didnt work. What it does is just display the whole page as pure white. From looking at the source i see there is some sort of function SymError() in the javascript. Is that a indication of what is going on?

Thanks

Peter
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>The Dancing Paintbrush</title>
 
<script language="JavaScript">
<!--
 
function SymError()
{
  return true;
}
 
window.onerror = SymError;
 
var SymRealWinOpen = window.open;
 
function SymWinOpen(url, name, attributes)
{
  return (new Object());
}
 
window.open = SymWinOpen;
 
//-->
</script>
 
<script type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
</script>
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head><body onload="MM_preloadImages('images/link-home-roll.jpg','images/link-artist-roll.jpg','images/link-gallery-roll.jpg','images/link-new-roll.jpg','images/link-classes-roll.jpg','images/link-contact-roll.jpg','images/link-giveback-roll.jpg','images/link-wholesale-roll.jpg','images/link-mailing-roll.jpg')">
 
<div class="holder">
<div class="header"><img src="images/dptop.jpg" width="900" height="400" /></div>
<div class="bgImage">
  <p>&nbsp;</p>
  <p>I would love to hear from you!&nbsp; Do you have any stories about my artwork, guardian angels, or how any of my work might have impacted your life? Please let me know! I'm keeping a journal of all these exciting stories!</p>
  <p>Thanks for visiting!</p>
  <p>Joyfully,<br />
    Sue</p>
  <p>Snail Mail:</p>
  <p>The Dancing Paintbrush Studio<br />
    Susan Vannelli<br />
    415 Mt. Curve Blvd.<br />
    St. Paul, MN. 55105</p>
  <form id="contactform" name="contactform" method="post" action="nvform.php">
    <p>Contact us via Email:</p>
    <p>Name:<br />
      <input name="name" type="text" id="name" size="50" />
    </p>
    <p>Email: <br />
      <input name="email" type="text" id="email" size="50" />
    </p>
    <p>Phone:<br />
        <input name="phone" type="text" id="phone" size="50" />
          <br />
          <br />
          Comments:<br />
          <textarea name="comments" id="comments" cols="48" rows="10"></textarea>
    </p>
    <p>
      <input type="submit" name="send" id="send" value="Send" />
      <input type="hidden" name="subject" value="Dancing Paintbrush Contact Email" />
  <input type="hidden" name="success_page" value="http://www.thedancingpaintbrush.com/contact-success.html" />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" name="Reset" id="button" value="Clear" />
    </p>
  </form>
  <p>&nbsp;</p>
</div>
<div class="nav">
  <table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/link-home-roll.jpg',1)" onmouseover="MM_nbGroup('over','home','images/link-home-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-home.jpg" alt="home" name="home" width="275" height="27" border="0" id="home" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="artist.html" target="_top" onclick="MM_nbGroup('down','group1','artist','images/link-artist-roll.jpg',1)" onmouseover="MM_nbGroup('over','artist','images/link-artist-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-artist.jpg" alt="artist" name="artist" width="275" height="27" border="0" id="artist" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="gallery.cfm" target="_top" onclick="MM_nbGroup('down','group1','gallery','images/link-gallery-roll.jpg',1)" onmouseover="MM_nbGroup('over','gallery','images/link-gallery-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-gallery.jpg" alt="" name="gallery" width="275" height="27" border="0" id="gallery" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="classes.html" target="_top" onclick="MM_nbGroup('down','group1','classes','images/link-classes-roll.jpg',1)" onmouseover="MM_nbGroup('over','classes','images/link-classes-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-classes.jpg" alt="classes" name="classes" width="275" height="27" border="0" id="classes" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="new.html" target="_top" onclick="MM_nbGroup('down','group1','new','images/link-new-roll.jpg',1)" onmouseover="MM_nbGroup('over','new','images/link-new-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-new.jpg" alt="whats_new" name="new" width="275" height="27" border="0" id="new" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="giveback.html" target="_top" onclick="MM_nbGroup('down','group1','givingback','images/link-giveback-roll.jpg',1)" onmouseover="MM_nbGroup('over','givingback','images/link-giveback-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-giveback.jpg" alt="give back" name="givingback" border="0" id="givingback" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="wholesale.html" target="_top" onclick="MM_nbGroup('down','group1','wholesale','images/link-wholesale-roll.jpg',1)" onmouseover="MM_nbGroup('over','wholesale','images/link-wholesale-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-wholesale.jpg" alt="wholesale" name="wholesale" border="0" id="wholesale" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="contact.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/link-contact-roll.jpg',1)" onmouseover="MM_nbGroup('over','contact','images/link-contact-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-contact.jpg" alt="contact" name="contact" width="275" height="27" border="0" id="contact" onload="" /></a></td>
    </tr>
    <tr>
      <td><a href="mailinglist.html" target="_top" onclick="MM_nbGroup('down','group1','mailinglist','images/link-mailing-roll.jpg',1)" onmouseover="MM_nbGroup('over','mailinglist','images/link-mailing-roll.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/link-mailing.jpg" alt="join mailing list" name="mailinglist" border="0" id="mailinglist" onload="" /></a></td>
    </tr>
  </table>
</div>
</div>
</body>
</html>
 
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
 
function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}
 
function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}
 
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
 
//-->
</script>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros