<p dir="ltr">I am doing that exactly but with Bootstrap modal.</p>
<p dir="ltr">I attach a click listener to the table that loads the content of the modal asynchronously, and then shows it.</p>
<div class="gmail_quote">El jun 20, 2014 4:05 PM, "Paul DeBruicker" <<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Johan is right, but another path is instead have the link in the cell create<br>
then open the dialog, rather than creating all of the dialogs. Or just have<br>
one dialog right before the closing body tag and have the link in the cell<br>
load the dialogs contents via ajax and then open it.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Mariano Martinez Peck wrote<br>
> Hi guys,<br>
><br>
> I have just started to use JQDialog...because it is already integrated and<br>
> very easy to use. In my case, I have tables where for some columns, the<br>
> contents shows a link to open a popup. With a table of around 250 items<br>
> and<br>
> 3 or 4 columns with popups..that is ... 1000 JQDialog instances at render<br>
> time, it gets very slow! The table passes from 1s to render to 3s! :(<br>
><br>
> I have benchmarked everything. From the server side, the response is fast.<br>
> I have even tried by specifying no html (so the popup does simply<br>
> nothing....and same results). The way I create the dialogs and the button<br>
> for them is:<br>
><br>
> div := html div<br>
> script: (html jQuery new dialog<br>
> html: dialog;<br>
> title: anItem class label;<br>
> autoOpen: false;<br>
> draggable: true;<br>
> resizable: false;<br>
> position: 'top';<br>
> closeOnEscape: true;<br>
> maxWidth: 900;<br>
> width: 900;<br>
> addButton: 'Close' do: html jQuery new dialog close).<br>
> id := div ensureId.<br>
> html anchor<br>
> onClick: (html jQuery id: id) dialog open;<br>
> with: (description toString: anItem). ]<br>
><br>
> Is there a way to improve this? For example, there is no way to make the<br>
> js<br>
> dialog object creation lazy (upon button click)? I read that making the<br>
> dialog not draggable and not resizable increases speed..but I tested and<br>
> it<br>
> was not that much.<br>
><br>
>>From js profiling it looks like what it takes time is the dialog creation.<br>
><br>
> Thanks in advance,<br>
><br>
><br>
> --<br>
> Mariano<br>
> <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
<br>
> seaside@.squeakfoundation<br>
<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>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/With-several-JQDialog-it-gets-very-slow-tp4763985p4764003.html" target="_blank">http://forum.world.st/With-several-JQDialog-it-gets-very-slow-tp4763985p4764003.html</a><br>
Sent from the Seaside General mailing list archive at Nabble.com.<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>