<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Malte,<br>
<br>
I don't know what you should check next. It seems like because
there are three buttons in your dialog in the screenshot but only
two in the #test:html method you sent earlier there might be other
things going on. <br>
<br>
I think that you should create a very simple example component that
only displays an empty dialog. Ignore the rest of your application.
Start from scratch. Then work to get only one button displayed
properly in the one empty dialog. Then attempt to get another
button to display. If you cannot get one working post the code of
your simple example component so other people can attempt diagnose
what's going on. <br>
<br>
<br>
Do you get any errors/warnings in Firebug? Does the javascript that
Seaside outputs look like its well formed and matches whats expected
by jQuery as described here: <br>
<br>
<a class="moz-txt-link-freetext" href="http://jqueryui.com/demos/dialog/#option-buttons">http://jqueryui.com/demos/dialog/#option-buttons</a><br>
<br>
?<br>
<br>
Also, other people on the Seaside list may have better ideas so
please keep this discussion on the list. <br>
<br>
<br>
<br>
<br>
On 11-12-02 04:25 AM, Malte Grunwald wrote:
<blockquote cite="mid:4ED8C3B3.7030502@googlemail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hello Paul,<br>
<br>
thank you so much for your help.<br>
<br>
I do not want to bother you, BUT it still does not work. I
implemented it exactly like you explained it to me, but all i get
is the number of buttons I want, without any function or the right
label. The label is a default label, I guess, starting from 0 up
to the number of buttons I have. I attached you a screen shot.<br>
<br>
It seems as the Array, which is created in the test method, would
not be used at all. I debuged through the whole thing, but I did
not found, what I am doing wrong. <br>
<br>
Thanks again for your help and your time!<br>
<br>
Kind regards<br>
<br>
Malte <br>
<br>
Am 01.12.2011 23:40, schrieb Paul DeBruicker:
<blockquote cite="mid:4ED80251.1050304@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Malte,<br>
<br>
Try this:<br>
<br>
renderContentOn:html<br>
<br>
html div<br>
id:'myDialog';<br>
script:(html jQuery new dialog buttons: (self test:
html)).<br>
<br>
<br>
With #test: being the same as what you described in your email
below. <br>
<br>
My #addDialogButtonsOn:html was meant to be sent from a render
method and not as part of the creation of the dialog box
itself. Sorry for not being more specifc. <br>
<br>
Paul<br>
<br>
<br>
<br>
On 11-12-01 01:40 AM, Malte Grunwald wrote:
<blockquote cite="mid:4ED74B93.9000803@googlemail.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hello Paul,<br>
<br>
thank you that you tried to help me and all you wrote makes
totally sense to me, but it still does not work.<br>
<br>
At the moment I am getting the error: "Undefined Object does
not understand parent" and I do not know why.<br>
<br>
Maybe you can have a look over my code, if you have some time.<br>
<br>
<small><small><font face="Courier New, Courier, monospace"><i>renderDialogCheckboxOn:
html with: aString id: anIdString width: anInteger <br>
"Creates a modal dialog. The title is Created out
of the id without the div prefix."<br>
<br>
(html div)<br>
id: anIdString;<br>
script: ((html jQuery new dialog)<br>
title: (anIdString copyFrom: 4 to:
anIdString size);<br>
autoOpen: false;<br>
modal: true;<br>
width: 350;<br>
height: 'auto';<br>
resizable: false;<br>
buttons: (<font color="#ff0000">self
addDialogButtonsOn: html</font>));<br>
with: <br>
[(html form)<br>
id: #checkForm;<br>
with: <br>
[html div: <br>
[html <br>
text: ('Ich '
, self session user firstName , ' ' , self session
user lastName <br>
, '
bin mit den Kosten in Höhe von xx einverstanden.')
asUTF8String].<br>
(html div)<br>
id: #checkBoxDiv;<br>
with: <br>
[(html
checkbox)<br>
onChange:
html jQuery ajax serializeForm;<br>
callback:
<br>
[:value | <br>
self payAt: #WoodListWf put: value.<br>
self createWoodList];<br>
value:
(self session paymentDict at: #WoodListWf)]]]</i></font></small></small><br>
<br>
<br>
<small><font face="Courier New, Courier, monospace">addDialogButtonsOn:
html <br>
html script: ((html jQuery id: 'divKostenpflichtig')
dialog buttons: (self test: html))</font></small><br>
<small><br>
<font face="Courier New, Courier, monospace">test: html <br>
^(OrderedCollection new)<br>
add: ((Dictionary new)<br>
at: 'id' put: html nextId;<br>
at: 'text' put: 'Annuleer';<br>
at: 'click' put: (html jQuery ajax
script: [:h | self actionCancel: h]) asFunction;<br>
yourself);<br>
add: ((Dictionary new)<br>
at: 'id' put: html nextId;<br>
at: 'text' put: 'Ok';<br>
at: 'click'<br>
put: ((html jQuery ajax)<br>
serializeForm: (html
jQuery id: #checkForm);<br>
script: [:s | self
actionFinish: s]) asFunction;<br>
yourself);<br>
asArray</font></small><br>
<br>
I hope you ll find something, please let me know.<br>
<br>
Thank you very much.<br>
<br>
Kind regards<br>
<br>
Malte Grunwald<br>
<br>
<br>
Am 28.11.2011 20:37, schrieb Paul DeBruicker:
<blockquote cite="mid:4ED3E307.4080102@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
You could use:<br>
<br>
MyComponent>>#addDialogButtonsOn:html<br>
html script: ((html jQuery id: 'myDialog') dialog
buttons:(self dialogButtonsOn:html)).<br>
<br>
MyComponent>> #dialogButtonsOn:html<br>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>^
OrderedCollection new</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>add:
(Dictionary new</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'id' put: html nextId ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'text' put: 'Annuleer' ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'click' put: (html jQuery ajax script: [ :h | self
actionCancel: h ]) asFunction ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>yourself)
;</div>
<div><span class="Apple-tab-span" style="white-space: pre; ">
</span>add: (Dictionary new</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'id' put: html nextId ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'text' put: 'Ok' ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at:
'click' put: (html jQuery ajax </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>serializeForm:
(html jQuery id: self personDataFormId) ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>script:
[ :s | self actionFinish: s ]) asFunction ;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>yourself)
;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>asArray</div>
<br>
<br>
<br>
On 11-11-28 05:56 AM, Malte Grunwald wrote:
<blockquote cite="mid:4ED39327.7060205@googlemail.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thank you so far for your quick respond,<br>
but do you maybe have another example? Which method calls
your example-method?<br>
I tried it with JQDialog<<buttons: but it did not
work, am i missing something?<br>
Thank you very much.<br>
<br>
Kind Regards<br>
<br>
Malte Grunwald<br>
<br>
Am 25.11.2011 13:48, schrieb Jan van de Sandt:
<blockquote
cite="mid:CAGZkxkD8WBqfSytD4=DWkj+L+E9VW9cr0MLP0hWSiTwgOEPS9w@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>Sure. I use this a lot. For example you can set the
buttons of a JQuery dialog this:</div>
<div><br>
</div>
<div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>^
OrderedCollection new</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>add: (Dictionary
new</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'id' put:
html nextId ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'text' put:
'Annuleer' ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'click' put:
(html jQuery ajax script: [ :h | self actionCancel:
h ]) asFunction ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>yourself) ;</div>
<div><span class="Apple-tab-span" style="white-space:
pre; "> </span>add: (Dictionary new</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'id' put:
html nextId ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'text' put:
'Ok' ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>at: 'click' put:
(html jQuery ajax </div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>serializeForm:
(html jQuery id: self personDataFormId) ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>script: [ :s |
self actionFinish: s ]) asFunction ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>yourself) ;</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span>asArray</div>
<div><br>
</div>
<div>In the #actionFinish: method I check the form ans
show an error message or close the dialog.</div>
<div><br>
</div>
<div>Jan.</div>
<div><br>
</div>
<br>
<div class="gmail_quote">On Fri, Nov 25, 2011 at 12:55
PM, Malte Grunwald <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:malte.grunwald@googlemail.com">malte.grunwald@googlemail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey
everyone,<br>
<br>
I am actually playing around with the JQDialog,
now i have a problem.<br>
<br>
Beside my close button, i want to create a confirm
button, which serializes a form and then closes
the dialog, like it is in every normal
Desktopapplication.<br>
<br>
Is there any possibility to combine this two
actions?<br>
<br>
Thank you very much.<br>
<br>
Kind Regards<br>
<br>
Malte<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a moz-do-not-send="true" 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>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a moz-do-not-send="true" 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>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a moz-do-not-send="true" 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>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>