fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.13k stars 638 forks source link

columns.json and rows.json - 404 not found #743

Open dragonplus-electronics opened 6 years ago

dragonplus-electronics commented 6 years ago

I am having trouble getting Footable to work on a new site (I know this new one is a commercial site, and so if I can get it to work, will get a developer license for it!)

The existing site where it appears to be working ok is here: http://www.essexchurches.info/atoz.aspx

The new site, where I am trying to do virtually the same thing, but it is not working is here: http://resp.ttfcessex.co.uk/typeGroup.aspx?pt=AD

Any idea on what I am doing wrong please? It is driving me crazy!

Thanks

dragonplus-electronics commented 6 years ago

This can be closed. I have found a way around it, although I do not know why the original website didn't object to the same code. As the table is being built dynamically as a Gridview from ASPX, I simply commented out the columns and rows statement:

<script type="text/javascript">
    jQuery(function ($) {
        $('[id*=GridView1]').footable({
            //"columns": $.get('columns.json'),
            //"rows": $.get('rows.json')
        });
    });
</script>

It works absolutely fine after this.

This issue can be closed.