I know you can't use the load event with the delegate function however I was wondering if there is a hack to produce a similar effect? I want to use the "data-role='table'" attribute to identify all tables that need AJAX loading and initialise the request.
<script type="text/javascript">
$(document).delegate( "table[data-role='table']", "load", function(e) {
//load AJAX Table
});
</script>
<table data-role="table" class="table-striped">
...
</table>
The code is also available on jsfiddle
Note: I need to use delegate as additional tables may get added at run time (after $(document).ready)