<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Malte,<br>
    <br>
    Try this:<br>
    <br>
    renderContentOn:html<br>
    <br>
    &nbsp;&nbsp;&nbsp; html div<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id:'myDialog';<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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.&nbsp; <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.&nbsp;
    Sorry for not being more specifc.&nbsp; <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&nbsp; all you wrote makes
      totally sense to me,&nbsp; 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>
              &nbsp;&nbsp;&nbsp; "Creates a modal dialog. The title is Created out of
              the id without the div prefix."<br>
              <br>
              &nbsp;&nbsp;&nbsp; (html div)<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: anIdString;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: ((html jQuery new dialog)<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; title: (anIdString copyFrom: 4 to:
              anIdString size);<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoOpen: false;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; modal: true;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; width: 350;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; height: 'auto';<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; resizable: false;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; buttons: (<font color="#ff0000">self
                addDialogButtonsOn: html</font>));<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [(html form)<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: #checkForm;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [html div: <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [html <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; text: ('Ich ' ,
              self session user firstName , ' ' , self session user
              lastName <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; , ' bin
              mit den Kosten in H&ouml;he von xx einverstanden.')
              asUTF8String].<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (html div)<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: #checkBoxDiv;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [(html checkbox)<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onChange: html
              jQuery ajax serializeForm;<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
              [:value | <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self
              payAt: #WoodListWf put: value.<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self
              createWoodList];<br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value: (self
              session paymentDict at: #WoodListWf)]]]</i></font></small></small><br>
      <br>
      <br>
      <small><font face="Courier New, Courier, monospace">addDialogButtonsOn:

          html <br>
          &nbsp;&nbsp;&nbsp; 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>
          &nbsp;&nbsp;&nbsp; ^(OrderedCollection new)<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; add: ((Dictionary new)<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'id' put: html nextId;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'text' put: 'Annuleer';<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'click' put: (html jQuery ajax script:
          [:h | self actionCancel: h]) asFunction;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; yourself);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; add: ((Dictionary new)<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'id' put: html nextId;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'text' put: 'Ok';<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; at: 'click'<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; put: ((html jQuery ajax)<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; serializeForm: (html jQuery
          id: #checkForm);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: [:s | self
          actionFinish: s]) asFunction;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; yourself);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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&gt;&gt;#addDialogButtonsOn:html<br>
        html script: ((html jQuery id: 'myDialog') dialog buttons:(self
        dialogButtonsOn:html)).<br>
        <br>
        MyComponent&gt;&gt; #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&nbsp;</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&lt;&lt;buttons:&nbsp; 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&nbsp;</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">&lt;<a
                    moz-do-not-send="true"
                    href="mailto:malte.grunwald@googlemail.com">malte.grunwald@googlemail.com</a>&gt;</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>
  </body>
</html>