[jQuery] Re: Plugin to let the user draw rectangles

2009-12-29 Thread Thai
Hi Richard, Could you explain a little bit about these lines (esp. the appendTo and distance) $.extend($.ui.boxer, { defaults: $.extend({}, $.ui.mouse.defaults, { appendTo: 'body', distance: 0 }) }); I put the code to my page and the after I

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-28 Thread Richard D. Worth
In this function: // Using the boxer plugin $('#canvas').boxer({ stop: function(event, ui) { ... add ui.box.attr('id', 'whatever-id-you-want'); - Richard On Thu, Aug 27, 2009 at 4:41 PM, juanefren juanef...@gmail.com wrote: Does boxes have an ID property ? If not, how could I add one?

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-27 Thread juanefren
Does boxes have an ID property ? If not, how could I add one? (this way I can identify them) thanks :) On Aug 21, 2:08 pm, Richard D. Worth rdwo...@gmail.com wrote: Here's a slightly improved version. Thanks @cioa http://twitter.com/cioa demo:http://jsbin.com/azare

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-23 Thread juanefren
Thank you very much, this is far better than my buggy version (http:// sistemasideales.com/jsr/prueba.html). On Aug 21, 2:08 pm, Richard D. Worth rdwo...@gmail.com wrote: Here's a slightly improved version. Thanks @cioa http://twitter.com/cioa demo:http://jsbin.com/azare

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-21 Thread Richard D. Worth
Here's a slightly improved version. Thanks @cioa http://twitter.com/cioa demo: http://jsbin.com/azare code: http://jsbin.com/azare/edit - Richard On Fri, Aug 21, 2009 at 3:59 PM, Richard D. Worth rdwo...@gmail.com wrote: Here's how you can do that with a quick plugin built on top of ui.mouse,

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-21 Thread Richard D. Worth
Here's how you can do that with a quick plugin built on top of ui.mouse, which is part of jQuery UI core: http://jsbin.com/aqowa This is based on the jQuery UI Selectablehttp://jqueryui.com/demos/selectable/ interaction plugin, which draws a rectangle lasso as you drag to select elements. -

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-21 Thread Jack Killpatrick
That's realy cool, Richard. Thanks for sharing it. :-) - Jack Richard D. Worth wrote: Here's a slightly improved version. Thanks @cioa http://twitter.com/cioa demo: http://jsbin.com/azare code: http://jsbin.com/azare/edit - Richard On Fri, Aug 21, 2009 at 3:59 PM, Richard D. Worth