Advertisement

Drag & Drop - need for cloned nodes to have different ID

Moderators: Calcifer, slothy

Drag & Drop - need for cloned nodes to have different ID

Postby lostmarble » Thu Sep 16, 2010 7:20 pm

I am using the Drag & Drop to columns script and LOVE it... makes for a very impressive application. BUT I have a problem that I can't seem to figure out. I want to run a PHP script using Ajax when I copy a node from the source column to the boxes that does some tests and then changes the color of the cloned node depending on the result of the php script. I can't seem to make this work because the cloned node has the same ID as the original node. Everything I find when I google "mulitple elements with same id" says that you can't have multiple elements with the same ID and that javascript will only find the first one in the DOM.

I was going to try to modify the code to append a letter onto the cloned node's ID, but it appears that the id's are compared to see if a node has already been cloned and changing the id would mess that up.

Any suggestions???

Thank you!!
Anita
lostmarble
 
Posts: 2
Joined: Thu Sep 16, 2010 7:11 pm

Re: Drag & Drop - need for cloned nodes to have different ID

Postby lostmarble » Fri Sep 24, 2010 2:22 pm

Still haven't figured this out... anybody??
lostmarble
 
Posts: 2
Joined: Thu Sep 16, 2010 7:11 pm


Return to Drag and drop scripts

Who is online

Users browsing this forum: No registered users and 5 guests

cron