ajax and jQueryUI
ajax and jQueryUI
Hi all,
On my local environment, I can get the jQuery UI working with the included example but this doesn't work:
[code]
$(document).ready(function() {
$.getJSON( 'json.txt', null, function(json) {
$('#example').dataTable( json, {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
});
[/code]
The table displays, sorts, and paginates the data wonderfully; it just won't accept the parameters.
Neither "bJQueryUI" or "sPaginationType" work so I'm thinking that none of the parameters will work. Is there a better way to write this?
thank you.
On my local environment, I can get the jQuery UI working with the included example but this doesn't work:
[code]
$(document).ready(function() {
$.getJSON( 'json.txt', null, function(json) {
$('#example').dataTable( json, {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
});
[/code]
The table displays, sorts, and paginates the data wonderfully; it just won't accept the parameters.
Neither "bJQueryUI" or "sPaginationType" work so I'm thinking that none of the parameters will work. Is there a better way to write this?
thank you.
This discussion has been closed.
Replies
Possibly this thread might be of interest to you: http://datatables.net/forums/comments.php?DiscussionID=1314
Allan
Is there a way to enable jqueryui to the above example in a different (correct) way? I don't think I have that part in the right place in the code.
I know I'm missing something fundamental here but I can't seem to find an example that spells it out for me.
Thank you so much for your time.
(The reference to the other post was how I got it working; now, I just need to pass jqueryui the table.)
[code]
$(document).ready(function() {
$.getJSON( 'json.txt', null, function(json) {
$('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
"aaData": json.aaData
});
});
});
[/code]
Or something like that...
Allan
Allan
I happily donated to this great product and community.
Awesome - thanks very much :-)
Allan