[SOLVED] Creating character and line limits for a form?

This is a discussion on "[SOLVED] Creating character and line limits for a form?" within the JavaScript Forum section. This forum, and the thread "[SOLVED] Creating character and line limits for a form? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 7th, 2008, 14:10
Junior Member
Join Date: Jan 2007
Location: UK
Age: 23
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Creating character and line limits for a form?

Hi there!

Having been given an already HTML coded form, I've been asked to apply some JAVA to the various text fields in order to create character limits as at the end of the field, the text over laps the box or starts scrolling which isn't required.

As a newcomer to JAVA I'm looking for some good resource sites that offer the script for use as in my current programming skills doesn't hold any JAVA capabilities.

I also have a couple of questions with regards to the form I'm programming:

1. Can line limits be set (ie how many lines are used) or is it usually just a character limit?

2. If I set a character limit, would there always be a counter? If so, would it be possible to set it so that there is no counter visible?

Hope people can help and I'll be extremely grateful to those that offer their advice.


Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 7th, 2008, 22:45
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Creating character and line limits for a form?

Quote:
Originally Posted by Inkers View Post
As a newcomer to JAVA I'm looking for some good resource sites that offer the script for use as in my current programming skills doesn't hold any JAVA capabilities.
There's a big difference between java and javascript.
Which are you using?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 8th, 2008, 01:34
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Creating character and line limits for a form?

I use this one (Javascript): Javascript Text Counter
but the real time counter only worked in IE not FF.

This version works in both: Form field Limiter
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 8th, 2008, 10:05
Junior Member
Join Date: Jan 2007
Location: UK
Age: 23
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating character and line limits for a form?

Quote:
Originally Posted by alexgeek View Post
There's a big difference between java and javascript.
Which are you using?

... one's coffee and one's code? :P No seriously, I didn't realise there was a difference. It's javascript I'm looking to use I assume. Or whichever is best for creating the limits I'm looking to set.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 8th, 2008, 10:07
Junior Member
Join Date: Jan 2007
Location: UK
Age: 23
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating character and line limits for a form?

Quote:
Originally Posted by Monie View Post
I use this one (Javascript): Javascript Text Counter
but the real time counter only worked in IE not FF.

This version works in both: Form field Limiter

Do they all have counters? Ideally because there's so many fields and many of them are single bars, I'm not really looking to have counters on all of them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 8th, 2008, 17:52
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Creating character and line limits for a form?

Post your HTML for us?
There could be a simpler solution..
By the way you must know that the validation in the forms can be disabled easily so you have to check server-side i.e the scrip that the data gets sent to.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 9th, 2008, 10:54
Junior Member
Join Date: Jan 2007
Location: UK
Age: 23
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating character and line limits for a form?

Ooo it looks like we've fixed it.

Thanks all and sorry for wasting any of your time >.<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 9th, 2008, 12:35
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating character and line limits for a form?

You're not wasting our time. It's what we're here for.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 11th, 2008, 02:10
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: [SOLVED] Creating character and line limits for a form?

Mind sharing us the "solution"

Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[solved] I want to insert a line break minute44 PHP Forum 4 Feb 20th, 2008 12:52
[SOLVED] Please help with creating a Mailing list form. Oak Starting Out 3 Dec 26th, 2007 18:54
[SOLVED] Are there limits on the amount of data that can be posted via an ASP Form? Phil Classic ASP 5 Oct 26th, 2007 08:43
Help creating a Multi line order form wacara Classic ASP 0 Apr 23rd, 2007 18:25
Creating a character name Throntel Flash & Multimedia Forum 2 Dec 3rd, 2006 00:09


All times are GMT. The time now is 01:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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