Formatting PHP aaData when data is a keyed by a dynamic value

Formatting PHP aaData when data is a keyed by a dynamic value

tyroneschifftyroneschiff Posts: 5Questions: 0Answers: 0
edited March 2011 in General
I am trying to figure out how to customize the server_processing.php file to output JSON formatted data. The data that I am generating changes dynamically based on the selection made by a user. How would I go about customizing the server_processing.php file so that it can accommodate the data being keyed by a dynamic value?

Replies

  • tyroneschifftyroneschiff Posts: 5Questions: 0Answers: 0
    To elaborate:
    My JSON data is currently structured like this:
    [code]
    {
    -1: [
    -{
    rank: 1
    value: "162.000"
    name: "I. Suzuki"
    team: "SEA"
    position: "RF"
    }
    -{
    rank: 2
    value: "162.000"
    name: "M. Kemp"
    team: "LA"
    position: "CF"
    }, etc., etc.
    [/code]

    In this example, my data is being keyed by a value, 1, and then it outputs data according to that keyed value. My question is essentially how to format my data series so that it can be keyed by a value in addition to the aaData so that I can dynamically update the table based on the keyed value.

    Any help would be great!
This discussion has been closed.