
February 16th, 2000, 01:37 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
<i><b>Originally posted by : Mike B (mikeb811@hotmail.com)</b></i><br />Dag,<br /><br />The code below should be able to help you. Note that the element names such as f1 and f2 ARE case sensitive in javascript.<br /><br />Just cut and paste into your own document and browse it ..<br /><br /><html><br /><head><br /><script language=javascript><br />function fixform()<br />{<br />document.all.f1.value=document.all.f1.value.toUppe rCase();<br />document.all.f2.value=document.all.f2.value.toUppe rCase();<br />//document.form1.action="{ASP script name goes here}"<br />//document.form1.submit();<br />// to add a *<br />document.all.f1.value+="*"<br />document.all.f2.value="*"+document.all.f2.value+"**"<br />}<br /><br /></script><br /></head><br /><body><br /><!-- all of the page content after the header goes after here --> <br /><form name=form1 method=post><br />F1 : <input type=text id=f1 value=abc><br><br />F2 : <input type=text id=f2 value=def><br /><input type=button value="Upper Case"onclick="fixform();"><br /></form><br /><!-- END of the page content is here --> <br /></body><br /></html><br /><br />Hope this helps you out.<br /><br />Mike<br /><br /><br />------------<br />Dag Henni at 2/9/2000 11:49:37 AM<br /><br />Hello,<br /><br />I haven't done very mush ASP or JavaScript programming, and need some help!<br /><br />I've made a HTML form with two text input boxes named F1 and F2.<br /> <br />I want to manipulate the strings a little:<br />(before sending them to an ASP search page)<br />*** Convert to Upper case<br />*** Add an asterix after the end of the string<br /> <br />How can I do this without hassle?<br /><br />Thanx for any help.<br />Dag Henni
|