08-16-2004, 11:53 AM | #16 |
Enthusiast
Posts: 47
Karma: 27
Join Date: Jul 2003
Location: France
Device: al
|
No, you don't. Moreover, the Mobipocket Publisher will disappear, replaced by the Creator in few months.
|
09-09-2004, 11:11 AM | #17 | |
Member
Posts: 17
Karma: 10
Join Date: May 2004
Device: palm Tungsten E
|
Quote:
Code:
String.Substring Code:
String.length |
|
09-10-2004, 06:02 AM | #18 | |
Enthusiast
Posts: 47
Karma: 27
Join Date: Jul 2003
Location: France
Device: al
|
The String object is fully supported.
Quote:
|
|
10-16-2005, 02:10 PM | #19 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2005
Device: qtek s100
|
With this code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Beräkna vv-points</title> <script language="javascript"> <!-- function iPoints(){ var f = document.vvp; f.points.value = Math.round((f.volym.value/100)*(f.kcal.value/60 + f.fett.value/9)*10)/10; } //-> </script> </head> <body> <h2><strong>Omvandla till points</strong></h2> <form id="form1" name="vvp" method="post" action=""> <table width="394" border="0"> <tr> <td width="145">Konsumerad Mängd</td> <td width="239"><input name="volym" type="text" id="volym" value="100" size="6" maxlength="3" /> gram</td> </tr> <tr> <td>Energi</td> <td><input name="kcal" type="text" id="kcal" size="6" maxlength="4" /> kcal/100g</td> </tr> <tr> <td>Fett</td> <td><input name="fett" type="text" id="fett" size="6" maxlength="3" /> gram/100g</td> </tr> <tr> <td> </td> <td><input name="knp" type="button" id="knp" onClick="iPoints( );" value="ge points" /></td> </tr> <tr> <td>Summa points </td> <td><input name="points" type="text" id="points" size="6" maxlength="5" /></td> </tr> </table> </form> </body> </html> Quote:
Last edited by ptr_lks; 10-16-2005 at 03:59 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what's the big deal about formats? -- a little calculation | sic | Sony Reader | 4 | 11-25-2006 03:10 PM |