Note that there are some explanatory texts on larger screens.

plurals
  1. POlooping jquery block ui
    primarykey
    data
    text
    <p>i am trying to create 300 unique instances of block ui</p> <p>so far this is what i have, but it is not working:</p> <p>javascript</p> <pre><code>&lt;script type="text/javascript"&gt; var i=0; for (i=0;i&lt;=300;i++) { $(document).ready(function() { $("#q" + i).click(function() { $.blockUI({ message: $("#t" + i), css: { width: '1024px' } }); }); $('#yes').click(function() { // update the block message $.blockUI({ message: "&lt;h1&gt;Remote call in progress...&lt;/h1&gt;" }); $.ajax({ url: 'wait.php', cache: false, complete: function() { // unblock when remote call returns $.unblockUI(); } }); }); $('#no').click(function() { $.unblockUI(); return false; }); }); } &lt;/script&gt; </code></pre> <p>modal windows </p> <pre><code> &lt;?php do { ?&gt; &lt;div id="q&lt;?php echo $row_dd31['dNo']; ?&gt;" style="display:none; cursor: default"&gt; &lt;h3&gt;Driver &lt;?php echo $row_dd31['dNo']; ?&gt;&lt;/h3&gt;&lt;p&gt; &lt;input type="button" id="yes" value="Save" style="width: 75px; height: 50px;"/&gt; &lt;input type="button" id="no" value="Exit" style="width: 75px; height: 50px;"/&gt; &lt;/div&gt; &lt;?php } while ($row_dd31 = mysql_fetch_assoc($dd31)); ?&gt; </code></pre> <p>cell to activate modal window </p> <pre><code> &lt;tr height="100px" align="center"&gt; &lt;?php do { ?&gt; &lt;td style="background-color: &lt;?php echo $row_dd1['colour']; ?&gt;;"&gt; &lt;input type="hidden" id="&lt;?php echo $row_dd1['dNo']; ?&gt;"&gt; &lt;button type="submit" class="link" id="t&lt;?php echo $row_dd1['dNo']; ?&gt;"&gt;&lt;span&gt;&lt;?php echo $row_dd1['dNo']; ?&gt;&lt;/span&gt;&lt;/button&gt; &lt;/td&gt; &lt;?php } while ($row_dd1 = mysql_fetch_assoc($dd1)); ?&gt; &lt;/tr&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload