Component not working after upgrade to R8

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Component not working after upgrade to R8

Post by Brewhaus » Tue Sep 30, 2014 11:40 am

We are just completing the development of our site to move to R8 from R6. As part of our website we have several custom formula calculators, which have worked from pre-Gold (7.0.2), and work in R6, but when we use the same code in R8 they will not function. Can anyone suggest what needs to be changed in the code in order to get it to function under R8? Below are links to the existing site calculators and the DEV site calculators, as well as the HTML being used.
Working (R6)- http://www.brewhaus.com/Calculators.aspx
Not working (R8)- http://dev.brewhaus.com/Calculator.aspx

Code: Select all

<P>&nbsp;</P>
<H3><FONT color=#0000ff>Calculating finished alcohol percentage from Fermentation</FONT></H3>
<TABLE cellPadding=5 border=1>
<FORM name=Alc2>
</FORM></TABLE>
<P>Calculate using Specific Gravity Scale<BR>
<TABLE cellPadding=5 border=1>
<FORM name=Alcohol>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHSSG> Starting SG</TD>
<TD bgColor=#99ccff><INPUT size=4 name=BHFSG> Final SG</TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;Alcohol.BHA.value=(Math.round((Alcohol.BHSSG.value-Alcohol.BHFSG.value)*1250)/10)" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHA> %ABV </P></TD></TR></TBODY></TABLE></FORM><br><br>
<P>Calculate using Oeschle Scale<BR>
<TABLE cellPadding=5 border=1>
<FORM name=Alc>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHSO> Starting Oeschle</TD>
<TD bgColor=#99ccff><INPUT size=4 name=BHFO> Final Oeschle</TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;Alc.BHB.value=((Math.round((Alc.BHSO.value-Alc.BHFO.value)/.8))/10)" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHB> %ABV </P></TD></TR></TBODY></TABLE></FORM>
<P>&nbsp;</P>
<H3><FONT color=#0000ff>Calculating potential alcohol percentage from Fermentation<BR>based on amount of sugar used</FONT></H3>
<P>Calculate potential alcohol based on amount of sugar and total mash volume<BR>(note: use total volume being fermented, not volume of water used)<BR>This will tell you the alcohol percentage after fermentation based on sugar usage<BR>
<TABLE cellPadding=5 border=1>
<FORM name=PotentialAlc>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHSU> kg sugar</TD>
<TD bgColor=#99ccff><INPUT size=4 name=BHVO> Total volume (L)</TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;PotentialAlc.BHC.value=((Math.round((PotentialAlc.BHSU.value*1000/PotentialAlc.BHVO.value)/1.7))/10)" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHC> % potential </P></TD></TR></TBODY></TABLE>
<P></FORM></P>
<P></P>&nbsp; 
<H3><FONT color=#0000ff>Dilution Ratio</FONT></H3>
<P>Calculate how much base alcohol and distilled water to mix in order to dilute high-proof<BR>alcohol to a given final percentage 
<TABLE cellPadding=5 border=1>
<FORM name=Dilution>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHBP> %abv alcohol of base 
<P><INPUT size=4 name=BHDP> %abv desired</P></TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;Dilution.BHBN.value=(Math.round(Dilution.BHDP.value/(Dilution.BHBP.value)*100)/10)&#13;&#10;&#9;Dilution.BHWN.value=(10-Dilution.BHBN.value)" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHBN>parts base<BR>to<BR>&nbsp;<INPUT size=4 name=BHWN>parts distilled water</P></TD></TR></TBODY></TABLE></FORM>
<P>&nbsp;</P>
<H3><FONT color=#0000ff>Calculating required amount of alcohol needed to obtain a specific<BR>proof in a finished liquor or liqueur</FONT></H3>
<P>Calculate how much base alcohol at a given percentage is required to make a finished<BR>product with a specific alcohol content for any volume<BR>(eg. 316ml of 95% alcohol is needed to make a 750ml bottle of 40% vodka- the rest<BR>of the bottle can be filled with water, sugar, essence, etc., without altering the proof of<BR>the finished liquor) 
<TABLE cellPadding=5 border=1>
<FORM name=Mixing>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHBA> %abv alcohol to use 
<P><INPUT size=4 name=BHDA> %abv desired</P></TD>
<TD bgColor=#99ccff><INPUT size=4 name=BHVOL>ml total desired </TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;Mixing.BHNED.value=((Math.round((Mixing.BHDA.value/Mixing.BHBA.value)*Mixing.BHVOL.value)))" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHNED>ml of base needed </P></TD></TR></TBODY></TABLE></FORM>
<P>&nbsp;</P>
<H3><FONT color=#0000ff>Converting sugar weight to volume</FONT></H3>
<P>Calculate the volume of sugar needed in place of weight<BR>
<TABLE cellPadding=5 border=1>
<FORM name=SugarNeed>
<TBODY>
<TR>
<TD bgColor=#99ccff><INPUT size=4 name=BHSUM> g sugar</TD>
<TD bgColor=#99ccff rowSpan=2><INPUT onclick="&#13;&#10;&#9;SugarNeed.BHSVL.value=(Math.round(SugarNeed.BHSUM.value*1.13))&#13;&#10;&#9;SugarNeed.BHSVL2.value=((Math.round((SugarNeed.BHSUM.value*11.3/238)))/10)" type=button value=Calculate ;> 
<P>&nbsp;<INPUT size=4 name=BHSVL>ml sugar<BR>or <BR><INPUT size=4 name=BHSVL2>cups</P></TD></TR></TBODY></TABLE>
<P></FORM>
<P>&nbsp;</P>
<H3 align=center><FONT color=#0000ff>General Conversions</FONT></H3>
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD>
<P align=center><FONT face=Arial size=2>Many of our items, because of being imported from a European country, have pertinent information listed only in Metric.&nbsp; Unfortunately, this information is often not helpful in the US where measurements are in the Imperial system.</FONT></P>
<P align=center><FONT face=Arial size=2>In addition, sugar addition for essences are listed in grams.&nbsp; This is of no help for those without extremely accurate kitchen scales.</FONT> 
<P align=center><FONT face=Arial size=2>We have therefore created the tables below to help in making your liqueurs.</FONT></P></TD></TR></TBODY></TABLE></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD width=750>
<P align=center><FONT face=Arial size=2><B>Conversion table for<BR>Volumes listed on Prestige Essence bottles and Turbo Yeasts</B></FONT></P></TD></TR></TBODY></TABLE>
<TABLE width=750 border=0>
<TBODY>
<TR>
<TD width=375><B><FONT face=Arial size=2>Metric</FONT></B></TD>
<TD width=375><B><FONT face=Arial size=2>Imperial / Standard Equivalent</FONT></B></TD></TR>
<TR>
<TD width=375><FONT face=Arial size=2>75cl&nbsp; (750 ml)</FONT></TD>
<TD width=375><FONT face=Arial size=2>25oz. (one-fifth)</FONT></TD></TR>
<TR>
<TD width=375><FONT face=Arial size=2>20ml</FONT></TD>
<TD width=375><FONT face=Arial size=2>2/3oz.</FONT></TD></TR>
<TR>
<TD width=375><FONT face=Arial size=2>23L</FONT></TD>
<TD width=375><FONT face=Arial size=2>6 US Gallons</FONT></TD></TR>
<TR>
<TD width=375><FONT face=Arial size=2>25L</FONT></TD>
<TD width=375><FONT face=Arial size=2>6.5 US Gallons</FONT></TD></TR></TBODY></TABLE></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD width=750>
<P align=center><FONT face=Arial size=2><B>Conversion table for<BR>Sugar Weight listed on Prestige Turbo Yeasts</B></FONT></P></TD></TR></TBODY></TABLE>
<TABLE width=750 border=0>
<TBODY>
<TR>
<TD width=250><B><FONT face=Arial size=2>Metric</FONT></B></TD>
<TD width=250><B><FONT face=Arial size=2>Imperial Weight</FONT></B></TD>
<TD width=250><B><FONT face=Arial size=2>Imperial Volume</FONT></B></TD></TR>
<TR>
<TD width=250><FONT face=Arial size=2>6kg</FONT></TD>
<TD width=250><FONT face=Arial size=2>13.25 lbs.</FONT></TD>
<TD width=250><FONT face=Arial size=2>26.25 cups</FONT></TD></TR>
<TR>
<TD width=250><FONT face=Arial size=2>8kg</FONT></TD>
<TD width=250><FONT face=Arial size=2>17.75 lbs.</FONT></TD>
<TD width=250><FONT face=Arial size=2>35 cups</FONT></TD></TR></TBODY></TABLE></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P>
<TABLE width="95%" border=1>
<TBODY>
<TR>
<TD width=750>
<P align=center><FONT face=Arial size=2><B>Conversion table for<BR>Sugar weights listed on Prestige Essence bottles</B></FONT></P></TD></TR></TBODY></TABLE>
<TABLE width=750 border=0>
<TBODY>
<TR>
<TD width=167><B><FONT face=Arial size=2>Metric Weight</FONT></B></TD>
<TD width=167><FONT face=Arial size=2><B>Metric Volume</B></FONT></TD>
<TD width=182><B><FONT face=Arial size=2>Imperial Weight</FONT></B></TD>
<TD width=233><B><FONT face=Arial size=2>Imperial Volume</FONT></B></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>25g</FONT></TD>
<TD width=167><FONT face=Arial size=2>28ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>0.9oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>2&nbsp;Tbsp</FONT></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>50g</FONT></TD>
<TD width=167><FONT face=Arial size=2>57ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>1.75oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>0.25&nbsp;cup</FONT></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>100g</FONT></TD>
<TD width=167><FONT face=Arial size=2>115ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>3.5oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>0.5 cup</FONT></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>150g</FONT></TD>
<TD width=167><FONT face=Arial size=2>170ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>5.25oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>0.7&nbsp;cup&nbsp; (2/3c&nbsp;+&nbsp;1 Tsp)</FONT></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>200g</FONT></TD>
<TD width=167><FONT face=Arial size=2>225ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>7oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>0.95 cup (1c - 2 Tsp)</FONT></TD></TR>
<TR>
<TD width=167><FONT face=Arial size=2>250g</FONT></TD>
<TD width=167><FONT face=Arial size=2>285ml</FONT></TD>
<TD width=182><FONT face=Arial size=2>8.75oz</FONT></TD>
<TD width=233><FONT face=Arial size=2>1.2 cup (1c + 3 Tbsp)</FONT></TD></TR></TBODY></TABLE></P></FORM>
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Component not working after upgrade to R8

Post by mazhar » Tue Sep 30, 2014 11:32 pm

It seems like you missed the form tags when you copied the HTML over to R8.

Code: Select all

<FORM>
For example the first blue color calculator HTML on R8 is

Code: Select all

<table cellpadding="5" border="1">
<tbody>
<tr>
<td bgcolor="#99ccff"><input type="text" size="4" name="BHSU"> kg sugar</td>
<td bgcolor="#99ccff"><input type="text" size="4" name="BHVO"> Total volume (L)</td>
<td bgcolor="#99ccff" rowspan="2"><input type="button" value="Calculate" onclick="
	PotentialAlc.BHC.value=((Math.round((PotentialAlc.BHSU.value*1000/PotentialAlc.BHVO.value)/1.7))/10)">
<p>&nbsp;<input type="text" size="4" name="BHC"> % potential</p>
</td>
</tr>
</tbody>
</table>
while on R6 it says

Code: Select all

<table cellpadding="5" border="1">
<form name="Alcohol"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input name="BHSSG" size="4"> Starting SG</td>
<td bgcolor="#99ccff"><input name="BHFSG" size="4"> Final SG</td>
<td bgcolor="#99ccff" rowspan="2"><input type="button" ;="" value="Calculate" onclick="
	Alcohol.BHA.value=(Math.round((Alcohol.BHSSG.value-Alcohol.BHFSG.value)*1250)/10)"> 
<p>&nbsp;<input name="BHA" size="4"> %ABV </p></td></tr></tbody></table>
where you can clearly see its wrapped in form element. Make sure you are not missing anything while you are porting HTML to R8.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Component not working after upgrade to R8

Post by Brewhaus » Wed Oct 01, 2014 5:35 am

This is very odd. I did a direct copy and paste from the R6 page to the R8 page. I just tried it again, and when I save the HTML it removes the form tags. Any thoughts on this?

I will try creating a ConLib file to see if that will work, as we are splitting the calculators up on the R8 website and making them webpages instead of a category pages. Hopefully that will work.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Component not working after upgrade to R8

Post by mazhar » Wed Oct 01, 2014 5:55 am

Brewhaus wrote:This is very odd. I did a direct copy and paste from the R6 page to the R8 page. I just tried it again, and when I save the HTML it removes the form tags. Any thoughts on this?

I will try creating a ConLib file to see if that will work, as we are splitting the calculators up on the R8 website and making them webpages instead of a category pages. Hopefully that will work.
Try using following HTML in R8 page contents.

Code: Select all

		<p>&nbsp;</p>
<h3><font color="#0000ff">Calculating finished alcohol percentage from Fermentation</font></h3>
<table border="1" cellpadding="5">

</table>
<p>Calculate using Specific Gravity Scale<br>
</p><table border="1" cellpadding="5">
<form name="Alcohol"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSSG"> Starting SG</td>
<td bgcolor="#99ccff"><input size="4" name="BHFSG"> Final SG</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	Alcohol.BHA.value=(Math.round((Alcohol.BHSSG.value-Alcohol.BHFSG.value)*1250)/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHA"> %ABV </p></td></tr></tbody></table><br><br>
<p>Calculate using Oeschle Scale<br>
</p><table border="1" cellpadding="5">
<form name="Alc"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSO"> Starting Oeschle</td>
<td bgcolor="#99ccff"><input size="4" name="BHFO"> Final Oeschle</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	Alc.BHB.value=((Math.round((Alc.BHSO.value-Alc.BHFO.value)/.8))/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHB"> %ABV </p></td></tr></tbody></table>
<p>&nbsp;</p>
<h3><font color="#0000ff">Calculating potential alcohol percentage from Fermentation<br>based on amount of sugar used</font></h3>
<p>Calculate potential alcohol based on amount of sugar and total mash volume<br>(note: use total volume being fermented, not volume of water used)<br>This will tell you the alcohol percentage after fermentation based on sugar usage<br>
</p><table border="1" cellpadding="5">
<form name="PotentialAlc"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSU"> kg sugar</td>
<td bgcolor="#99ccff"><input size="4" name="BHVO"> Total volume (L)</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	PotentialAlc.BHC.value=((Math.round((PotentialAlc.BHSU.value*1000/PotentialAlc.BHVO.value)/1.7))/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHC"> % potential </p></td></tr></tbody></table>
<p></p>
<p></p>&nbsp; 
<h3><font color="#0000ff">Dilution Ratio</font></h3>
<p>Calculate how much base alcohol and distilled water to mix in order to dilute high-proof<br>alcohol to a given final percentage 
</p><table border="1" cellpadding="5">
<form name="Dilution"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHBP"> %abv alcohol of base 
<p><input size="4" name="BHDP"> %abv desired</p></td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	Dilution.BHBN.value=(Math.round(Dilution.BHDP.value/(Dilution.BHBP.value)*100)/10)
	Dilution.BHWN.value=(10-Dilution.BHBN.value)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHBN">parts base<br>to<br>&nbsp;<input size="4" name="BHWN">parts distilled water</p></td></tr></tbody></table>
<p>&nbsp;</p>
<h3><font color="#0000ff">Calculating required amount of alcohol needed to obtain a specific<br>proof in a finished liquor or liqueur</font></h3>
<p>Calculate how much base alcohol at a given percentage is required to make a finished<br>product with a specific alcohol content for any volume<br>(eg. 316ml of 95% alcohol is needed to make a 750ml bottle of 40% vodka- the rest<br>of the bottle can be filled with water, sugar, essence, etc., without altering the proof of<br>the finished liquor) 
</p><table border="1" cellpadding="5">
<form name="Mixing"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHBA"> %abv alcohol to use 
<p><input size="4" name="BHDA"> %abv desired</p></td>
<td bgcolor="#99ccff"><input size="4" name="BHVOL">ml total desired </td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	Mixing.BHNED.value=((Math.round((Mixing.BHDA.value/Mixing.BHBA.value)*Mixing.BHVOL.value)))" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHNED">ml of base needed </p></td></tr></tbody></table>
<p>&nbsp;</p>
<h3><font color="#0000ff">Converting sugar weight to volume</font></h3>
<p>Calculate the volume of sugar needed in place of weight<br>
</p><table border="1" cellpadding="5">
<form name="SugarNeed"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSUM"> g sugar</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
	SugarNeed.BHSVL.value=(Math.round(SugarNeed.BHSUM.value*1.13))
	SugarNeed.BHSVL2.value=((Math.round((SugarNeed.BHSUM.value*11.3/238)))/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHSVL">ml sugar<br>or <br><input size="4" name="BHSVL2">cups</p></td></tr></tbody></table>
<p>
</p><p>&nbsp;</p>
<h3 align="center"><font color="#0000ff">General Conversions</font></h3>
<p>
</p><table border="1" width="95%">
<tbody>
<tr>
<td>
<p align="center"><font size="2" face="Arial">Many of our items, because of being imported from a European country, have pertinent information listed only in Metric.&nbsp; Unfortunately, this information is often not helpful in the US where measurements are in the Imperial system.</font></p>
<p align="center"><font size="2" face="Arial">In addition, sugar addition for essences are listed in grams.&nbsp; This is of no help for those without extremely accurate kitchen scales.</font> 
</p><p align="center"><font size="2" face="Arial">We have therefore created the tables below to help in making your liqueurs.</font></p></td></tr></tbody></table><p></p>
<p><font size="2"></font>&nbsp;</p>
<p>
</p><table border="1" width="95%">
<tbody>
<tr>
<td width="750">
<p align="center"><font size="2" face="Arial"><b>Conversion table for<br>Volumes listed on Prestige Essence bottles and Turbo Yeasts</b></font></p></td></tr></tbody></table>
<table border="0" width="750">
<tbody>
<tr>
<td width="375"><b><font size="2" face="Arial">Metric</font></b></td>
<td width="375"><b><font size="2" face="Arial">Imperial / Standard Equivalent</font></b></td></tr>
<tr>
<td width="375"><font size="2" face="Arial">75cl&nbsp; (750 ml)</font></td>
<td width="375"><font size="2" face="Arial">25oz. (one-fifth)</font></td></tr>
<tr>
<td width="375"><font size="2" face="Arial">20ml</font></td>
<td width="375"><font size="2" face="Arial">2/3oz.</font></td></tr>
<tr>
<td width="375"><font size="2" face="Arial">23L</font></td>
<td width="375"><font size="2" face="Arial">6 US Gallons</font></td></tr>
<tr>
<td width="375"><font size="2" face="Arial">25L</font></td>
<td width="375"><font size="2" face="Arial">6.5 US Gallons</font></td></tr></tbody></table><p></p>
<p><font size="2"></font>&nbsp;</p>
<p>
</p><table border="1" width="95%">
<tbody>
<tr>
<td width="750">
<p align="center"><font size="2" face="Arial"><b>Conversion table for<br>Sugar Weight listed on Prestige Turbo Yeasts</b></font></p></td></tr></tbody></table>
<table border="0" width="750">
<tbody>
<tr>
<td width="250"><b><font size="2" face="Arial">Metric</font></b></td>
<td width="250"><b><font size="2" face="Arial">Imperial Weight</font></b></td>
<td width="250"><b><font size="2" face="Arial">Imperial Volume</font></b></td></tr>
<tr>
<td width="250"><font size="2" face="Arial">6kg</font></td>
<td width="250"><font size="2" face="Arial">13.25 lbs.</font></td>
<td width="250"><font size="2" face="Arial">26.25 cups</font></td></tr>
<tr>
<td width="250"><font size="2" face="Arial">8kg</font></td>
<td width="250"><font size="2" face="Arial">17.75 lbs.</font></td>
<td width="250"><font size="2" face="Arial">35 cups</font></td></tr></tbody></table><p></p>
<p><font size="2"></font>&nbsp;</p>
<p>
</p><table border="1" width="95%">
<tbody>
<tr>
<td width="750">
<p align="center"><font size="2" face="Arial"><b>Conversion table for<br>Sugar weights listed on Prestige Essence bottles</b></font></p></td></tr></tbody></table>
<table border="0" width="750">
<tbody>
<tr>
<td width="167"><b><font size="2" face="Arial">Metric Weight</font></b></td>
<td width="167"><font size="2" face="Arial"><b>Metric Volume</b></font></td>
<td width="182"><b><font size="2" face="Arial">Imperial Weight</font></b></td>
<td width="233"><b><font size="2" face="Arial">Imperial Volume</font></b></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">25g</font></td>
<td width="167"><font size="2" face="Arial">28ml</font></td>
<td width="182"><font size="2" face="Arial">0.9oz</font></td>
<td width="233"><font size="2" face="Arial">2&nbsp;Tbsp</font></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">50g</font></td>
<td width="167"><font size="2" face="Arial">57ml</font></td>
<td width="182"><font size="2" face="Arial">1.75oz</font></td>
<td width="233"><font size="2" face="Arial">0.25&nbsp;cup</font></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">100g</font></td>
<td width="167"><font size="2" face="Arial">115ml</font></td>
<td width="182"><font size="2" face="Arial">3.5oz</font></td>
<td width="233"><font size="2" face="Arial">0.5 cup</font></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">150g</font></td>
<td width="167"><font size="2" face="Arial">170ml</font></td>
<td width="182"><font size="2" face="Arial">5.25oz</font></td>
<td width="233"><font size="2" face="Arial">0.7&nbsp;cup&nbsp; (2/3c&nbsp;+&nbsp;1 Tsp)</font></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">200g</font></td>
<td width="167"><font size="2" face="Arial">225ml</font></td>
<td width="182"><font size="2" face="Arial">7oz</font></td>
<td width="233"><font size="2" face="Arial">0.95 cup (1c - 2 Tsp)</font></td></tr>
<tr>
<td width="167"><font size="2" face="Arial">250g</font></td>
<td width="167"><font size="2" face="Arial">285ml</font></td>
<td width="182"><font size="2" face="Arial">8.75oz</font></td>
<td width="233"><font size="2" face="Arial">1.2 cup (1c + 3 Tbsp)</font></td></tr></tbody></table><p></p>		

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Component not working after upgrade to R8

Post by Brewhaus » Wed Oct 01, 2014 6:09 am

I use the built-in HTML Editor, pasted the code above and clicked Update. When I open the HTML Editor the form tags are gone.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Component not working after upgrade to R8

Post by mazhar » Wed Oct 01, 2014 6:16 am

Built in editor have a button saying "HTML" you will found it next to font icon. Use it and it will allow you to directly paste HTML. Hopefully it will make it work for you.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Component not working after upgrade to R8

Post by Brewhaus » Wed Oct 01, 2014 6:19 am

This is what I used. A window pops up where I paste the HTML, then click Update. I save the page, but if I open the editor back up and view the code, the form tags have been removed.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Component not working after upgrade to R8

Post by Brewhaus » Wed Oct 01, 2014 6:25 am

I tried entering the code into a ConLib file, and the calculators work, but there is a large gap and the body drops to below the left sidebar. You can see this at dev.brewhaus.com/Calculator2.aspx. How can we remove this gap? If we can do that then the calculators will probably work correctly.

Note: This gap appears to only show up in Internet Explorer. The Calculator2.aspx page appears to work correctly in Chrome and FireFox.
Last edited by Brewhaus on Wed Oct 01, 2014 6:28 am, edited 1 time in total.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Component not working after upgrade to R8

Post by mazhar » Wed Oct 01, 2014 6:25 am

It maybe because your HTML is not in correct format. For example first form element is inside table element which is not correct. It should be out of table element and finally it should close after closing the able.

Code: Select all

<table border="1" cellpadding="5">
<form name="Alcohol"></form>
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSSG"> Starting SG</td>
<td bgcolor="#99ccff"><input size="4" name="BHFSG"> Final SG</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
   Alcohol.BHA.value=(Math.round((Alcohol.BHSSG.value-Alcohol.BHFSG.value)*1250)/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHA"> %ABV </p></td></tr></tbody></table>
The correct html should be like this

Code: Select all

<form name="Alcohol">
<table border="1" cellpadding="5">
<tbody>
<tr>
<td bgcolor="#99ccff"><input size="4" name="BHSSG"> Starting SG</td>
<td bgcolor="#99ccff"><input size="4" name="BHFSG"> Final SG</td>
<td rowspan="2" bgcolor="#99ccff"><input onclick="
   Alcohol.BHA.value=(Math.round((Alcohol.BHSSG.value-Alcohol.BHFSG.value)*1250)/10)" value="Calculate" ;="" type="button"> 
<p>&nbsp;<input size="4" name="BHA"> %ABV </p></td></tr></tbody></table>
</form>

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Component not working after upgrade to R8

Post by Brewhaus » Wed Oct 01, 2014 6:36 am

Using the last code that you provided the calculator still does not function.

In dev.brewhaus.com/Calculator2.aspx the calculators function, but using IE the body of the page drops below the left sidebar. It displays and functions correctly in Chrome and FireFox.

I recall an issue like this before, where the body of the page dropped below the sidebar, but it is a long time ago. Do you know how to correct this?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Post Reply