Re: [PHP] how to pass an array to Java script

2005-12-09 Thread Robert Cummings
On Fri, 2005-12-09 at 23:30, Johny John wrote: > Hi, > How to pass an array (from php ) to java script and display it > using javascript?... This might be helpful: http://www.interjinn.com/jinnDoc/interjinn.class.JinnJavaScriptService.phtml#method.createDeclaration Cheers, Rob. -- .--

Re: [PHP] how to pass an array to Java script

2005-12-09 Thread Johny John
Sorry foe yhe inconvenience... Script is given below.. $name = $_GET['photo']; $id = $_GET['ga_id']; $objGA = new Gallery_Album($db); $objError = $objGA->getAlbum($id); $y = unserialize($objError['ga_images']); echo ""; $count = count($y); function getArray($count) { for ($i = 0; $i <

Re: [PHP] how to pass an array to Java script

2005-12-09 Thread Curt Zirzow
On Fri, Dec 09, 2005 at 08:30:51PM -0800, Johny John wrote: > Hi, > How to pass an array (from php ) to java script and display it > using javascript?... What is your array? What do you expect your script to do? What context is this to be outputed to? Sorry, i had to pull a 'Jay Blanc

Re: [PHP] how to pass an array to Java script

2005-12-09 Thread Michael Hulse
On Dec 9, 2005, at 8:30 PM, Johny John wrote: Hi, How to pass an array (from php ) to java script and display it using javascript?... Jasus. Well, FWIK, Here is how you pass a variable: document.write(picUrl); So, if y

[PHP] how to pass an array to Java script

2005-12-09 Thread Johny John
Hi, How to pass an array (from php ) to java script and display it using javascript?... Jasus.