<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey everybody,<br>
<br>
I have this problem for a while now and not found a solution until
now.<br>
I already brought this up, a few months ago, some people tried to
help me, but I did not found a solution.<br>
<br>
I will use a JQDialog with multiple buttons, i.e. "cancel" and
"confirm".<br>
The cancel button should only close the window. <br>
No problem so far.<br>
But now the tricky part, the "confirm" button should serialize a
form, send an ajax request to update a div container and then close
the window.<br>
<br>
My problem is, I am not able to attach more than one method to a
button.<br>
<br>
Here my example dialog:<br>
<br>
<small><i>(html div)<br>
id: anIdString;<br>
script: (((html jQuery id: anIdString) dialog)<br>
title: (anIdString copyFrom: 4 to:
anIdString size);<br>
autoOpen: false;<br>
modal: true;<br>
width: anInteger;<br>
height: 'auto';<br>
resizable: false;<br>
addButton: 'Close' do: html jQuery new
dialog close);<br>
with: [self dialogContent: html]</i></small><br>
<br>
This is a suggestion, Jan van de Sandt made. Thanks again.<br>
<br>
<div><i><small>testButtons: html</small></i><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><i><small>^
OrderedCollection new</small></i></div>
<i><small>
</small></i>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>add: (Dictionary new</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'id' put: html nextId ;</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'text' put: 'Annuleer' ;</small></i></div>
<i><small>
</small></i>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'click' put: (html jQuery ajax script: [ :h | self
actionCancel: h ]) asFunction ;</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>yourself) ;</small></i></div>
<i><small>
</small></i>
<div><i><small><span class="Apple-tab-span" style="white-space: pre;
"> </span>add: (Dictionary new</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'id' put: html nextId ;</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'text' put: 'Ok' ;</small></i></div>
<i><small>
</small></i>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>at: 'click' put: (html jQuery ajax </small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>serializeForm: (html jQuery id: self personDataFormId)
;</small></i></div>
<i><small>
</small></i>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>script: [ :s | self actionFinish: s ]) asFunction ;</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>yourself) ;</small></i></div>
<div><i><small><span class="Apple-tab-span" style="white-space:pre">
</span>asArray<br>
<br>
<br>
</small></i><br>
<small><i>(html div)<br>
id: anIdString;<br>
script: (((html jQuery id: anIdString) dialog)<br>
title: (anIdString copyFrom: 4 to:
anIdString size);<br>
autoOpen: false;<br>
modal: true;<br>
width: anInteger;<br>
height: 'auto';<br>
resizable: false;<br>
addButton: 'Close' do: html jQuery new
dialog close);<br>
buttons: (self testButtons: html);<br>
with: [self dialogContent: html]</i></small><br>
<i><small><br>
<br>
</small></i><small><big><big><small>But this did not work for
me.<br>
Maybe somebody have an idea.<br>
<br>
Thank you very much!<br>
<br>
Kind regards <br>
<br>
Malte</small><br>
</big></big></small></div>
<br>
</body>
</html>