<div dir="ltr">Hi guys, <div><br></div><div>In my application I have many many places in which I need to submit the surrounding form once an item has been selected from a list or things like that. For example, for a "html select", I am relying on #beSubmitOnChange (which is deprecated....).</div>
<div><br></div><div>I am now using #tbsButtonGroup and #tbsDropdownMenu (they are inside a form with another html selects) and I want to achieve the same. I added a </div><div><br></div><div>onClick: 'submit()';</div>
<div><div><br></div><div>to the tbsDropdownMenu. The form seems to be submitted, but the callbacks of my anchors never get called:</div><div><br></div><div>Reduced example:</div><div><br></div><div>html form: [</div><div>
<div>html tbsButtonGroup: [ </div><div><span class="" style="white-space:pre">                </span>html tbsDropdownButton beDefault; beExtraSmall; with: [html text: 'Filter '; tbsCaret]. </div><div><span class="" style="white-space:pre">                </span>html tbsDropdownMenu</div>
<div><span class="" style="white-space:pre">                        </span>onClick: 'submit()';</div><div><span class="" style="white-space:pre">                        </span>with: [</div><div><span class="" style="white-space:pre">                                </span>html tbsDropdownMenuItem: [ </div>
<div><span class="" style="white-space:pre">                                        </span>html anchor</div><div><span class="" style="white-space:pre">                                                </span>text: 'Selected';</div><div><span class="" style="white-space:pre">                                                </span>callback: [self halt. ]. ].</div>
<div><span class="" style="white-space:pre">                                </span>html tbsDropdownMenuItem: [ </div><div><span class="" style="white-space:pre">                                        </span>html anchor</div><div><span class="" style="white-space:pre">                                                </span>text: 'Unselected';</div>
<div><span class="" style="white-space:pre">                                                </span>callback: [self halt. ]. ].</div><div><span class="" style="white-space:pre">                        </span>]</div><div><span class="" style="white-space:pre">        </span>]</div></div><div>
<br></div><div>]</div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks</div><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>