Welcome Guest, Not a member yet? Register   Sign In
passing view by Json
#1

[eluser]Ngulo[/eluser]
hi all guys,

i was wondering.... can i pass a main html view page,with json ajax?

i mean.... i'm passing data with json but i would like also to pass a pice of html in the same json array

if i do something like this:
Code:
$asd = array(
'asd'=>1,
'asd2'=>12,
'html'=>$this->load->view('myview')
);

echo json_encode($asd);


data asd and asd2 are passed normally as json array datas, but html doesn't return inside json array,it comes outside of this array and html becomes null

any suggestion?

thanks


Messages In This Thread
passing view by Json - by El Forum - 11-01-2010, 03:05 AM
passing view by Json - by El Forum - 11-01-2010, 03:37 AM
passing view by Json - by El Forum - 11-01-2010, 06:41 AM
passing view by Json - by El Forum - 11-01-2010, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB