Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
simple javascript help needed!
This script works. I am using another script (function gup) that sets var range_param as NS's range code that goes in the URL... look here if you're confused and see my script in action: http://www.bestamericanarts.com/Shop/zzzzzzzzzzzzzzzz
<script type="text/javascript">
var range_param = gup( 'range' );
if(range_param == '1%2C1%2C3'){
alert('this is page one');
} else if(range_param == '2%2C2%2C3'){
alert('this is page two');
} else if(range_param == '3%2C3%2C3'){
alert('this is page three');
}
</script>
Now I want to change the script a bit to deal with the "search=" value instead of the "range=" value. I use search results to create dynamic categories by tagging an item with (for example) search keyword "underforty" for all items I have that are under $40.