Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2791

Re: to fill a select with json javascript from arrays

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <2378528.ArG6xLiZAS@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Thu, 11 Aug 2011 22:50:33 +0200
User-Agent KNode/4.4.11
Content-Transfer-Encoding 7Bit
Subject Re: to fill a select with json javascript from arrays
Newsgroups comp.lang.php
References <1bvj3wor4c13g.yba8pdm1yhnv$.dlg@40tude.net> <4e427ea9$0$23883$e4fe514c@news2.news.xs4all.nl> <17koe79k116aj.10mw3uyf7ueba$.dlg@40tude.net>
Followup-To comp.lang.php
MIME-Version 1.0
Lines 24
NNTP-Posting-Date 11 Aug 2011 22:50:33 CEST
NNTP-Posting-Host c0e8d230.newsspool3.arcor-online.net
X-Trace DXC=LCbB2HUac_J78PK[oJ2ng@McF=Q^Z^V3H4Fo<]lROoRA8kF<OcfhCOKo;k`8g]<bOGDZm8W4\YJNLb@mF9jNikdE_dXMBNGELEASDjl?46L07M
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:2791

Followups directed to: comp.lang.php

Show key headers only | View raw


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@news.demon.co.uk>

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

to fill a select with json javascript from arrays nawfer <novalidsforspam@alt.al> - 2011-08-10 14:13 +0200
  Re: to fill a select with json javascript from arrays Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-08-10 14:51 +0200
    Re: to fill a select with json javascript from arrays nawfer <novalidsforspam@alt.al> - 2011-08-10 18:16 +0200
      Re: to fill a select with json javascript from arrays Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-10 13:26 -0400
        Re: to fill a select with json javascript from arrays Bill B <me@privacy.net> - 2011-08-10 15:48 -0400
          Re: to fill a select with json javascript from arrays Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-10 17:19 -0400
      Re: to fill a select with json javascript from arrays Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-11 22:50 +0200
        Re: to fill a select with json javascript from arrays Bill B <me@privacy.net> - 2011-08-11 17:05 -0400
          Re: to fill a select with json javascript from arrays Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-11 19:53 -0400
            Re: to fill a select with json javascript from arrays Bill B <me@privacy.net> - 2011-08-11 23:24 -0400
              Re: to fill a select with json javascript from arrays Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-12 06:39 -0400
        Re: to fill a select with json javascript from arrays Paul Herber <paul@pherber.com> - 2011-08-11 22:56 +0100
          Re: to fill a select with json javascript from arrays Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-12 00:42 +0200
  Re: to fill a select with json javascript from arrays Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-08-11 00:12 +0000

csiph-web