dojo onchange event

Discussion in 'HTML' started by raha, Jul 9, 2007.

  1. raha

    raha Guest

    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?
     
    raha, Jul 9, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SB
    Replies:
    1
    Views:
    619
    Manish Pandit
    Nov 21, 2006
  2. Struts Dojo Tags

    , Dec 5, 2007, in forum: Java
    Replies:
    0
    Views:
    2,246
  3. boanerges

    console and dojo not defined

    boanerges, Feb 3, 2008, in forum: Java
    Replies:
    1
    Views:
    908
    Joshua Cranmer
    Feb 3, 2008
  4. Franz
    Replies:
    1
    Views:
    986
    Mark Space
    Oct 27, 2008
  5. John Maclean

    Code dojo on Thursday?

    John Maclean, Apr 13, 2010, in forum: Python
    Replies:
    0
    Views:
    214
    John Maclean
    Apr 13, 2010
Loading...

Share This Page