Need help with sheepIt plugin & data injection into textarea

Discussion in 'jQuery' started by warpus, Nov 7, 2012.

  1. #1
    Hey Guys,


    I'm using jquery 1.8.2 & sheepIt 1.0.1


    I have a working page set up which uses data: [{ ... }] to inject data (using the constructor) into a series of cloned text fields. This code (obviously) runs in $(document).ready(function){ ... }


    When I convert these text fields into textareas, everything works, except the data injection part. There are no javascript errors - but the textareas do not populate with data at all. You are still able to clone the textareas and submit the form, and all of that works fine, but it just won't populate with data.


    I tried upgrading sheepIt to 1.1.1, but that gives me a strange TypeError: aA is undefined error


    I'm at a loss. I have started going through the sheepIt.js file, and it does appear to have support for textareas. Can anyone let me know if this is a sheepIt limitation or if something else could be at play here?


    I'm just.. stuck. If this is a sheepIt limitation then I want to know because.. then I can move on.


    Thanks in advance to anyone who can help
     
    warpus, Nov 7, 2012 IP
  2. warpus

    warpus Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have figured out a solution to this problem, for anyone who might at some point run into the same issue.


    Adding type="text" to my textarea tags fixes the issue.


    This is weird and unexpected, as type is not a valid textarea attribute.. but whatever, I'm happy enough that I figured this out.
     
    warpus, Nov 7, 2012 IP