<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Prolema javascript]]></title><description><![CDATA[<p dir="auto">Buongiorno!<br />
Ho scritto uno script in javascript e jquery che prende dei dati da un file JSON e li stampa in una &lt;section&gt;: con firefox funziona perfettamente ma in safari no.  come mai?</p>
<pre><code class="language-php">&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		
		&lt;script type="text/javascript" src="jquery.js"&gt;
		&lt;/script&gt;
		&lt;script type="text/javascript"&gt;
$(document).ready(function(){
	$.getJSON('./dbase.json',function(data){
		// ciclo l'array
		for(i=0; i&lt;data.length; i++ ){
			var content = '&lt;li&gt;';
			content += data[i].nome + ' e ' + data[i].stato;
			content += '&lt;/li&gt;';
			$("#lista").append(content);
		}
	});
});
		&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;section id="wrapper"&gt;
			&lt;header&gt;
				&lt;h1&gt;RicordaCose&lt;/h1&gt;
			&lt;/header&gt;
			&lt;section id="aggiungi"&gt;
				&lt;input type="text" /&gt;&lt;input type="button" value="Aggiungi" /&gt;
			&lt;/section&gt;
			&lt;section id="lista"&gt;
			&lt;/section&gt;
		&lt;/section&gt;
	&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/133285/prolema-javascript</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 11:00:13 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/133285.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Aug 2010 07:54:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prolema javascript on Sun, 29 Aug 2010 13:19:50 GMT]]></title><description><![CDATA[<p dir="auto">Grazie mille ora provo.</p>
]]></description><link>https://dev.connect.gt/post/928834</link><guid isPermaLink="true">https://dev.connect.gt/post/928834</guid><dc:creator><![CDATA[zaffa]]></dc:creator><pubDate>Sun, 29 Aug 2010 13:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Prolema javascript on Wed, 25 Aug 2010 19:35:08 GMT]]></title><description><![CDATA[<p dir="auto">Ciao Zaffa, così su due piedi mi potrebbe venire un dubbio sul fatto che lo script non riesca a trovare il json.</p>
<p dir="auto">Prova a mettere come path:</p>
<p dir="auto">$.getJSON('dbase.json',function(data){</p>
]]></description><link>https://dev.connect.gt/post/928842</link><guid isPermaLink="true">https://dev.connect.gt/post/928842</guid><dc:creator><![CDATA[gh3]]></dc:creator><pubDate>Wed, 25 Aug 2010 19:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to Prolema javascript on Wed, 25 Aug 2010 15:45:05 GMT]]></title><description><![CDATA[<p dir="auto">Non ho nessun link... sto lavorando in locale per fare una prova!:)</p>
]]></description><link>https://dev.connect.gt/post/928833</link><guid isPermaLink="true">https://dev.connect.gt/post/928833</guid><dc:creator><![CDATA[zaffa]]></dc:creator><pubDate>Wed, 25 Aug 2010 15:45:05 GMT</pubDate></item><item><title><![CDATA[Reply to Prolema javascript on Wed, 25 Aug 2010 08:38:11 GMT]]></title><description><![CDATA[<p dir="auto">puoi postare il link?</p>
]]></description><link>https://dev.connect.gt/post/928835</link><guid isPermaLink="true">https://dev.connect.gt/post/928835</guid><dc:creator><![CDATA[karnak]]></dc:creator><pubDate>Wed, 25 Aug 2010 08:38:11 GMT</pubDate></item></channel></rss>