I was wondering what the best way would be to pass a php object via AJAX.
for example
//objectClass = objectClass.php
$obj = new objectClass();
<a href="javascript:getOutput("some variable", $obj);
As the other file i.e. output.php (called through ajax in getOutput() function) needs to access objectClass.php as well, what is the best way to access $obj?
I tried to jscon_encode($obj) then decode but not working.
Thanks in advance
$_SESSIONstore.