Thanks for the reply. I am new to Prototype/Scriptaculous. I think you mean to say something like this - There will not be any target ids and if the event is in x position I need to get the target id equals (or nearer) to that x position. I think it is depends upon the browser. Am I correct ?
On Apr 17, 8:16 pm, Peter De Berdt <[EMAIL PROTECTED]> wrote: > On 17 Apr 2007, at 17:02, [EMAIL PROTECTED] wrote: > > > > > The ondrop event can be assigned only to droppable element. So I can > > not remove > > all droppable elements from the page load. Because of this , I have > > added one more > > div and that will include all droppables and draggables. And I removed > > the initialization > > of all droppables except the parent one. And ondrop of an event, I > > tried to get the target > > element. But it is not showing the exact div id where it is placed. It > > is showing the > > parent div id. If I specify the all div as droppables, then only I am > > getting the correct > > target id. > > > Peter, > > How can I get the target id , if I apply image as background ? > > You use Prototype's Position and a bit of math to determine the drop > zone, there is no target id as such. I'm simplifying things here, but > that's the gist of it. If you don't feel very very comfortable with > Javascript, don't even try it, sorry to be so blunt. > You need to either build up some experience with both Javascript and > Prototype/Scriptaculous or outsource it (and it's not going to be > cheap, no matter who you put on it). > > Best regards > > Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
