Good idea but unfortunately rather impractical like that, our site would generate a 6.5MB webpage!
Each product line would generate something like
add('NETQUOTEVAR:PRODUCTREFERENCE');
Where add is a javascript routine that adds a line to the product reference array. That's all that you'd need. Everything else in the template would be commented out.
To save space you'd have a dummy first product containing <script language="JavaScript"> and the final product that does the work would have the </script> tag.
Norman
p.s. I've already implemented something like this that generated an <OPTION> tag for each product, allowing the desired product to be selected from a drop down list.
Comment