Hi Thierry,<div><br></div><div>I tried your code and it works for me on FF (4.0.1) and Chrome (11.0.696.65) Mac. Have you added the JQuery libraries JQuery, JQueryUI and a JQueryTheme to your application?</div><div><br></div>
<div>Have you used the developer tools in FF (Firebug) and Chrome (View-&gt;Developer-&gt;Developer Tools) to see if the browser is reporting any errors?</div><div><br></div><div>One thing I noticed is that the #html: method on your dialog object causes Seaside to make an ajax request for the dialog content when you click on the anchor. An alternative is for the content to be rendered during page load, but remain invisible until the dialog is opened. To achieve this you add - autoOpen: false - and render the component using the div&#39;s #with:</div>
<div><br></div><div><div>html div</div><div>       id: (html nextId);</div><div>       script: (html jQuery new dialog</div><div>               title: &#39;Title&#39;;</div><div>               height: 200;</div><div>               width: 400;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>autoOpen: false;</div><div>                resizable: false;</div><div>                modal: true);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>with: <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">aComponent</span>.</div>
<div><br></div><div>html anchor</div><div>       onClick: (( html jQuery id: html lastId) dialog open);</div><div>             with: &#39;Test&#39;.</div><div><br></div><div>Perhaps the problem is with the component, try removing the component and testing with simple html in the dialog:</div>
<div><br></div><div><div>html div</div><div>       id: (html nextId);</div><div>       script: (html jQuery new dialog</div><div>               html: [ :r | r text: &#39;hello dialog&#39;];</div><div>               title: &#39;Title&#39;;</div>
<div>               height: 200;</div><div>               width: 400;</div><div>               resizable: false;</div><div>               modal: true).</div><div><br></div><div>html anchor</div><div>       onClick: (( html jQuery id: html lastId) dialog open);</div>
<div>             with: &#39;Test&#39;.</div></div><div><br></div><div>Or even simpler:</div><div><br></div><div><div><div><div>html div</div><div>       id: (html nextId);</div><div>       script: (html jQuery new dialog</div>
<div>               title: &#39;Title&#39;;</div><div>               height: 200;</div><div>               width: 400;</div><div>               resizable: false;</div><div>               modal: true;</div><div>               autoOpen: false);</div>
<div>        with: &#39;hello dialog&#39;.</div><div><br></div><div>html anchor</div><div>       onClick: (( html jQuery id: html lastId) dialog open);</div><div>             with: &#39;Test&#39;.</div></div></div></div><div>
<br></div><div>Hope this helps</div><div><br></div><div>Nick</div><br><div class="gmail_quote">On 10 May 2011 05:10, Thierry Thelliez <span dir="ltr">&lt;<a href="mailto:thierry.thelliez.tech@gmail.com">thierry.thelliez.tech@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
While creating a dialog with JQuery, I found that the following code<br>
works with FF, but not with Chrome. Under the later, nothing happens<br>
when clicking the &#39;Test&#39; link.<br>
<br>
html div<br>
        id: (id := html nextId);<br>
        script: (html jQuery new dialog<br>
                        html: aComponent;<br>
                        title: &#39;Title&#39;;<br>
                height: 200;<br>
                width: 400;<br>
                        resizable: false;<br>
                        modal: true).<br>
<br>
html anchor<br>
        onClick: (( html jQuery id: id) dialog open);<br>
              with: &#39;Test&#39;.<br>
<br>
<br>
If I replace the anchor with a submitButton, the dialog works fine in<br>
the two browsers. Adding a fake url like &#39;url: &#39;#&#39;&#39; did not help (it<br>
did help getting the right cursor type).<br>
<br>
Any suggestions?<br>
Thanks,<br>
Thierry<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a 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>