HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 March 12th, 2008, 04:54 PM
kolucoms6 kolucoms6 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 214 kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 5 m 21 sec
Reputation Power: 3
JavaScript - Lostfocus

On lostfocus of a Textbox, I want to displaya Label which will display and show 1% of the value entered in the text box and if the value in TextBox is Invalid then Error.

Kindly guide me

Reply With Quote
  #2  
Old March 12th, 2008, 08:08 PM
kaspar kaspar is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Amsterdam, The Netherlands
Posts: 44 kaspar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 3 sec
Reputation Power: 5
What do you mean by 1% of the value?

For example, when entered value is "ABCDEFGHIJ" (10 characters) you only want to display "A" (1% of the 10, right?)

Reply With Quote
  #3  
Old March 12th, 2008, 11:39 PM
kolucoms6 kolucoms6 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 214 kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 5 m 21 sec
Reputation Power: 3
If anyone enters 10000, it will display 100.

Reply With Quote
  #4  
Old March 13th, 2008, 04:45 PM
kolucoms6 kolucoms6 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 214 kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 5 m 21 sec
Reputation Power: 3
Any Help ?

Reply With Quote
  #5  
Old March 14th, 2008, 02:16 PM
kolucoms6 kolucoms6 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 214 kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level)kolucoms6 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 5 m 21 sec
Reputation Power: 3
Looks difficult ?

Reply With Quote
  #6  
Old June 27th, 2008, 08:00 AM
new learner new learner is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: India
Posts: 70 new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 5 h 10 m 27 sec
Reputation Power: 104
Quote:
Originally Posted by kolucoms6
Looks difficult ?


Hi,
Don't know whether u r still looking for this.
Found this in some forum (something like dotnetspider) while browsing 4 my problem.
Technically am not competent to comment on the code.
Perhaps it might be useful to u in case u r looking 4 same.

Code:
<script type="text/javascript">
function first()
{
document.getElementById('TextBox2').value = 2 * document.getElementById'TextBox1').value;
}
</script>

<body>
<asp:TextBox id="TextBox1" onblur="first()" runat="server"></asp:TextBox>
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>
</body>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > JavaScript - Lostfocus


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 3 hosted by Hostway
Stay green...Green IT