<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thank you very much! It works perfectly.<br>
<br>
Am 23.05.2012 14:46, schrieb Ryan Simmons:
<blockquote
cite="mid:CAOEg6i9_x8v3qQ07mT4vbpGb4GGBkG8apSPVhfTk8dNKu7CYdg@mail.gmail.com"
type="cite"><span>I think it is something like this </span>
<div><span><br>
</span></div>
<div><span>onChange:</span><br>
<span>
(html jQuery ajax</span>
<div>
serializeChildren: (htnl jQuery id:
parentID);<br>
<span>
script: [:script | checkBox ifTrue:
[script alert: 'True']</span></div>
<div><span>
ifFalse: [script alert: 'False']])</span><br>
<br>
<div class="gmail_quote">On 23 May 2012 14:36, janus <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:janus1859@googlemail.com" target="_blank">janus1859@googlemail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I would like to use a checkbox with JQuery. How is it
possible to use the<br>
onchange-event to show the checked-status of the checkbox.<br>
This is my approach so far:<br>
<br>
/renderCheckBoxFor: eachAccount on: html<br>
| ID parentID checkBox |<br>
parentID := html nextId.<br>
ID := html nextId.<br>
html div<br>
id: parentID;<br>
with: [<br>
html label<br>
for: ID;<br>
with:
'CheckBox: '.<br>
html checkbox<br>
id: ID;<br>
value:
checkBox;<br>
callback: [
:value | checkBox := value ];<br>
onChange:<br>
(html jQuery ajax<br>
callback: [ :value | Transcript show:
value; cr ]<br>
value:<br>
(html jQuery this<br>
parent: '#' ,
parentID;<br>
find: ('#', ID))
serialize) ]./<br>
html break<br>
<br>
--<br>
View this message in context: <a moz-do-not-send="true"
href="http://forum.world.st/Checkbox-with-JQuery-tp4631550.html"
target="_blank">http://forum.world.st/Checkbox-with-JQuery-tp4631550.html</a><br>
Sent from the Seaside General mailing list archive at
Nabble.com.<br>
_______________________________________________<br>
seaside mailing list<br>
<a moz-do-not-send="true"
href="mailto:seaside@lists.squeakfoundation.org"
target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside"
target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<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>
</pre>
</blockquote>
</body>
</html>