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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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