Re: [jQuery] Duplicating a row...

2006-12-22 Thread Andreas Wahlin
Not to tote my own horn to much, but I have something very simmilar working in prototype, and I'll refactor it into jQuery sometime soon after new year. The difference being that each cloned line will get a remove button as well. Here's the current code, if you speak prototype Andreas var A

Re: [jQuery] Duplicating a row...

2006-12-22 Thread andy
Quoting Dave Methvin <[EMAIL PROTECTED]>: Actually...I do believe that I have a pie recipe...only two of them though http://www.co-opcookbook.com/ Search for "Double Good Blueberry Pie" and "Key Lime Pie" andy > > I'm working with various jQ methods but I can't > > seem to get this working. >

Re: [jQuery] Duplicating a row...

2006-12-21 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Subject: Re: [jQuery] Duplicating a row... [EMAIL PROTECTED] schrieb: > Interesting...VERY interesting. > > Don't forget to look at the approach posted by "Olsow" in the comments: http://m

Re: [jQuery] Duplicating a row...

2006-12-21 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: > Interesting...VERY interesting. > > Don't forget to look at the approach posted by "Olsow" in the comments: http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype#comment-176 -- Jörn Zaefferer http://bassistance.de __

Re: [jQuery] Duplicating a row...

2006-12-21 Thread andy
Quoting Brian Miller <[EMAIL PROTECTED]>: Interesting...VERY interesting. > This strikes me as a task where creating new elements may be less > gremlin-prone than cloning. > > Michael Geary's "Easy DOM Creation" plugin might make it easier to write a > function that creates the appropriate DOM t

Re: [jQuery] Duplicating a row...

2006-12-21 Thread Brian Miller
This strikes me as a task where creating new elements may be less gremlin-prone than cloning. Michael Geary's "Easy DOM Creation" plugin might make it easier to write a function that creates the appropriate DOM tree branch. http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype - Bri

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Olaf Bosch
[EMAIL PROTECTED] schrieb: > As you two requested...sorry I didn't do it sooner: > > http://www.commadelimited.com/uploads/bug/ > > You'll see the rudimentary beginnings of my code. remove the class befor duplicat :) $('#ingList .ingredient').clone().removeClass("ingredient").appendTo('#ingLi

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Blair McKenzie
$(document).ready( function(){ var clickAdd; clickAdd = function() { // In your code you will end up cloning every item in the list // This snipet finds the list item that this button is in $(this).parents("li.ingredient") // You had :last-child here but really there sh

Re: [jQuery] Duplicating a row...

2006-12-20 Thread andy
Quoting Blair McKenzie <[EMAIL PROTECTED]>: As you two requested...sorry I didn't do it sooner: http://www.commadelimited.com/uploads/bug/ You'll see the rudimentary beginnings of my code. > This is the sort of situation where a demo page would really help. Can you > put any of this on a public

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Dave Methvin
> I'm working with various jQ methods but I can't > seem to get this working. > Does anyone have input on this? Do you have pie recipies? I like pie. :) A demo page might help. The outline you give looks okay, as long as you reattach the events to the cloned elements. I seem to remember there ar

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Blair McKenzie
This is the sort of situation where a demo page would really help. Can you put any of this on a public server? Blair On 12/21/06, Andy Matthews <[EMAIL PROTECTED]> wrote: I'm working with recipes and I want to use some jQuery goodness to clone a DOM construct that will contain a few form field

[jQuery] Duplicating a row...

2006-12-20 Thread Andy Matthews
I'm working with recipes and I want to use some jQuery goodness to clone a DOM construct that will contain a few form fields so that adding ingredients is easy, and fun. I thought that it would be pretty easy to code but it's giving me some trouble and I wanted to see if you guys could help me out.