Results 1 to 3 of 3

Thread: Form Field Limiter w/ 2 text areas

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form Field Limiter w/ 2 text areas

    Script: DD Form Field Limiter
    http://www.dynamicdrive.com/dynamici...limitinput.htm

    I am interested in getting the script to count two inputs or text areas using one limit. I have tried even hardcoding the input names into the script, but am a newb when it comes to javascript.

    Can anyone point me towards what areas I would need to modify? I have been looking into the countlimit function but my biggest problem is that i don't fully understand javascript syntax. For instance, the first line in displaylimit is this
    var theform=theid!=""? document.getElementById(theid) : thename
    If anyone could translate that into pseudocode I'd sure appreciate it.

    Thanks

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

    Default

    Is theid not blank? If so, set the new local variable theform to the element with an id of theid; otherwise, set it to the content of thename.
    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!

  3. #3
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ah ok thanks twey

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
  •