Hi Jean, I got the following information from Dan Switzer, it might help you. I plan to give his suggestions a try later on after work. Every bit of knowledge helps.
"Since you're replacing the DOM, the first thing you should do before you upgrade the DOM is probably remove the Drag/Drop zones using the Destroy methods: DroppableDestroy() and DraggableDestroy(). This step may not be necessary, but I'd imagine you'll run into memory leaks if you don't do it. To "reinitialize", just re-run the original Draggable() and Droppable() code. You should move this code outside of the $(document).ready() function into a custom function. Then you can run that function inside the ready() function and also call it after you've replaced the contents of the DOM. When you wipe the DOM, all the code that was originally initialized by Draggable/Droppable is lost." On Jun 5, 4:16 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote: > i think all ajax calls kill drag, i have troubles with that and a > friend mine too > > On 6/4/07, dennis <[EMAIL PROTECTED]> wrote: > > > > > > > I have Interface 1.2 Drag/Drop working. I can drag images (hardcoded) > > from div id=theSearchResultImages to my dropable area just fine. > > > But when I try to add my ajax 'Search Photos By Tags' form which > > populates images into div id=theSearchResultImages, I can no longer > > drag and drop the images. Here's my form and ajax call: > > > <form action="/jsrpc/search_photos_by_tags" name="searchAlbumPhotos" > > id="searchAlbumPhotos" > > onsubmit='$.ajax({url: "/jsrpc/search_album_photos_by_tags", > > data: $(this.elements).serialize(), > > success: function(response){$ > > ("#theSearchResultImages").html(response);}, > > dataType: "html"}); > > return false;' method="POST" /> > > <input type="text" name="tagname" value="" /> > > <input type="submit" name="submit" id="submit" value="+" /> > > </form> > > > Help will be greatly appreciated. > > > /dennis > > -- > > []´s Jeanwww.suissa.info > > Ethereal Agencywww.etherealagency.com