mrlayance mrlayance - 3 months ago 12
jQuery Question

Load Jquery BlockUI from text link

Not sure if this is possible, couldn't find a good answer... I want a html link to launch a BlockUI "loading" box.

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.blockUI.js"></script>

<SCRIPT language=JavaScript>
$(document).ready(function() {
$('#pop').click(function() {
$.blockUI({
message: '<h1>Processing Query....</h1>',
timeout: 100000
});
});
});</script>

echo "<tr>";
echo "<td><div id=\"pop\"><a href=report$radio.php?prov=$prov&date1=$date1&starthour=$hour1&endhour=$hour2&date2=$date2&lookup=" . $row[$radio] . ">" . $row[$radio] . "</a></div></td>";
echo "<td>" . $row['count'] . "</td>";
echo "</tr>";

Answer
<SCRIPT language=JavaScript>
$(document).ready(function() { 
    $('a').click(function() { 
        $.blockUI({ 
            message: '<h1>Processing Query....</h1>', 
            timeout: 100000 
        }); 
    }); 
});</script>
Comments