Results 1 to 7 of 7

Thread: Form field Limiter Script

  1. #1
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form field Limiter Script

    1) Script Title: Form field Limiter

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...limitinput.htm

    3) Describe problem: Firstly can I say this is a neat little script and works well. However if you use the right mouse click to paste content into the textfield all the content is pasted and no reduction is made unless you actively click in the field and press return or add another character. So obviously if someone just right click pastes into the filed all the content is accepted and no limit is applied.

  2. #2
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Update on this bug. This is also the case when you use Edit Paste from the browser menu not just the right click. The only time it works is if you use ctrl V to paste. A solution would be appreciated.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes. There's no (non-resource-hungry) way around this currently, of which I'm aware anyway. There is a resource-hungry one, though, which I'll implement for you when I get back in a few hours.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Twey

    Did you have any luck with a resource hungry version of this?

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Oh! I forgot about this, I'm sorry. I'm very absent-minded, please post back if I've said I'd do something or I might forget I've updated the version on my site. The new version has an extra function, enablePolling(). If you call this, polling will be enabled. You can also pass it two optional arguments specifying the interval for at which it should poll, when a key is and is not pressed, respectively. Increase these numbers to increase performance, decrease to increase responsiveness. Default is 30, 50.
    Last edited by Twey; 06-01-2007 at 02:41 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Feb 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I too would like this revised script. I load form fields from a saved cookie and the message does not reflect the field's contents until you start typing.

    David

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Attached -- I thought DD had hosted it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •