Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [Javascript] addin <input fields> via visibility or similar?


  • From: borchers at tridem.de (Michael Borchers)
  • Subject: AW: [Javascript] addin <input fields> via visibility or similar?
  • Date: Fri Sep 23 08:22:31 2005

>
-----Urspr?ngliche Nachricht-----
Von: javascript-bounces@xxxxxxxxxx
[mailto:javascript-bounces@xxxxxxxxxx]Im Auftrag von Mike Dougherty
Gesendet: Samstag, 10. September 2005 00:49
An: [JavaScript List]
Betreff: Re: [Javascript] addin <input fields> via visibility or
similar?


This should be doable on-the-fly with DOM insertions.  If you had a hidden template, you could 
clone a whole row and insert it in only a few lines of code.  It gets trickier if you want each 
object to have it's own id/name - but at that point, you could probably just write a wrapper 
function to which you pass an index.  google: createElement() - and post again if you need more 
help.
<

beautiful, this works so far.
the name for the inputs will be something like
products_id[X][products_price]

how can i count how many rows (X) there are already?