Announcement

Collapse
No announcement yet.

A Javascript Error Has Been Found...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A Javascript Error Has Been Found...

    Hi,

    I'm in the process of upgrading to v2013 and with the new pagination feature working I no longer need the annoying javascript "waiting" image to be displayed when a page is loading. I've identified the code I think I need to remove but when I blank it out with <!-- --!> I get an error message on the page "Object expected" so I think I'm probably missing another piece of code.

    Can anyone help?

    This is the top half of the code with the two lines being the ones I've already blanked.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
       <title><actinic:variable name="PageTitle" /></title>
       <actinic:variable name="BaseHref" />
       <actinic:variable name="MetaTags" value="Standard Meta Tags" />
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <meta http-equiv="MSThemeCompatible" content="yes" />
       <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22GlbMetaKeywords%22%20%2f%3e%20%21%3d%20%22%22%29" >
    	   <!-- <meta name="keywords" content="<actinic:variable name="GlbMetaKeywords" />" /> -->
       </actinic:block>
       <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22GlbMetaDescription%22%20%2f%3e%20%21%3d%20%22%22%29" >
    	   <!-- <meta name="description" content="<actinic:variable name="GlbMetaDescription" />" /> -->
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
    	   <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaKeywords%22%20%2f%3e%20%21%3d%20%22%22">
    		  <!--  <meta name="keywords" content="<actinic:variable name="MetaKeywords" />" /> -->
    	   </actinic:block>
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
          <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaDescription%22%20%2f%3e%20%21%3d%20%22%22">
    	     <!--  <meta name="description" content="<actinic:variable name="MetaDescription" />" /> -->
          </actinic:block>
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22IsP3PPolicyUsed%22%20%2f%3e"><link rel="P3Pv1" href="<actinic:variable name="P3PFullPolicyLink" />"></actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Contact%20Us%22" >
          <actinic:variable value="Script for Blocking Unregistered Customers" name="UnregCustomerMessage" if="%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20FALSE" />
       </actinic:block>
       <link href="actinic.css" rel="stylesheet" type="text/css">
       <link href="mainmenu.css" rel="stylesheet" type="text/css">
       <script language="javascript" type="text/javascript" src="actiniccore.js"></script>
       <script language="javascript" type="text/javascript" src="actinicextras.js"></script>
    
       <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
       <Actinic:COOKIECHECK />
    
       <script language="javascript" type="text/javascript">
          <!-- 
          saveReferrer();
          // -->
       </script>
    
    	<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27PSP%20Bounce%20Page%27%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsPSPTestMode%22%20%2f%3e%20%3d%3d%20false%29" >
    		<script language="JavaScript" type="text/javascript">
    		<!--
    		function onLoad()
    		{
    		document.formOCC.submit();
    		}
    		// -->
    		</script>
    	</actinic:block>
    	
    	<actinic:variable name="JavaScriptFunctions" />
    
    <!-- <script type="text/javascript">
    	
    // Handle drop down menus in IE using javascript
    if (window.attachEvent) 
    	{
    	window.attachEvent("onload", function() 
    		{
    		SFDropDownMenu("corporate_cart_login_menu");
    		SFDropDownMenu("corporate_top_menu");
    		} );
    	}
    	
    </script> -->
    </head>
    
    <body style="background:url('bkg-enjoy-music-purple.gif') repeat-x;" onLoad="init()">
    <!-- <div id="loading" style="position:absolute; width:100%; text-align:center; top:300px;"><img src="loading.gif" border=0></div>
    <script> var ld=(document.all);  var ns4=document.layers; var ns6=document.getElementById&&!document.all; var ie4=document.all;  if (ns4) 	ld=document.loading; else if (ns6) 	ld=document.getElementById("loading").style; else if (ie4) 	ld=document.all.loading.style;  function init() { if(ns4){ld.visibility="hidden";} else if (ns6||ie4) ld.display="none"; } </script> -->
    Thanks guys.
Working...
X