Announcement

Collapse
No announcement yet.

Javascript error on upgrading to v11

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

    Javascript error on upgrading to v11

    Two or three sites that are error free in v10 have, when upgraded produced errors.

    DOM Exception: INVALID CHARACTER ERR (5)
    Is solved by running the site in IE8 compatibility mode:

    Code:
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    It goes at the top under
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    The other oddity is some missing blockifs and closing block tags in the Javascript Header Functions:

    Code:
    	
    	<actinic:variable name="JavascriptSectionStockQuery" selectable="false" />
    		<script type="text/javascript">
    			setCookie('LAST_SECTION_URL', document.location.href);
    		</script>
    	</actinic:block>
    	
    	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22" >
    		<actinic:variable name="JavascriptProductStockQuery" selectable="false" />
    		<script type="text/javascript">
    			AttachEvent(window, "load", ShowBackLink);
    		</script>
    	
    	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22My%20Account%20Page%22%20AND%20%21%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" >
    		<script type="text/javascript">
    			if (!IsLoggedIn() && GetScriptPrefix() == 'ma')
    				{
    				document.location.href = '<actinic:variable name="LoginPageURL" selectable="false" />';
    				}
    		</script>	
    	</actinic:block>
    You have to copy the relevant lines lines from the generic site.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk
Working...
X