Re: [fw-general] Passing an array from PHP to Javascript

2008-11-21 Thread Martijn Korse
dele454 wrote: Thanks for the tips. But i CAN'T apply any of them now. The design has been approved and i need to i implement things as they are. 'Over engineered' - I dont care. As long my code works as expected. I simply want to pass my PHP array into my javascript function. - very

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread cali_dotocm
thanks for the solution, it was quiet helpful. i had the exact same problem. i just have a little problem though. how qould i the fetch the array of values back in php(zend). that has proven to be a problem? -- View this message in context:

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread Cameron
that's what JSON is for. It's a serialized javascript array, so you simply serialize the array in javascript, pass it through to your PHP app, and there are JSON tools in PHP to instantly decode / encode the arrays. http://www.php.net/json for more info! On Fri, Nov 21, 2008 at 5:16 AM,

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uhm, sorry, the correct answer is Zend_Json ;) ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ :

Re: [fw-general] Passing an array from PHP to Javascript

2008-11-20 Thread Cameron
heh, suck up :P On Fri, Nov 21, 2008 at 8:35 AM, Ben Scholzen 'DASPRiD' [EMAIL PROTECTED]wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uhm, sorry, the correct answer is Zend_Json ;) ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_)

Re: [fw-general] Passing an array from PHP to Javascript

2008-09-16 Thread dele454
Thanks for the tips. But i CAN'T apply any of them now. The design has been approved and i need to i implement things as they are. 'Over engineered' - I dont care. As long my code works as expected. I simply want to pass my PHP array into my javascript function. - very simple code i dont see why

Re: [fw-general] Passing an array from PHP to Javascript

2008-09-16 Thread Matthew Ratzloff
Thanks for the tips. But i CAN'T apply any of them now. The design has been approved There are several things wrong with this statement... In any event, if you want to share data between PHP and JavaScript, look at Zend_Json and JSON in general. -Matt On Tue, Sep 16, 2008 at 8:16 AM,

Re: [fw-general] Passing an array from PHP to Javascript

2008-09-16 Thread dele454
hi Colin, My apologies if i came out as been naive and ungrateful. I was just under a lot of presssure here and just wanted a quick fix - my apologies sincerely. After taking a break off the work load and having my mind cleared i feel so stupid for such a reply from me. So i retract my initial

Re: [fw-general] Passing an array from PHP to Javascript

2008-09-16 Thread dele454
I see exactly what you have been saying - again my mind was too saturated to see clearly! :( Anyway, just to reply one some of the questions you asked. The intention is that the user can either delete the picture indivually using the delete button next to each picture or select all and delete

Re: [fw-general] Passing an array from PHP to Javascript

2008-09-16 Thread dele454
Hi Colin, Am not really bent of having the form process on GET. My forms use the POST method and i am changing it to GET. I simply used the URL path i posted earlier as a way of idenitfying which of the pics need to be deleted as a parameter. Colin Guthrie-6 wrote: dele454 wrote: I see