look at your code, you are calling draggable() before you append the divs to
body, before they exist...

On Fri, Dec 11, 2009 at 7:03 AM, Klaus <dott.pero...@gmail.com> wrote:

> I'm trying to use jQuery UI in a greasemonkey script, writing
> something like:
> ....
> // @require
> http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
> // @require
> http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js
> .......
>
> $(function(){
>                $("<style type='text/css'>.drg_style
> {margin:5px;padding:10px;width:
> 250px;height:25px;background:green}</style>").appendTo("body");
>                $(".drg_style").draggable();
>                $("<div><div class='drg_style'>Div1</div><div
> class='drg_style'>Div2</div></div>").appendTo("body");
>        });
>
> I would like the 2 green div appearing at the bottom of the page to be
> draggable, but that doesen't happen: I see two green fixed rectangles
> at the end of the page. Is there a reason for this? How can I fix it?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to jquery...@googlegroups.com.
> To unsubscribe from this group, send email to
> jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to