• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JQuery plugin sheepit: how does it work ?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys,

Am trying to build up a simple form cloning app.
Came across, http://jsfiddle.net/Sk8erPeter/33n9Y/

Theres no javascript visible in the <script> except the $(document).ready().

I dont understand how are the event handling working on Delete, Add Phone, Remove, Remove all.

Can someone put some light on how this is functioning & how the following works ?
<input id="person_phones_#index#_phone" name="person[phones][#index#][phone]" type="text" size="15" maxlength="10" />

will #index# get replaced ?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "sheep it" plugin is not included in the fiddle; it's included as an external resource.
 
Kumara SharmaS
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The "sheep it" plugin is not included in the fiddle; it's included as an external resource.



Ya. I've inspected few elements Add phone, Save, they're just in <span> tags w/o any behavior attached.
I want to collate all the multiple form fields, form a JSON/XML and write it to a file on Save action.
If the source is in the external resource, how can I accomplish this ?

Is there any other way/framework I could do this(have a multi-form with the same template) ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic