Re: [PHP] Using large multi dimenstional arrays in js

2009-06-23 Thread Simon
you could pack the array into a string and decode that later, using
json prolly...

Or, you could output the data to XML and load the xml file in an
iframe, then browse through the iframe's DOM structure to get the
values you need.


On Wed, Jun 17, 2009 at 6:32 PM, Sancar Saran wrote:
> Hello all,
>
> My new project needs to use large multi dimenstional php arrays in javascript.
>
> I'm not sure how to do it.
>
> Is there any lead or any one give a clue.
>
> Regards
>
> Sancar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Using large multi dimenstional arrays in js

2009-06-17 Thread Björn Bartels

Hi...

you can use 'json_encode'...

http://de2.php.net/manual/de/function.json-encode.php

like this...


var my_js_array = ;


YT
BB

Am 18.06.2009 um 00:32 schrieb Sancar Saran:


Hello all,

My new project needs to use large multi dimenstional php arrays in  
javascript.


I'm not sure how to do it.

Is there any lead or any one give a clue.

Regards

Sancar

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Björn Bartels   ]

[email :  bart...@dragon-projects.de ]
[home  :   http://dragon-projects.de ]
[skype :  bb-drummer ]

[--- ]

Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte  
Informationen enthalten. Wenn Sie nicht der richtige Adressat sind  
oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte  
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte  
Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht  
gestattet.


This e-mail may contain confidential and/or privileged information. If  
you are not the intended recipient (or have received this e-mail in  
error) please notify the sender immediately and destroy this e-mail.  
Any unauthorised copying, disclosure or distribution of the material  
in this e-mail is strictly forbidden.


[--- ]










--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Using large multi dimenstional arrays in js

2009-06-17 Thread Sancar Saran
Hello all,

My new project needs to use large multi dimenstional php arrays in javascript.

I'm not sure how to do it.

Is there any lead or any one give a clue.

Regards

Sancar

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php