action to dijit.layout.ContentPane

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

action to dijit.layout.ContentPane

by Yuan Yudistira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

Can anyone give me a help of how to add an action to ContentPane,
when people click on the title of content panel

I try to use
<div dojoType="dijit.layout.ContentPane"  title="title 1" onClick="alert('OK1');">
<div dojoType="dijit.layout.ContentPane"  title="title 2" onClick="alert('OK2');">

But the above code only alert when I click inside the body of the pane,
not immidiately when I click the tab/pane,

For example I am on pane1, and click pane2, I want an alert "OK2"


Thanks

YUAN

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: action to dijit.layout.ContentPane

by G. Sharon Yang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I actually have the same question now, wonder if anyone knows the
answer. Thanks.

On Thu, Apr 10, 2008 at 7:48 AM, Yuan Yudistira<sabukhitam@...> wrote:

> Dear all,
>
> Can anyone give me a help of how to add an action to ContentPane,
> when people click on the title of content panel
>
> I try to use
> <div dojoType="dijit.layout.ContentPane"  title="title 1"
> onClick="alert('OK1');">
> <div dojoType="dijit.layout.ContentPane"  title="title 2"
> onClick="alert('OK2');">
>
> But the above code only alert when I click inside the body of the pane,
> not immidiately when I click the tab/pane,
>
> For example I am on pane1, and click pane2, I want an alert "OK2"
>
>
> Thanks
>
> YUAN
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest@...
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: action to dijit.layout.ContentPane

by Karl Tiedt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ContentPanes do not have tabs/titles.... can you provide more relevant details so we can better understand what you are working with?

-Karl Tiedt


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest