There are several places where this question applies in my project,
but this is the first I've hit it and its a clear illustration.

I have ui.tab content loaded by ajax

I have elements in that content I want to be draggable

What is the best way to make this content .draggable() ?

if I have other non-ajax-loaded content that is already made draggable
- is it OK to call .draggable() on an element more than once?

if so, then I could have a script tag at the end of the ajax content
that calls $('selector').draggable (opts)

The other idea I had was to live bind a function to the mouseover
event to make an element draggable on that event, but seems sort of
hackish.

So what is the best pattern for calling jquery init style code on
content loaded by ajax?

-Preston

--

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