View Single Post
  #7  
Old 07-30-2010, 11:29 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Fancy categories not displaying

It is probably good practice to put {literal} {/literal} tags around your javascript if it is inline in a template - but not to help with validation issues. Instead, what that does is tell smarty to ignore your javascript - since smarty and javascript share some syntax, smarty can break apart your javascript by interpreting it incorrectly. (You don't need these tags for calls to external javascript files - smarty does not look in there.)

For W3C validation errors - I think you have two options - 1) Move the javascript to an external file instead of having it in-line or 2) Try surrounding the javascript with comment html tags so the validator treats it as a comment:

<script type="text/javascript">
<--<![CDATA[
your javascript goes here
]]>-->
</script>


--
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote