I want some one to assist me in this issue, I have code
$("#test").jCombo("{!! url('test/comboselect?filter=pos:po_code:po_code&limit=WHERE:done_by:!=:1') !!}",
Related to this function,
function getComboselect( Request $request)
{
if($request->ajax() == true && \Auth::check() == true)
{
$param = explode(':',$request->input('filter'));
$parent = (!is_null($request->input('parent')) ? $request->input('parent') : null);
$limit = (!is_null($request->input('limit')) ? $request->input('limit') : null);
$rows = $this->model->getComboselect($param,$limit,$parent);
$items = array();
$fields = explode("|",$param[2]);
foreach($rows as $row)
{
$value = "";
foreach($fields as $item=>$val)
{
if($val != "") $value .= $row->{$val}." ";
}
$items[] = array($row->{$param['1']} , $value);
}
return json_encode($items);
} else {
return json_encode(array('OMG'=>" Ops .. Cant access the page !"));
}
}
I need way to send many values for variable limit and receive in that function like this;
$("#test").jCombo("{!! url('test/comboselect?filter=pos:po_code:po_code&limit=WHERE:done_by:!=:1&limit=WHERE:entry_by:=:1') !!}",
limitGET var ? Something like&limit[]=WHERE:done_by:!=:1&limit[]=WHERE:entry_by:=:1?