ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 9th, 2000, 01:49 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Uppercase

<i><b>Originally posted by : Dag Henni (dag.henni@ifs.no)</b></i><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

Reply With Quote
  #2  
Old February 16th, 2000, 12:37 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Uppercase


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT