SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prototype / in-place-editing

    I am using Prototype / script.aculo.us and I would like to submit the form when someone clicks outside the textarea, meaning you don't have to hit the submit button. I think something like this is more convenient for editing small things like tags, but I don't know how to get this to work. Is there anyone here who has done something like this before and could tell me how to do it?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The event fired when you click outside a textarea or input you were previously editing is onBlur().

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I knew how to integrate that I wouldn't have said "but I don't know how to get this to work".

  4. #4
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try adding an event to the textarea:
    onblur="formname.submit()"

    or

    onblur="document.formname.submit()"


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
  •