dojo onchange event

58 views
Skip to first unread message

raha

unread,
Jul 9, 2007, 2:41:17 AM7/9/07
to Django developers
Hi.
I have a dojo checkbox. I made it dynamically.
But on change event didn't work correctly.
my code is :
check=(ctrl['value']==true ? "checked=''" : "");
def="<div class='checkbox' dir='rtl' id='"+widgetId+'div'+"'><input
widgetId='"+widgetId+"' name='"+
ctrl.name+"' dojoType='CheckBox' "+check+"
tabindex='"+tabindex+"'/><label>"+ctrl.text+"</label></div>";
I have a dojo floating pane and I finally do this:
this.panel.setContent(def);

and I call my onchange function with this:
dojo.event.connect(div, 'onchange', this,'changeTBState');
Is there any body to help me?

Benjamin Slavin

unread,
Jul 9, 2007, 9:25:51 AM7/9/07
to django-d...@googlegroups.com
On 7/9/07, raha <big...@fastmail.fm> wrote:
> I have a dojo checkbox. I made it dynamically.
> ...

> Is there any body to help me?

There probably is, but not here (this list is for development of
Django (not Dojo)).

You might want to try http://dojotoolkit.org/forum

- Ben

Reply all
Reply to author
Forward
0 new messages