by bobsitko » Tue Aug 27, 2002 1:59 am
No, what I'm referring to is the extremely different formats of the "WriteToForm" subroutines; the standard nopcart.js module that I downloaded uses a format similar to this:
if (bDisplay)
strOutput = "" + " " + strIlabel+" " + " " + strDlabel+" " + " " + strQlabel+" " + " " + strPlabel + " " + (DisplayShippingColumn?" "+strSlabel+" ":"") + " " +strRlabel+" ";
whereas, other versions of nopcart, including one that Scott posted to this forum, use embedded HTML controls, similar to this:
if (bDisplay)
strOutput = "<table class=\"nopcart\"><TR> + "<TD class=\"nopheader\"><B>+strIlabel+"</B></TD>"+"<TD class= ...
The fieldnames are the same, but one format uses NO embedded HTML statements, while the other uses embedded HTML statements such as <table>,<tr>,<td>,<b> etc. My basic question is, which format is correct, or does it not matter which one to use?
Regards,
Bob