Hi,
   I had faced this problem before. I think there is no option in
jquery-ui like live method in jquery. So, this is the reason why i
write again draggable events, once i get the success data. I don't
think this is not a best solutions for this. But, it works for me. May
be i think it would help u.

Regards
sure

On Mar 12, 9:26 pm, Alex <[email protected]> wrote:
> I basically have an image importer setup that loads in a draggable
> thumb from a form entered link, i am using ajax to refresh the ul
> which contains the draggable thumbs on submit. All works perfectly
> apart from when the div reloads with the new image thumb added to the
> li, draggable breaks completely and i can't drag anything
>
> here's my ajax :
>
>         $.ajax({
>                         type: "post",
>                         url: "paste_url.php",
>                         data: dataString,
>                         success: function(){
>                                $('#gallery ul.thumbs').load('upload.php 
> #gallery
> ul.thumbs');
>                         }
>                 });
>
> and the div in question:
>
>         <div id="gallery">
>
>                 <ul class="thumbs">
>
>                         <?php
>
>                                 ///////image thumbs///////
>                                 while ($row = mysql_fetch_assoc($urls)) {
>
>                                 $imgSrc = $row['url'];
>
>                                 echo("<li class='draggable thumb ui-state-
> highlight'><img src='$imgSrc' alt='thumb'></li>");
>
>                         }
>
>                         ?>
>
>                 </ul>
>
>         </div>
>
> any help would be much appreciated, thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to