Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] JS Q please help, !Strange....


  • From: javascript@xxxxxxxxxx (BEKIM BACAJ)
  • Subject: [Javascript] JS Q please help, !Strange....
  • Date: Fri, 28 Feb 2003 03:14:02 +0100

<html><div style='background-color:'><DIV>
<P><BR><BR></P>Same sh.t! </DIV>This will be sent as Rich-Text who knows, might work?! 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "BEKIM BACAJ" <TROJANI2000@xxxxxxxxxxx>
<DIV></DIV>&gt;Reply-To: javascript@xxxxxxxxxx 
<DIV></DIV>&gt;To: javascript@xxxxxxxxxx 
<DIV></DIV>&gt;Subject: Re: [Javascript] JS Q please help, !Strange.... 
<DIV></DIV>&gt;Date: Fri, 28 Feb 2003 03:07:34 +0100 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I never posted this mesage as a rich-text, why is it apearing rich? 
<DIV></DIV>&gt;-Could it been captured and re-sent from another server? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I vill try to post this answer once again as plain text in order, to 
<DIV></DIV>&gt;be wiewed as it is written for the guy whoe needs the script 
<DIV></DIV>
<P>&gt;function to be visible. </P>
<P>&nbsp;</P>
<P>The whole page:</P>
<DIV>&lt;html&gt;<BR>&lt;head&gt;</DIV>
<DIV>&lt;/head&gt;</DIV>
<DIV>&lt;body&gt;<BR>&nbsp;&lt;center&gt;<BR>&lt;form name="farmform"&gt;</DIV>
<DIV>&lt;input type="text" size="20" value="Cows"&gt;<BR>&lt;input type="text" size="4" value="77"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Sheep"&gt;<BR>&lt;input type="text" size="4" value="120"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Goats"&gt;<BR>&lt;input type="text" size="4" value="3"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Pigs"&gt;<BR>&lt;input type="text" size="4" value="3"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Horses"&gt;<BR>&lt;input type="text" size="4" value="3"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Mules"&gt;<BR>&lt;input type="text" size="4" value="17"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Chickens"&gt;<BR>&lt;input type="text" size="4" value="43"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Ducks"&gt;<BR>&lt;input type="text" size="4" value="120"&gt;&lt;p&gt;<BR>&lt;input type="text" size="20" value="Raptors"&gt;<BR>&lt;input type="text" size="4" value="7"&gt;&lt;p&gt;</DIV>
<DIV>&lt;/form&gt;<BR>&lt;Button onClick="farmcount()"&gt;GO&lt;/button&gt;<BR>&nbsp;&lt;/center&gt;</DIV>
<DIV>&lt;SCRIPT LANGUAGE=JavaScript&gt;</DIV>
<DIV>&nbsp;var s=farmform.length;//if you put button inside the Form, write s=farmform.length-1<BR>&nbsp;var fn=new Array();</DIV>
<DIV>function farmcount(){</DIV>
<DIV>&nbsp; for(i=0; i&lt;s; i++) {</DIV>
<DIV>&nbsp;&nbsp; fn[i]=' '+farmform.elements[i].value;<BR>&nbsp;}<BR>&nbsp;document.write(document.body.innerHTML +"&lt;b&gt;&lt;CENTER&gt;"+fn+".&lt;/CENTER&gt;&lt;/b&gt;");<BR>&nbsp;}</DIV>
<DIV>&lt;/SCRIPT&gt;</DIV>
<DIV>&lt;/body&gt;<BR>&lt;/html&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></div><br clear=all><hr>  </html>