Querying external file with table for different pages

Querying external file with table for different pages

[Deleted User][Deleted User] Posts: 0Questions: 0Answers: 0
edited November 2013 in General
Hello,

Hopefully someone can answer this. I'll try to describe what I am attempting to do.

I would like to create different web pages that each query a different category of an external DataTable (with external I mean loaded from a separate XML file, or database). For example, let's say my DataTable contains links to cars, and there are luxury cars, cheap cars, and trucks, then I would like to have a web page that will load luxury cars from the external DataTable, another (separate) web page that loads cheap cars from that same external DataTable, and another web page for the trucks.

I know I can include different DataTables on different webpages, but for manageability sake I prefer to have all those links in one table and then query that table based on the topic of the respective web page.

I hope I am making sense.

I have been looking through some of the documentation on the website but I can't find how to do this.

Any help is greatly appreciated!

Thank you.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    To check my understanding - you want to set the defaults for the tables ( http://datatables.net/release-datatables/examples/advanced_init/defaults.html ) and specify a specific sAjaxSource for each table to you?

    Allan
  • [Deleted User][Deleted User] Posts: 0Questions: 0Answers: 0
    Using that first link as an example for what I would like to do: I'd like to have a page load only the Gecko rows, another page the Trident, and so forth. Does that make sense?

    The externalization is clear to me now.

    Thanks for getting back to me!
This discussion has been closed.