<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 1:39 PM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com" target="_blank" class="vt-p">pdebruic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Mariano,<br>
<br>
<br>
Can you use the JQAjax>>serializeForm: ?<br>
<br>
e.g. for our anchor say:<br>
<br>
onClick: html jQuery ajax serializeForm:(html jQuery id:'myForm');<br>
<div><div class="h5"><br>
<br></div></div></blockquote><div><br></div><div>Hi Paul, I have just tried that doing this:</div><div><br></div><div><div>html tbsDropdownMenuItem: [ </div><div><span class="" style="white-space:pre">                                        </span>html anchor</div>
<div><span class="" style="white-space:pre">                                                </span>onClick: (html jQuery ajax serializeForm: (html jQuery id: formID));</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><div><br></div><div><br></div><div>And it doesn't work either. The html for such code is this:</div><div><br></div><div><div><li></div>
<div><br></div><div> <a onclick="jQuery.ajax({"url":"/dp","data":["_s=OpQD8YOfnkSWYrc_","_k=6_McsUmdszVXIFuG","21",jQuery("#id18").closest("form").find(":input").serialize()].join("&")})"> … </a></div>
<div><br></div><div></li></div></div><div><br></div><div>and indeed, "#id18" is the correct id of the form. </div><div><br></div><div>Ant other idea?</div><div><br></div><div>Thanks in advance,</div><div><br>
</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<br>
<br>
<br>
On Oct 17, 2013, at 7:48 AM, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" class="vt-p">marianopeck@gmail.com</a>> wrote:<br>
<br>
> Hi guys,<br>
><br>
> 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....).<br>
><br>
> 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<br>
><br>
> onClick: 'submit()';<br>
><br>
> to the tbsDropdownMenu. The form seems to be submitted, but the callbacks of my anchors never get called:<br>
><br>
> Reduced example:<br>
><br>
> html form: [<br>
> html tbsButtonGroup: [<br>
> html tbsDropdownButton beDefault; beExtraSmall; with: [html text: 'Filter '; tbsCaret].<br>
> html tbsDropdownMenu<br>
> onClick: 'submit()';<br>
> with: [<br>
> html tbsDropdownMenuItem: [<br>
> html anchor<br>
> text: 'Selected';<br>
> callback: [self halt. ]. ].<br>
> html tbsDropdownMenuItem: [<br>
> html anchor<br>
> text: 'Unselected';<br>
> callback: [self halt. ]. ].<br>
> ]<br>
> ]<br>
><br>
> ]<br>
><br>
> Any ideas?<br>
><br>
> Thanks<br>
><br>
> --<br>
> Mariano<br>
> <a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br><br clear="all"><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>