<?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[[javascript] Aiuto form]]></title><description><![CDATA[<p dir="auto">Ragazzi,<br />
ho bisogno di creare una form, e tramite javascript voglio che al cambiare del radio button che ho spuntato cambi l'indirizzo di OK.</p>
<p dir="auto">Ecco di seguito il codice:</p>
<p dir="auto">&lt;script type="text/javascript"&gt;<br />
&lt;!--<br />
function okURL (theForm){<br />
if (theForm.$$video1$$[0].checked)</p>
<pre><code>theForm.okURL.value = "cisco.com/web/IT/events/video_datasheet/video_uc500.html";
</code></pre>
<p dir="auto">if (theForm.$$video1$$[1].checked)</p>
<pre><code>theForm.okURL.value = "//cisco.com/web/IT/events/video_datasheet/video_asa5500.html";
}
</code></pre>
<p dir="auto">function Controllo(theForm) {</p>
<pre><code>alert (document.form1.okURL.value)

            if (theForm.$$nome$$.value == "") {

                           alert ("Per favore, introduci il campo NOME.");

                           theForm.$$nome$$.focus();

                           return (false);

            }
            
            if (theForm.$$cognome$$.value == "") {

                           alert ("Per favore, introduci il campo COGNOME.");

                           theForm.$$cognome$$.focus();

                           return (false);

            }
            
            if (theForm.$$ragione_sociale$$.value == "") {

                           alert ("Per favore, introduci il campo RAGIONE SOCIALE.");

                           theForm.$$ragione_sociale$$.focus();

                           return (false);

            }

                            
            if (theForm.$$citta$$.value == "") {

                           alert ("Per favore, introduci il campo CITTA'.");

                           theForm.$$citta$$.focus();

                           return (false);

            }
            
                    
            if (theForm.$$provincia$$.value == "") {

                           alert ("Per favore, introduci il campo PROVINCIA'.");

                           theForm.$$provincia$$.focus();

                           return (false);

            }
            
            
            if (theForm.$$indirizzo$$.value == "") {

                           alert ("Per favore, introduci il campo INDIRIZZO'.");

                           theForm.$$indirizzo$$.focus();

                           return (false);

            }
            
            
            if (theForm.$$to$$.value == "") {

                           alert ("Per favore, introduci il campo E-MAIL.");

                           theForm.$$to$$.focus();

                           return (false);

            }
            
          theForm.to.value=theForm.$$to$$.value;
            
            if (theForm.$$telefono$$.value == "") {

                           alert ("Per favore, introduci il campo TELEFONO'.");

                           theForm.$$telefono$$.focus();

                           return (false);

            }
</code></pre>
<p dir="auto">}</p>
<p dir="auto">function MM_preloadImages() { <a href="//v3.0">//v3.0</a><br />
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br />
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++)<br />
if (a*.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a*;}}**<br />
<strong>}</strong></p>
<p dir="auto"><strong>function MM_swapImgRestore() { <a href="//v3.0">//v3.0</a></strong><br />
<em><em>var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i&lt;a.length&amp;&amp;(x=a</em>)&amp;&amp;x.oSrc;i++) x.src=x.oSrc;</em>**<br />
<em><strong>}</strong></em></p>
<p dir="auto"><em><strong>function MM_findObj(n, d) { <a href="//v4.01">//v4.01</a></strong></em><br />
<em><strong>var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))&gt;0&amp;&amp;parent.frames.length) {</strong></em><br />
<em><strong>d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}</strong></em><br />
<strong><em>if(!(x=d[n])&amp;&amp;d.all) x=d.all[n]; for (i=0;!x&amp;&amp;i&lt;d.forms.length;i++) x=d.forms</em>[n];</strong>**<br />
<em><strong><em>for(i=0;!x&amp;&amp;d.layers&amp;&amp;i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers</em>.document);</strong></em>**<br />
<em><strong><strong>if(!x &amp;&amp; d.getElementById) x=d.getElementById(n); return x;</strong></strong></em><br />
<em><strong><strong>}</strong></strong></em></p>
<p dir="auto"><em><strong><strong>function MM_swapImage() { <a href="//v3.0">//v3.0</a></strong></strong></em><br />
<em><strong><strong>var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3)</strong></strong></em><br />
<strong><strong><em>if ((x=MM_findObj(a</em>))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}</strong></strong>**<br />
<strong><strong><strong>}</strong></strong></strong></p>
<p dir="auto"><strong><strong><strong>//--&gt;</strong></strong></strong><br />
<strong><strong><strong>&lt;/script&gt;</strong></strong></strong><br />
<strong><strong><strong>&lt;/head&gt;</strong></strong></strong></p>
<p dir="auto"><strong><strong><strong>&lt;body&gt;</strong></strong></strong><br />
<strong><strong><strong>&lt;form name="form1" onsubmit="return Controllo(this)" method="post" action="scip. <a href="http://retesesa.it:81/deliverMail.asp" rel="nofollow ugc">retesesa.it:81/deliverMail.asp</a>" &gt;</strong></strong></strong></p>
<pre><code>                          ******&lt;input name="from" type="hidden" id="from" value="info@computervar.it" /&gt;******
                          ******&lt;input name="bcc" type="hidden" id="bcc" value="g.antichi@computervar.it" /&gt;******
                          ******&lt;input name="subject" type="hidden" id="subject" value="Iscrizione Computer Var-Cisco (Video Datasheet)" /&gt;******
                          ******&lt;input name="contentType" type="hidden" id="contentType" value="html" /&gt;******
                          ******&lt;input name="bodyForm" type="hidden" id="bodyForm" value="cvar/conferma_cisco-datasheet.htm" /&gt;******
                          ******&lt;input name="okURL" type="hidden" id="okURL" value=" cisco.com/web/IT/events/video_datasheet/video_uc500.html" /&gt;******
                          ******&lt;input name="koURL" type="hidden" id="koURL" value=" computervar.it/webinar_cisco/form_cisco_datasheet.htm" /&gt;******
                        
                                ******&lt;p&gt;nome&lt;/p&gt;&lt;input type="text" name="$$nome$$" size="20" /&gt;******
                            

                                ******&lt;p&gt;cognome&lt;/p&gt;&lt;input name="$$cognome$$" type="text" id="$$cognome$$" size="20" /&gt;******
                           
                                ******&lt;p&gt;rag. sociale&lt;/p&gt;&lt;input name="$$ragione_sociale$$" type="text" id="$$ragione_sociale$$" size="20" /&gt;******
                        
                              ******&lt;p&gt;indirizzo&lt;/p&gt;&lt;input name="$$indirizzo$$" type="text" id="$$indirizzo$$" size="20" /&gt;******

                              ******&lt;p&gt;città&lt;/p&gt;******
                              ******&lt;input name="$$citta$$" type="text" id="$$citta$$" size="20" /&gt;******
                              
                              ******&lt;p&gt;provincia&lt;/p&gt;&lt;input name="$$provincia$$" type="text" id="$$provincia$$" size="10" /&gt;******
                             
                              ******&lt;p&gt;cap&lt;/p&gt;&lt;input name="$$cap$$" type="text" id="$$cap$$" size="12" /&gt;******
                           
                              ******&lt;p&gt;email&lt;/p&gt;&lt;input name="$$to$$" id="$$to$$" type="text" size="20" /&gt;******
                              ******&lt;input name="to" id="to" type="hidden" value="" /&gt;******
                           
                                  ******&lt;p&gt;telefono&lt;/p&gt;&lt;input name="$$telefono$$" type="text" id="$$telefono$$" size="15" /&gt;******

                              ******&lt;p&gt;uc500&lt;/p&gt;&lt;input name="$$video1$$" type="radio" id="$$video1$$3" value="Unified Communications 500" checked="checked" /&gt;******
                              ******&lt;p&gt;asa5500&lt;/p&gt;&lt;input name="$$video1$$" type="radio" id="$$video2$$" value="ASA 5500" /&gt;******
                           
                          ******&lt;input type="submit" value="Registrati" name="B12" /&gt;******
                        
                      ******&lt;/form&gt;******
</code></pre>
<p dir="auto"><strong><strong><strong>Dove sta l'errore?? In pratica non riesco a cambiare l'indirizzo di okURL al variare dell'opzione spuntata.</strong></strong></strong></p>
<p dir="auto"><strong><strong><strong>Grazie a tutti.</strong></strong></strong></p>
]]></description><link>https://dev.connect.gt/topic/87368/javascript-aiuto-form</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 10:12:46 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/87368.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Nov 2008 13:06:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [javascript] Aiuto form on Thu, 13 Nov 2008 16:42:10 GMT]]></title><description><![CDATA[<p dir="auto">Ciao piazzeus, hai già aperto un 3D <a href="http://www.giorgiotave.it/forum/scripting-lato-client/95742-javascript-aiuto-form.html" rel="nofollow ugc">qui</a> per la stessa richiesta, ti ricordo che questo non è concesso dal regolamento :</p>
<blockquote>
<p dir="auto"><strong>11.</strong> <strong>Crossposting</strong></p>
<p dir="auto"><strong>11.0.</strong> Non è consentito postare lo stesso messaggio o parti di esso in più aree del forum, salvo casi di particolare interesse che dovranno comunque essere autorizzati da un Admin.</p>
<p dir="auto"><strong>11.1.</strong> Messaggi crossposting verranno eliminati e quando possibile riuniti.<br />
Se ripetuti potranno portare all'allontanamento dell'utente.</p>
</blockquote>
]]></description><link>https://dev.connect.gt/post/780785</link><guid isPermaLink="true">https://dev.connect.gt/post/780785</guid><dc:creator><![CDATA[jack1971]]></dc:creator><pubDate>Thu, 13 Nov 2008 16:42:10 GMT</pubDate></item></channel></rss>