<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello everybody.<br>
<br>
My problem: <br>
<br>
I am working with a JQDialog and when the "okay" button is clicked,
I want to use a <i>callback:</i> and <i>answer:</i> to get back to
the <i>go </i>method in my Task class.<br>
<br>
Example:<br>
<small><br>
<i>renderOptionsOn: html id: anIdString width: anInteger <br>
(html div)<br>
id: anIdString;<br>
script: (((html jQuery id: anIdString) dialog)<br>
title: 'test';<br>
autoOpen: false;<br>
modal: true;<br>
width: anInteger;<br>
height: 'auto';<br>
resizable: false;<br>
addButton: 'Okay'<br>
do: (html jQuery ajax script: <br>
[:s | <br>
s<br>
<< (s jQuery id:
anIdString , 'form') serialize;<br>
<< (s jQuery id:
#Settings) dialog close;<br>
<< (s jQuery ajax
callback: [self answer: self something])]);<br>
addButton: (self textAt: #CancelTx) do: html
jQuery new dialog close);<br>
<br>
with: <br>
[self <br>
renderInputsOn: html<br>
commands: self settings<br>
id: anIdString,'test']</i><br>
</small><br>
I read a comment of Lukas Renggli from 2010, it says it is not
possible to <i>answer: </i>from jQuery is this still up to date?<br>
Does anyone have an idea how I can solve the problem?<br>
<br>
Thank you!<br>
<br>
Regards<br>
</body>
</html>