On Apr 28, 8:41 am, Menon <[email protected]> wrote:
> Hi,
>
> I am trying to implement Scriptacolus Drag&Drop for my asp.net/c#
> application. I am trying to put drag and drop for some of the
> components (divs - containing images fetched from the DB) those are
> created run time on the server side. If I place the controls on the
> client side and put the Scriptacolus Drag&Drop code there, everything
> works fine. To make it working on the server side, I registered the
> scripts and got the draggables working. But no luck with droppables!
> Am I missing something here with drappables?
>
> Any help would be much appreciated.
>
It's very unclear to me what you mean by 'on the server side', since
drag and drop necessarily runs on the browser, and therefore on the
client side.

Do you mean that you are downloading the Droppable code as part of you
HTML page, but it's not working? In that case I suggest that it is
being run before the elements which are to be made droppable have been
created in the DOM. Check out the idiom

document.observe('dom:loaded'. function () { ...
see [1]

Or do you mean that you want somethign to happen server-side when the
user drops something? Then you need to read up on Ajax.

Or do you mean something else I haven't understood?

Colin Fine


[1] http://www.prototypejs.org/api/document/observe


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to