<?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[[AJAX] Invio form su IE è OK, su FI no]]></title><description><![CDATA[<p dir="auto">Salve.</p>
<p dir="auto">Mi sto sbattendo su un problema con ajax. Mi sono avvicinato da poco a questo "linguaggio".</p>
<p dir="auto">Praticamente mentre i dati inviati vengono processati visualizzo una gif in movimento per raffigurare l'attesa. Quando i dato sono stati processati e la pagina test.php mi restituisce una stringa, smetto di visualizzare l'immagine e visualizzo proprio quella stringa.<br />
Su IE tutto ok.<br />
Su Firefox invece mi rimane la gif.</p>
<p dir="auto">Come mai<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/f71a0c43-865f-4388-9868-8b387eebeeb1-mmmm.gif?v=2190ae3dadd" class="not-responsive emoji emoji-customizations emoji--mmm" style="height:1.4em;width:auto;vertical-align:middle" title=":?" alt="" /><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title=":x:" alt="❌" />x</p>
<p dir="auto">Posto qui sotto il codice</p>
<pre><code>[LEFT][SIZE=2][COLOR=#008200]&lt;script type="text/javascript" language="Javascript"&gt;[/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008200]var myRequest = null;[/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008200]function CreateXmlHttpReq2(handler) {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]var xmlhttp = null;[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]try {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]xmlhttp = new XMLHttpRequest();[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]} catch(e) {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]try {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]} catch(e) {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]xmlhttp.onreadystatechange = handler;[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]return xmlhttp;[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008200]function myHandler2() {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]if (myRequest.readyState &lt; 4){[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]e = document.getElementById("result_div");[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]e.innerHTML = "&lt;img src=\"immagini/loader.gif\" alt=\"\" title=\"\" /&gt;";[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]if (myRequest.readyState == 4 &amp;&amp; myRequest.status == 200) {[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]e = document.getElementById("result_div");[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]e.innerHTML = myRequest.responseText;[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]}[/COLOR][/SIZE][/LEFT]
 
 
[LEFT][SIZE=2][COLOR=#008200]function esempio4() {[/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008200]var r = Math.random();[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]tinyMCE.triggerSave(true,true);[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]myRequest = CreateXmlHttpReq2(myHandler2);[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]myRequest.open("POST", "test.php", true);[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]myRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]myRequest.send([/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]"nome="+submission.nome.value +[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]"&amp;url="+submission.url.value[/COLOR][/SIZE]
[SIZE=2][COLOR=#008200]);[/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008200]}[/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008200]&lt;/script&gt;[/COLOR][/SIZE]
</code></pre>
]]></description><link>https://dev.connect.gt/topic/63347/ajax-invio-form-su-ie-è-ok-su-fi-no</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 21:41:19 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/63347.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Mar 2008 19:38:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [AJAX] Invio form su IE è OK, su FI no on Mon, 17 Mar 2008 12:33:41 GMT]]></title><description><![CDATA[<p dir="auto">Non riesco ad uscirne...  Qualcuno sa instradarmi?</p>
]]></description><link>https://dev.connect.gt/post/682639</link><guid isPermaLink="true">https://dev.connect.gt/post/682639</guid><dc:creator><![CDATA[buccia81]]></dc:creator><pubDate>Mon, 17 Mar 2008 12:33:41 GMT</pubDate></item></channel></rss>