<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">you're right Julian, I was expecting to have the default action executed also when the submit button is pressed.<div><br></div><div>It's not a bug but my broken expectation.</div><div><div><br></div><div>So the problem for the app now is about getting a callback executed when submitting the form via javascript ala</div><div><br></div><div>$('#blahForm').submit()</div><div><br></div><div>after some js validation</div><div><br></div><div>hmm…</div><div><div><div><br class="webkit-block-placeholder"></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><a href="https://about.me/sebastianconcept">sebastian</a></div><div><br></div><div>o/</div></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jul 16, 2012, at 7:22 PM, Julian Fitzell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I wonder if you are simply misunderstand what #defaultAction: does... the default action is only triggered when the user submits the form by pressing Return in a text field.<br><br>The test at <a href="http://localhost:8080/tests/functional/WACallbackFunctionalTest">http://localhost:8080/tests/functional/WACallbackFunctionalTest</a> seems to be working fine. Click in the text box and press return and you'll see the default action callback is being executed.<br>

<br>All forms on the page will have the same action key, just as all links have the same base URL. Only the names of the parameters (whether form inputs or url parameters) change. the _k refers to the page/continuation that generated the callbacks, so it should usually be the same for everything on a single rendered page.<br>

<br>Julian<br><br><div class="gmail_quote">On Mon, Jul 16, 2012 at 10:41 PM, Sebastian Sastre <span dir="ltr">&lt;<a href="mailto:sebastian@flowingconcept.com" target="_blank">sebastian@flowingconcept.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi there,<div><br></div><div>I've loaded Seaside 3.0.7.1 on Pharo 1.4 and the forms action issue is still there.</div>

<div><br></div><div>I am missing a patch or is still an open issue?</div><div><br></div><div>how are you guys getting X action executed when the user press enter in a form?</div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">

<div><div><a href="https://about.me/sebastianconcept" target="_blank">sebastian</a></div><div><br></div><div>o/</div></div><div><br></div></div></span>PD: to reproduce the problem you can</div><div style="word-wrap:break-word">

1. go to WAHtml5InputTest</div><div style="word-wrap:break-word">2. set a default action like this:</div><div style="word-wrap:break-word"><span style="white-space:pre-wrap">        html form
                defaultAction:[self halt];
                with: [
                html table: [</span></div><div style="word-wrap:break-word">….</div><div style="word-wrap:break-word"><br></div><div style="word-wrap:break-word">3. browse&nbsp;<a href="http://localhost:8080/tests/functional/WAHtml5InputTest" target="_blank">http://localhost:8080/tests/functional/WAHtml5InputTest</a>&nbsp;and&nbsp;submit the form<span style="white-space:pre-wrap">        </span>&nbsp;</div>

<div style="word-wrap:break-word"><br></div><div style="word-wrap:break-word">there are 2 problems:</div><div style="word-wrap:break-word">1. you never get the default action executed</div><div style="word-wrap:break-word">

2. there are 2 forms in that page and they have the same action key which makes no sense</div></span></span><br>
</div>
<br></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></div></div></body></html>