I am not sure that you can pass objects from php to javascript and back again ...
You can pass javascript objects from php to javascript with serialization but i dont think php objects will pass correctly ... Perhaps there is a better way to do what you want, could you explain what you are trying to achieve and perhaps we can help Regards Alex ----- Original Message ----- From: "marioosh" <marioosh....@gmail.com> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Tuesday, March 03, 2009 1:34 PM Subject: [Proto-Scripty] Re: Ajax.Request and php global variable > > Explaining [sorry for my english ;)]: > > I need $var that is object of some class, and > $var will point to the same object in test1.php, test2.php, > test3.php ... > where: test1.php, test2.php ... are scripts that will be used in new > Ajax.Request(... > > I need something like above. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---