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? (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
> >
> > 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,
> > > which is part of jQuery UI core:
> > >http://jsbin.com/aqowa
> >
> > > This is based on the jQuery UI Selectable<
> http://jqueryui.com/demos/selectable/> interaction
> > > plugin, which draws a rectangle lasso as you drag to select elements.
> >
> > > - Richard
> >
> > > On Fri, Aug 21, 2009 at 3:00 PM, juanefren <juanef...@gmail.com>
> wrote:
> >
> > >> Is there any plugin to let the user draw rectangles (probabbly with
> > >> mouse clicks or key-arrows) and store the coordinates in a hidden
> > >> variable ?
>

Reply via email to