does anyone know how to setup input fields from server-side data?
does anyone know how to setup input fields from server-side data?
hey all
noob here so sorry if this has already beeen answered
so if i call data with the sAjaxSource param
and one of the cols is a bool (set to TRUE)
i want it to appear in my table as a checked checkbox
can someone point me to the doc for this?
thanks!
noob here so sorry if this has already beeen answered
so if i call data with the sAjaxSource param
and one of the cols is a bool (set to TRUE)
i want it to appear in my table as a checked checkbox
can someone point me to the doc for this?
thanks!
This discussion has been closed.
Replies
ive gone ahead with your suggestion
but now im running into a quoting issue
so right now ive got this:
$a = array();
foreach($messages as $m){
$cb = addslashes(activeBox($m["active"], true, $m["messageID"], false));
$b = array($m["messageID"], stripslashes($m["message"]), stripslashes($m["messageType"]), $cb);
$a[] = $b;
}
// setup output array
$goo = array(
"sEcho"=> "nboaseibl asdl a",
"iTotalRecords"=>count($messages),
"iTotalDisplayRecords"=>100,
"aaData"=>$a
);
where activeBox returns this:
and $goo looks like this:
[sEcho] => nboaseibl asdl a
[iTotalRecords] => 1
[iTotalDisplayRecords] => 100
[aaData] => Array
(
[0] => Array
(
[0] => 3
[1] => Outage note
[2] => outage
[3] =>
)
)
if you notice - ive added the 'addslashes' command to $cb
becuase if i dont i get the bad json data error
but with the addslashes i STILL get the bad json data error
what is the correct format i should be putting the checkbox info in?