if statment into aoColumn depend on returned value

if statment into aoColumn depend on returned value

ahmadtarawneahahmadtarawneah Posts: 4Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
first very big thanks for these awesome plugins

this is my table



headeing



$foo



i want if $foo="bar"; to replace the bar with other returned data any idea how to achieve that ?

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Firstly you must use `tbody` and `thead` elements with DataTables: http://datatables.net/usage .

    > i want if $foo="bar"; to replace the bar with other returned data any idea how to achieve that ?

    How are you generating the page? This sounds a bit like a PHP or some other scripting environment issue when building an HTML table. If so, you'd be better asking on SO.

    Allan
  • ahmadtarawneahahmadtarawneah Posts: 4Questions: 0Answers: 0
    edited December 2013
    codeigniter framework the table generating by the table library and i have library called datatables for mysql queries every thing good

    " the table generated ok and works ok "

    not markup issue its logical
  • ahmadtarawneahahmadtarawneah Posts: 4Questions: 0Answers: 0
    edited December 2013
    one of my fields called gender accept 3 values male or female or both if both i would to replace both with the male_number and female_number

    the system about job recruitment they ask our company for Candidates
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    I'm afraid I'm not sure what the question is. Can you please link to the page in question so I can understand what your data looks like.

    Allan
  • ahmadtarawneahahmadtarawneah Posts: 4Questions: 0Answers: 0
    edited December 2013
    http://jsfiddle.net/ahmadtarawneah/gnYC6/28/

    Check this demo please its clear Enough

    change should be on the red td

    thank you for your efforts
This discussion has been closed.