[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 11-29-2004, 12:22 PM   #1 (permalink)
New Member
 
Join Date: Aug 2004
Location: brighton, uk
Posts: 18
34.00 NP$ (Donate)

lomokev is an unknown quantity at this point


charicter count in text field javascript

can anybody point me in the right direction of a script that will check the amount of characters in a form field field as the user types in it and as soon as there reach a certon amount an alert will pop telling them they have typed to much?
lomokev is offline  
Old 11-29-2004, 06:20 PM   #2 (permalink)
NamePros Regular
 
CreativeLogic's Avatar
 
Join Date: Sep 2003
Posts: 894
138.00 NP$ (Donate)

CreativeLogic has a spectacular aura aboutCreativeLogic has a spectacular aura about


http://javascript.internet.com/forms/word-counter.html
__________________
Online Time Tracking :)
CreativeLogic is offline  
Old 11-30-2004, 07:06 PM   #3 (permalink)
NamePros Regular
 
Nunim's Avatar
 
Join Date: Oct 2004
Location: Florida
Posts: 385
6.20 NP$ (Donate)

Nunim is an unknown quantity at this point


Kinda off topic but I know you can also do this in PHP.
Nunim is offline  
Old 11-30-2004, 11:21 PM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
to do it in php the form would have to be submitted first javascript can do a check on the client side first. By all means tho it is best practice to check server side as well to ensure the client hasnt bypassed checks ie by turning javascript off.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 10:04 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85