Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
JavaScript being ignored in item/category templates in FireFox 2.0
Hi everyone,
Any comments, references, ideas or assistance would be appreciated...
Users have been reporting that my webstore hasn't been rendering in Firefox properly since updating to Firefox 2.0. After a lot of process of elimination I have come to the following conclusion: JavaScript in the item & category templates is being ignored!
I'm using the following code to decide whether or not to display a "New!" graphic next to items display on my Welcome page:
<script type="text/javascript"> var dateToday = new Date(); var createDate = "<%=getCurrentAttribute('item', 'createddate')%>"; var arrDate = createDate.split("/"); var createdDate = new Date(arrDate[2].substr(0,4), arrDate[1], arrDate[0]); if (((dateToday - createdDate) / 86400000) < <NEWITEMVALUE>) document.write("<img src='<URLGRAPHICS>Icon_New.gif' alt='New!'/> "); </script> 0