dojo.event.connect and dojo.lfx.rounded incompatibility

View: New views
2 Messages — Rating Filter:   Alert me  

dojo.event.connect and dojo.lfx.rounded incompatibility

by Diego Chagastelles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

this.novoItem = dojo.byId("novoMuralItemBtn");
    dojo.event.connect(this.novoItem,"onclick",this,"novoItemForm");      

dojo.lfx.rounded({antiAlias: false,
            tl:{radius:3},tr:{radius:3},br:{radius:6},bl:{radius:6}},["panel"]);                
}
        
   

The element connected with 'dojo.event.connect' is inside 'panel' (which is the rounded element). When I do this, the event appears to be disconnected after the round function. Why is that happening? To make it work, I have to round first and then connect events, but some times I just can´t do that.

_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Re: dojo.event.connect and dojo.lfx.rounded incompatibility

by Tom Trenka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rounded uses innerHTML to pop contents out of your original markup and into the rounded markup.  Probably the best thing to do would be to reverse the order of calls.

trt

Diego Chagastelles wrote:
>
> this.novoItem = dojo.byId("novoMuralItemBtn");
>     dojo.event.connect(this.novoItem,"onclick",this,"novoItemForm");
>
>
> dojo.lfx.rounded({antiAlias: false,
>
>  tl:{radius:3},tr:{radius:3},br:{radius:6},bl:{radius:6}},["panel"]);
>
> }
>



The element connected with 'dojo.event.connect' is inside 'panel' (which is
the rounded element). When I do this, the event appears to be disconnected
after the round function. Why is that happening? To make it work, I have to
round first and then connect events, but some times I just can´t do that.

_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest