Re: to fill a select with json javascript from arrays [message #175086 is a reply to message #175075] |
Thu, 11 August 2011 20:50 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
nawfer wrote:
>> This is actually a JavaScript/JSON question.
>
> but in the first step how can take the array php and have array js?
> I read json is solution but which is the correct code that can to work
> with my type of php array?
RTFM: <http://php.net/json_encode> (there are examples there, too!)
You would be well-advised to ignore Jerry Stuckle. The record shows that he
seldom knows what he is talking about but unfortunately compensates that
with uncalled-for rudeness.
Please follow the recommendations in
<http://www.netmeister.org/news/learn2quote.html>.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
|
|
|