accedere a Json Array multidimensionale

ans66

Utente Attivo
27 Ago 2011
158
0
16
Ciao a tutti,

Ricevo un array multidimensionale come segue:

Codice:
function GetDataArray(form_tag, xURL)
	{
		
			var xmlhttp=false;

			
			if (!xmlhttp && typeof XMLHttpRequest!='undefined')
			{
				try { xmlhttp = new XMLHttpRequest(); }
				catch (e) { xmlhttp = false; }
			}
			if (!xmlhttp && window.createRequest)
			{
				try { xmlhttp = window.createRequest(); }
				catch (e) { xmlhttp = false; }
			}

			xmlhttp.onreadystatechange=function()
			{
				if (xmlhttp.readyState===4 && xmlhttp.status===200)
				{
          
					data = JSON.parse(xmlhttp.responseText);
          
          SetValuesTesti(data);
				}
			}
			xmlhttp.open("GET", xURL, true);
			xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
			xmlhttp.send(null);
		
		return
	}

function SetValuesTesti(data)  
	{
           a questo punto non riesco ad accedere ai dati anche dopo numerevoli tentativi
        }

json.png

Grazie per l'aiuto
 

ans66

Utente Attivo
27 Ago 2011
158
0
16
risolto. Mi sono accorto di un errore nella seguente funzione:

Codice:
function loadXMLTesti(form_tag, funzione, server, user, passw, nr)
	{
		var xURL = "characteristics.php?funzione="+funzione+"&server="+server+"&user="+user+"&passw="+passw+"&nr="+nr;
    
		GetDataArray("", xURL); // errore era GetData("", xURL); il parse non veniva fatto
		return
	}
 
Discussioni simili
Autore Titolo Forum Risposte Data
P Accedere a IIS da remoto senza un IP statico Web Server 1
Shyson Non mi fa accedere al sito WordPress 12
S Database Netsons: come accedere da remoto PHP 1
I Non riesco ad accedere ftp tramite IP in LAN Reti LAN e Wireless 6
F [PHP] Aggiungere ruolo per accedere alle pagine PHP 2
W accedere a DB Postgres su altro server PHP 2
G accedere a localhost dall'interno di Docker Programmazione 0
AkenStyle Come accedere a una tabella? Database 1
F Quali credenziali per accedere al sitemarket? Supporto Mr.Webmaster 5
L [Javascript] Cliccare su mi piace per accedere a vedere la pagina Javascript 0
S Poter accedere ad un sito solo se si proviene da un altro preciso WordPress 2
O accedere direttamente a una SUPERGLOBAL PHP 1
felino [Backend] Impossibile accedere al backend WordPress 2
A Impossibile accedere alle configurazioni del router Reti LAN e Wireless 1
M Impossibile accedere a pc su LAN Reti LAN e Wireless 1
Marco_88 Impossibile accedere al database PHP 16
felino Server su macchina linux: come accedere a phpMyAdmin? Apache 1
M Accedere da remoto ad una macchina virtuale Server Dedicati e VPS 2
L accedere alla apgina dopo clic su pagina facebook Javascript 1
Marcolotto Android accedere all'ID UNIVOCO del device Sviluppo app per Android 2
L [VB] Accedere a database access con visual studio (linguaggio vb) .NET Framework 1
Eliox Accedere a tutte le proprietà di un oggetto PHP 1
N Accedere ai dati di un gruppo con le API di Facebook PHP 0
best impossibile accedere Supporto Mr.Webmaster 4
M Wordpress: password per accedere ad un sito privato WordPress 1
M Accedere PC Privato dall'esterno Reti LAN e Wireless 2
alessandro1997 [TUTORIAL] Accedere ad un server FTP come una normale cartella Linux e Software 1
R codice php per accedere a files protetti .htaccess PHP 2
K AIUTO accedere da remoto server apache in lan Apache 0
Cforever accedere a campi Crystal Reports in .NET ASP.NET 1
N accedere ad un database con asp Classic ASP 1
I Accedere a cartelle protette sul server attraverso internet? Windows e Software 5
P non posso accedere Supporto Mr.Webmaster 6
D Miglior modo per estrarre le occorrenze di un elemento in un set di più file xml e quindi scrivere il risultato in una tabella Excel o magari in JSON XML 0
S Problema nel ciclare un json Javascript 0
L JSON Javascript 2
G Json decode PHP 2
MarcoGrazia Valori di ritorno json via ajax non visti. jQuery 1
S decode file json PHP 10
FabioJ [mysql] importazione csv o json o excel Database 0
J Leggere JSON da Instagram __a=1 PHP 0
D Lettura output da json su php PHP 4
felino Script PHP per leggere un file JSON. autenticazione? PHP 4
michele81 json file annidati Javascript 0
M Effettuare Login con dati Json Sviluppo app per Android 0
M URL JSON Sviluppo app per Android 1
M Importare - Manipolare Json Array Sviluppo app per Android 2
Domenico_Falco1 Rendere dinamico un sito web con chiamate ajax e php e variabili json PHP 12
N [PHP] ERRORE: SyntaxError: Unexpected token N in JSON at position 1 PHP 0
WorldWideWeb Ajax POST con risposta JSON Ajax 2

Discussioni simili