<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">Well, now that you have the triggerSubmit in
there, this seems to work:<br>
<br>
renderContentOnSqueakman3: html<br>
<br>
(html form)<br>
id: #form;<br>
with:<br>
[html label with: 'Name'.<br>
(html textInput)<br>
id: #temp;<br>
value: 'sample text'.<br>
<br>
(html button beSubmit) "<=====change"<br>
onClick: (html jQuery ajax<br>
callback: [:v | self halt]<br>
value: (html jQuery: #temp) value);<br>
<br>
onClick: (html jQuery ajax script:<br>
[:s | (s jQuery: #form) triggerSubmit]);<br>
<br>
callback: [self halt]; " non-ajax callback"<br>
with: 'Pay >']<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 8/23/12 6:08 PM, squeakman wrote:<br>
</div>
<blockquote cite="mid:5036A9CF.6030600@gmail.com" type="cite">Hello
Again,
<br>
<br>
The callback for the onClick works but now I am stuck on getting
the callback for the button to be called - the one with the
comment "non-ajax callback" in the code below.
<br>
<br>
I read on the web that: "Instead put your callback code into the
jQuery callback itself, aka the #script: block." This is what I
am trying to do below but it failed along with a few other
experiments I tried.
<br>
<br>
What I want to do is trigger the form so that all the various
callbacks are called.
<br>
<br>
Can you offer any help with this?
<br>
<br>
Thanks again,
<br>
Frank
<br>
<br>
----- code follows ----
<br>
<br>
renderContentOn: html
<br>
<br>
(html form)
<br>
id: #form;
<br>
with:
<br>
[html label with: 'Name'.
<br>
(html textInput)
<br>
id: #temp;
<br>
value: 'sample text'.
<br>
<br>
(html button bePush)
<br>
onClick: (html jQuery ajax
<br>
callback: [:v | self halt]
<br>
value: (html jQuery: #temp) value);
<br>
<br>
onClick: (html jQuery ajax script:
<br>
[:s | (s jQuery: #form) triggerSubmit]);
<br>
<br>
callback: [self halt]; " non-ajax callback"
<br>
with: 'Pay >']
<br>
<br>
<br>
_______________________________________________
<br>
seaside mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>