<?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[CheckBox e getElementById]]></title><description><![CDATA[<p dir="auto">Ciao a tutti vorrei sapere se qualcuno sa dirmi come scrivere la parte in html per far si che quando una CheckBox è spuntata una ListBox diventi <a href="http://hidden.In" rel="nofollow ugc">hidden.In</a> Javascript ho provato con</p>
<hr />
<p dir="auto">function updatevista() {if (document.getElementById('nomeCheckBox').checked==true){document.getElementById('nome_listBox').).style.visibility='hidden'}else{document.getElementById('nome_listBox').).style.visibility='visible'<br />
}</p>
<hr />
<p dir="auto">ma non funziona.Vorrei sapere se qualcuno sa dirmi comedevo fare?<br />
nel codice html devo scrivere &lt;input type="checkbox" id="nomeCheckBox"....ecct?? se lo faccio quando compilo e arrivo alla pagine in questione visual studio mi da un parse error.</p>
<p dir="auto">Aiutatemi!!!</p>
]]></description><link>https://dev.connect.gt/topic/25681/checkbox-e-getelementbyid</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 00:20:07 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/25681.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jan 2007 21:13:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CheckBox e getElementById on Fri, 19 Jan 2007 18:01:16 GMT]]></title><description><![CDATA[<p dir="auto">Ciao Sai mica darmi anche una dritta su questo?</p>
<pre><code class="language-html">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Menu Rollover ý la Project Seven&lt;/title&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=iso-8859-1"&gt;
&lt;meta name="generator" content="HAPedit 3.0"&gt;
&lt;style type="text/css"&gt;
div
{
    font-size: 15px;
    font-family: Arial;
}

a.MENU
{
    background-color: #F7F7F7;
    color: #A2A2A2;
    font-weight: Bold;
    text-decoration: None;
    width: 100px;
    padding: 1px;
    border: Solid 1px #000000;
}
a:hover.MENU
{
    background-color: #F7F7F7;
    color: #000000;
    font-weight: Bold;
    text-decoration: None;
    width: 100px;
    padding: 1px;
    border: Solid 1px #000000;
}
 
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h3&gt;Benvenuto!&lt;/h3&gt;
&lt;div id="MENU"&gt;
    &lt;a class="MENU" href="#"&gt;Pagina1&lt;/a&gt;
    &lt;a class="MENU" href="#"&gt;Pagina2&lt;/a&gt;
    &lt;a class="MENU" href="#"&gt;Pagina3&lt;/a&gt;
    &lt;a class="MENU" href="#"&gt;Pagina4&lt;/a&gt;
    &lt;a class="MENU" href="#"&gt;Pagina5&lt;/a&gt;
    &lt;a class="MENU" href="#"&gt;Pagina6i&lt;/a&gt;
    
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">Vorrei mettere lo stato attivo alla Pagina1 in modo che l'utente che naviga da una pagina all'altra sappia in quale si trova(metterei lo stavo attivo diverso su ogni pagina chiamata)</p>
]]></description><link>https://dev.connect.gt/post/446861</link><guid isPermaLink="true">https://dev.connect.gt/post/446861</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Fri, 19 Jan 2007 18:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Wed, 17 Jan 2007 10:44:59 GMT]]></title><description><![CDATA[<p dir="auto">Grande!!!!!!!!!!!Era proprio quello....cambiare onchange con onclick<br />
Grazie mille!!!!!Sei stato veramente utilissimo.</p>
]]></description><link>https://dev.connect.gt/post/446860</link><guid isPermaLink="true">https://dev.connect.gt/post/446860</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Wed, 17 Jan 2007 10:44:59 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Wed, 17 Jan 2007 10:31:03 GMT]]></title><description><![CDATA[<p dir="auto">Mizzeca...bel casino sta pagina <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /><br />
Certo non è tanto facile capire senza vedere gli errori generati ma cmq in linea teorica il js che ti ho fatto dovrebbe andare.<br />
Prova anche nello c# a sostituire</p>
<pre><code>CheckBox8.Attributes.Add("onchange", "UpdateView();");
</code></pre>
<p dir="auto">con</p>
<pre><code>CheckBox8.Attributes.Add("onclick", "UpdateView();");
</code></pre>
]]></description><link>https://dev.connect.gt/post/446853</link><guid isPermaLink="true">https://dev.connect.gt/post/446853</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Wed, 17 Jan 2007 10:31:03 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Wed, 17 Jan 2007 09:53:27 GMT]]></title><description><![CDATA[<pre><code class="language-html">&lt;%@ Page language="c#" Codebehind="avanzata.aspx.cs" AutoEventWireup="false" Inherits="eTechPlus.Web.avanzata" %&gt;
&lt;%@ Register TagPrefix="uc1" TagName="titleBar" Src="titleBar.ascx" %&gt;
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;title&gt;eTechPlus&lt;/title&gt;
&lt;meta content="False" name="vs_snapToGrid"&gt;
&lt;meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"&gt;
&lt;meta content="C#" name="CODE_LANGUAGE"&gt;
&lt;meta content="JavaScript" name="vs_defaultClientScript"&gt;
&lt;meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"&gt;
&lt;meta http-equiv="Cache-Control" content="no-cache"&gt;
&lt;meta http-equiv="Pragma" content="no-cache"&gt;
&lt;meta http-equiv="Expires" content="1"&gt;
&lt;LINK href="css/eTech.css" type="text/css" rel="stylesheet"&gt;
&lt;/STYLE&gt;
&lt;script language="javascript"&gt;
function UpdateView()
{
if (document.getElementById('&lt;%Response.Write(CheckBox8.ClientID);%&gt;').checked==true)
{
document.getElementById('&lt;%Response.Write(Listbox2.ClientID);%&gt;').style.visibility='hidden'
}
else
{
document.getElementById('&lt;%Response.Write(Listbox2.ClientID);%&gt;').style.visibility='visible'
}
}
&lt;/script&gt;
&lt;script language="javascript" id="clientEventHandlersJS"&gt;
 
&lt;/HEAD&gt;
&lt;body onload="javascript:LoadRoutines();" MS_POSITIONING="GridLayout"&gt;
 
&lt;form id="applicazione" method="post" runat="server"&gt;
 
&lt;asp:listbox id="ListBox15" style="Z-INDEX: 100; LEFT: 170px; POSITION: absolute; TOP: 173px" tabIndex="2" runat="server" Height="22" Width="105px" Rows="1" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;asp:listbox id="ListBox1" style="Z-INDEX: 149; LEFT: 603px; POSITION: absolute; TOP: 225px" tabIndex="5" runat="server" Height="24px" Width="180px" Rows="1"&gt;&lt;/asp:listbox&gt;&lt;asp:label id="Label4" style="Z-INDEX: 148; LEFT: 178px; POSITION: absolute; TOP: 347px" runat="server" Height="12px" Width="515px" CssClass="lblSmallBold"&gt;&lt;/asp:label&gt;&lt;asp:label id="Label3" style="Z-INDEX: 147; LEFT: 180px; POSITION: absolute; TOP: 323px" runat="server" Height="14px" Width="512px" CssClass="lblSmallBold"&gt;&lt;/asp:label&gt;&lt;asp:label id="Label2" style="Z-INDEX: 146; LEFT: 181px; POSITION: absolute; TOP: 299px" runat="server" Height="16px" Width="508px" CssClass="lblSmallBold"&gt;&lt;/asp:label&gt;&lt;asp:textbox id="textBox100" style="Z-INDEX: 144; LEFT: 697px; POSITION: absolute; TOP: 352px" runat="server" Height="21px" Width="194px" Font-Size="8pt"&gt;&lt;/asp:textbox&gt;&lt;asp:textbox id="txtBox99" style="Z-INDEX: 143; LEFT: 696px; POSITION: absolute; TOP: 272px" runat="server" Height="21px" Width="194px" Font-Size="8pt"&gt;&lt;/asp:textbox&gt;&lt;asp:checkbox id="CheckBox7" style="Z-INDEX: 141; LEFT: 13px; POSITION: absolute; TOP: 368px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox6" style="Z-INDEX: 140; LEFT: 12px; POSITION: absolute; TOP: 348px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox5" style="Z-INDEX: 139; LEFT: 12px; POSITION: absolute; TOP: 324px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox4" style="Z-INDEX: 138; LEFT: 11px; POSITION: absolute; TOP: 299px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox3" style="Z-INDEX: 137; LEFT: 12px; POSITION: absolute; TOP: 275px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Text="Diagnosi" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox2" style="Z-INDEX: 136; LEFT: 11px; POSITION: absolute; TOP: 252px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;
&lt;DIV id="pnlCustom" style="Z-INDEX: 131; LEFT: 6px; WIDTH: 1px; POSITION: absolute; TOP: 330px; HEIGHT: 61px" runat="server" ms_positioning="GridLayout"&gt;&lt;/DIV&gt;
&lt;INPUT id="hydErrMot" style="Z-INDEX: 130; LEFT: 616px; POSITION: absolute; TOP: 600px" type="hidden" name="hydErrMot" runat="server"&gt;&lt;INPUT id="hydErrMod" style="Z-INDEX: 129; LEFT: 456px; POSITION: absolute; TOP: 600px" type="hidden" name="hydErrMod" runat="server"&gt;&lt;INPUT id="jsprodID" style="Z-INDEX: 127; LEFT: 136px; POSITION: absolute; TOP: 600px" type="hidden" name="jsprodID" runat="server"&gt;&lt;INPUT class="RedButtonNoBorder" id="bttGoToInf" style="Z-INDEX: 125; LEFT: 4px; WIDTH: 192px; POSITION: absolute; TOP: 537px; HEIGHT: 41px" tabIndex="12" type="button" name="bttGoTo" runat="server"&gt;
&lt;asp:label id="Label25" style="Z-INDEX: 124; LEFT: 181px; POSITION: absolute; TOP: 233px" runat="server" CssClass="lblSmallBold"&gt;&lt;/asp:label&gt;&lt;INPUT class="RedButtonNoBorder" id="bttReset" style="Z-INDEX: 122; LEFT: 823px; WIDTH: 113px; POSITION: absolute; TOP: 220px; HEIGHT: 33px" tabIndex="13" type="button" runat="server"&gt;&lt;IFRAME id="fresult" style="Z-INDEX: 120; LEFT: 8px; WIDTH: 938px; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; POSITION: absolute; TOP: 469px; HEIGHT: 238px; BORDER-BOTTOM-STYLE: none" name="fresult" src="prova.aspx" runat="server"&gt;
&lt;/IFRAME&gt;
&lt;asp:label id="Label5" style="Z-INDEX: 118; LEFT: 410px; POSITION: absolute; TOP: 209px" runat="server" CssClass="lblSmallBold"&gt;Label&lt;/asp:label&gt;&lt;asp:label id="Label14" style="Z-INDEX: 117; LEFT: 604px; POSITION: absolute; TOP: 201px" runat="server" CssClass="lblSmallBold"&gt;Visualizza primi&lt;/asp:label&gt;&lt;asp:label id="Label10" style="Z-INDEX: 116; LEFT: 496px; POSITION: absolute; TOP: 86px" runat="server" CssClass="lblSmallBold" Visible="False"&gt;Label&lt;/asp:label&gt;&lt;asp:label id="Label1" style="Z-INDEX: 115; LEFT: 421px; POSITION: absolute; TOP: 153px" runat="server" CssClass="lblSmallBold"&gt;Label&lt;/asp:label&gt;&lt;asp:label id="Label2" style="Z-INDEX: 114; LEFT: 279px; POSITION: absolute; TOP: 153px" runat="server" Height="22px" Width="62px" CssClass="lblSmallBold"&gt;Label&lt;/asp:label&gt;&lt;asp:listbox id="Label3" style="Z-INDEX: 107; LEFT: 276px; POSITION: absolute; TOP: 172px" tabIndex="3" runat="server" Height="22" Width="138px" Rows="1" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;asp:listbox id="ListBox2" style="Z-INDEX: 106; LEFT: 687px; POSITION: absolute; TOP: 70px" tabIndex="6" runat="server" Width="142px" Rows="1" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;asp:listbox id="ListBox1" style="Z-INDEX: 104; LEFT: 418px; POSITION: absolute; TOP: 172px" tabIndex="4" runat="server" Height="22" Width="159px" Rows="1" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;asp:listbox id="ListBox3" style="Z-INDEX: 101; LEFT: 559px; POSITION: absolute; TOP: 231px" tabIndex="7" runat="server" Height="0px" Width="0px" Rows="1" Font-Size="0pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;uc1:titlebar id="TitleBar1" runat="server"&gt;&lt;/uc1:titlebar&gt;&lt;asp:label id="" style="Z-INDEX: 113; LEFT: 173px; POSITION: absolute; TOP: 155px" runat="server" CssClass="lblSmallBold"&gt;Label&lt;/asp:label&gt;&lt;asp:textbox id="TextBox150" style="Z-INDEX: 119; LEFT: 405px; POSITION: absolute; TOP: 226px" tabIndex="5" runat="server" Width="184px" Font-Size="8pt" Font-Names="Arial" MaxLength="8"&gt;&lt;/asp:textbox&gt;&lt;INPUT class="RedButtonNoBorder" id="bttSearch" style="Z-INDEX: 121; LEFT: 821px; WIDTH: 112px; POSITION: absolute; TOP: 177px; HEIGHT: 33px" tabIndex="11" type="button" runat="server"&gt;&lt;asp:textbox id="txtSearchText" style="Z-INDEX: 123; LEFT: 696px; POSITION: absolute; TOP: 325px" tabIndex="1" runat="server" Width="194px" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:textbox&gt;
&lt;TABLE id="Table1" style="Z-INDEX: 126; LEFT: 4px; WIDTH: 192px; POSITION: absolute; TOP: 512px; HEIGHT: 18px" cellSpacing="0" cellPadding="0" width="192" border="0"&gt;
&lt;TR&gt;
&lt;TD style="WIDTH: 110px"&gt;&lt;asp:hyperlink id="hypHelp" runat="server" NavigateUrl="javascript:void(0);" Visible="False"&gt;&lt;/asp:hyperlink&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;&lt;asp:hyperlink id="hypLogout" tabIndex="15" runat="server" Visible="False"&gt;&lt;/asp:hyperlink&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;asp:checkbox id="CheckBox8" style="Z-INDEX: 154; LEFT: 13px; POSITION: absolute; TOP: 392px" runat="server" Font-Size="X-Small" Width="225px" Height="17px" Font-Bold="True" Text="Impianto Elettrico"&gt;&lt;/asp:checkbox&gt;
&lt;INPUT id="hydErr1" style="Z-INDEX: 128; LEFT: 296px; POSITION: absolute; TOP: 600px" type="hidden" name="hydErr1" runat="server"&gt;
 
&lt;asp:button id="btnVK" style="Z-INDEX: 108; LEFT: 321px; POSITION: absolute; TOP: 177px" runat="server" Height="8px" Width="72px" Text="VK"&gt;&lt;/asp:button&gt;&lt;asp:button id="btnVKTelaio" style="Z-INDEX: 109; LEFT: 323px; POSITION: absolute; TOP: 179px" runat="server" Height="8px" Width="72px" Text="VKT"&gt;&lt;/asp:button&gt;&lt;asp:linkbutton id="LinkButton1" style="Z-INDEX: 133; LEFT: 15px; POSITION: absolute; TOP: 583px" runat="server" Height="8px" Width="188px" Visible="False"&gt;Change Password&lt;/asp:linkbutton&gt;&lt;asp:linkbutton id="LinkButton2" style="Z-INDEX: 134; LEFT: 55px; POSITION: absolute; TOP: 512px" runat="server" Height="19px" Width="111px" Visible="False"&gt;my e-mail&lt;/asp:linkbutton&gt;&lt;INPUT id="txtMinScore" style="FONT-SIZE: 8pt; Z-INDEX: 105; LEFT: 374px; WIDTH: 4px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 180px; HEIGHT: 5px" type="text" maxLength="2" size="1" value="39" name="txtMinScore"&gt;
 
&lt;asp:checkbox id="ckSyn" style="Z-INDEX: 102; LEFT: 440px; POSITION: absolute; TOP: 172px" runat="server" TextAlign="Left" Checked="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:checkbox id="CheckBox1" style="Z-INDEX: 135; LEFT: 12px; POSITION: absolute; TOP: 225px" runat="server" Height="17px" Width="178px" Font-Size="X-Small" Font-Bold="True"&gt;&lt;/asp:checkbox&gt;&lt;asp:textbox id="TextBox11" style="Z-INDEX: 142; LEFT: 696px; POSITION: absolute; TOP: 298px" runat="server" Height="21px" Width="194px" Font-Size="8pt"&gt;&lt;/asp:textbox&gt;&lt;asp:label id="Label1" style="Z-INDEX: 145; LEFT: 183px; POSITION: absolute; TOP: 271px" runat="server" Height="15px" Width="504px" CssClass="lblSmallBold"&gt;&lt;/asp:label&gt;&lt;asp:label id="Label5" style="Z-INDEX: 150; LEFT: 614px; POSITION: absolute; TOP: 157px" runat="server" CssClass="lblSmallBold"&gt;Label&lt;/asp:label&gt;&lt;asp:listbox id="ListBox2" style="Z-INDEX: 151; LEFT: 613px; POSITION: absolute; TOP: 176px" runat="server" Height="30px" Width="144px" Rows="1" Font-Size="8pt" Font-Names="Arial"&gt;&lt;/asp:listbox&gt;&lt;/form&gt;
&lt;/body&gt;
&lt;/HTML&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/446859</link><guid isPermaLink="true">https://dev.connect.gt/post/446859</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Wed, 17 Jan 2007 09:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Wed, 17 Jan 2007 08:43:10 GMT]]></title><description><![CDATA[<p dir="auto">La mia riga dovrebbe andare bene ma controlla i case sensitive.<br />
c# a differenza di VB è case sensitive quindi "listbox3" è diverso da "ListBox3"<br />
Controlla i nomi.<br />
Per il resto la procedura che ti ho incollato è corretta a meno che non ci siano altre sorprese nella pagina (per questo spesso c'è bisogno di vederla tutta)</p>
]]></description><link>https://dev.connect.gt/post/446854</link><guid isPermaLink="true">https://dev.connect.gt/post/446854</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Wed, 17 Jan 2007 08:43:10 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Wed, 17 Jan 2007 08:38:18 GMT]]></title><description><![CDATA[<p dir="auto">Ancora niente forse ti è utile questa riga all'interno del body</p>
<p dir="auto">&lt;form id="applicazione" method="post" runat="server"&gt;</p>
<p dir="auto">devo scrivere la riga che mi hai suggerito esattamente come hai fatto tu o devo fare qualche modifica?<br />
Mettendola pari pari non succede niente.</p>
]]></description><link>https://dev.connect.gt/post/446865</link><guid isPermaLink="true">https://dev.connect.gt/post/446865</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Wed, 17 Jan 2007 08:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 22:44:48 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>fbrz800</strong></p>
<p dir="auto">Per curiosità tu sai perchè come avevo scritto non funziona?</p>
</blockquote>
<p dir="auto">Semplice, l'id che assegni all'oggetto .net non corrisponde all'id generato in html e che cerchi di recuperare via js.<br />
Basta che guardi l'html generato e ti accorgi che l'id non è "tuonome" ma "c00_qualcosa" e roba simile.<br />
In pratica l'id che assegni è visibile solo al codice .net<br />
Con "nomeoggetto.clientid" accedi all'id client e cioè quello reale html.<br />
E' più difficile da spiegare che da vedere.</p>
]]></description><link>https://dev.connect.gt/post/446852</link><guid isPermaLink="true">https://dev.connect.gt/post/446852</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Tue, 16 Jan 2007 22:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 21:20:39 GMT]]></title><description><![CDATA[<p dir="auto">Per curiosità tu sai perchè come avevo scritto non funziona?</p>
]]></description><link>https://dev.connect.gt/post/446858</link><guid isPermaLink="true">https://dev.connect.gt/post/446858</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 21:20:39 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 20:39:17 GMT]]></title><description><![CDATA[<p dir="auto">Ok,grazie domani a lavoro provo e speriamo bene.Per ora grazie e ciao</p>
]]></description><link>https://dev.connect.gt/post/446857</link><guid isPermaLink="true">https://dev.connect.gt/post/446857</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 20:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 20:01:18 GMT]]></title><description><![CDATA[<p dir="auto">Ok...scusa ma non potevo sapere se avevi omesso apposta o no.<br />
Dunque prova così:</p>
<pre><code class="language-html"> function UpdateView()
{
    if (document.getElementById('&lt;%Response.Write(CheckBox8.ClientID);%&gt;').checked==true)
    {
    document.getElementById('&lt;%Response.Write(listbox3.ClientID);%&gt;').style.visibility='hidden'
    }
    else
    {
    document.getElementById('&lt;%Response.Write(listbox3.ClientID);%&gt;').style.visibility='visible'
    }
}
</code></pre>
<p dir="auto">dovrebbe funzionare.</p>
]]></description><link>https://dev.connect.gt/post/446849</link><guid isPermaLink="true">https://dev.connect.gt/post/446849</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Tue, 16 Jan 2007 20:01:18 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 18:43:12 GMT]]></title><description><![CDATA[<p dir="auto">Attualmente tutte le funzionalità della pagina iniziale vanno alla <a href="http://grande.Io" rel="nofollow ugc">grande.Io</a> vorrei solo far in modo che ora la list box che deve diventare visibile o no non venga più regolato dal vaore di una list box ma solamente se spunto o no una checkBox.Tra l'altro quando scrivo</p>
<p dir="auto">if(document.getElementById('CheckBox8').</p>
<p dir="auto">dopo il punto non compare in automatico l'opzione checked ma altre.</p>
<p dir="auto">Spero di essere stato più chiaro.Per altre info chiedi pure.Grazie</p>
]]></description><link>https://dev.connect.gt/post/446864</link><guid isPermaLink="true">https://dev.connect.gt/post/446864</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 18:43:12 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 18:38:46 GMT]]></title><description><![CDATA[<p dir="auto">Ciao non ho messo tutta la pagina perchè è veramente lunga,il tag di chiususa del js nella pagina originale c'è.Quello che vorrei fare è chiamare una funzione javascript da c#(updatevista) quando lo stato del checkbox viene <a href="http://cambiato.In" rel="nofollow ugc">cambiato.In</a> javascript la funzione controlla lo stato della checkbox è se è vera mi fa vedere la listbox altrimenti no.<br />
Quello che la pagina attualmente fa è far comparire una list box quando il valore di un'altra listbox assune un determinato valore,io vorrei fare la stessa cosa con un <a href="http://checkbox.La" rel="nofollow ugc">checkbox.La</a> parte della funzione che penso sia errata è</p>
<p dir="auto">if(document.getElementById('CheckBox8').checked ==true)</p>
<p dir="auto">la seconda parte è corretta perchè come detto in precedenza funziona con la funzione originale(list box che compare quando seleziono un vaore di un'altra listbox).</p>
<p dir="auto">se metto il checkbox come input come ho visto fare in molti forum javascript mi da un parse error.</p>
]]></description><link>https://dev.connect.gt/post/446863</link><guid isPermaLink="true">https://dev.connect.gt/post/446863</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 18:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 16:56:47 GMT]]></title><description><![CDATA[<p dir="auto">Ma sei sicuro di aver incollato tutta la pagina?<br />
Perchè è tutta sballata.<br />
Tra l'altro non vedo l'oggetto CheckBox8 ma solo ListBox3<br />
Il js non ha il tag di chiusura.<br />
In ogni caso com'è fatta la pagina vuoi farlo in javascript e non postback.<br />
Se quella è la pagina reale è normale che non funzioni. E' da restaurare da zero <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Se mi confermi che è quella allora vedo di aiutarti appena ho tempo.</p>
]]></description><link>https://dev.connect.gt/post/446847</link><guid isPermaLink="true">https://dev.connect.gt/post/446847</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Tue, 16 Jan 2007 16:56:47 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 16:17:02 GMT]]></title><description><![CDATA[<h2>Parte in c#</h2>
<p dir="auto">using System;<br />
using System.Collections;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using <a href="http://System.Web" rel="nofollow ugc">System.Web</a>;<br />
using System.Web.SessionState;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.HtmlControls;<br />
using System.Configuration;<br />
public class avanzata {</p>
<p dir="auto">override public void AssociateJavascript()<br />
{</p>
<p dir="auto">CheckBox8.Attributes.Add("onchange", "UpdateView();");<br />
}</p>
<h2>}<br />
parte in javascript</h2>
<p dir="auto">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &gt;<br />
&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;title&gt;pippo&lt;/title&gt;<br />
&lt;meta content="False" name="vs_snapToGrid"&gt;<br />
&lt;meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"&gt;<br />
&lt;meta content="C#" name="CODE_LANGUAGE"&gt;<br />
&lt;meta content="JavaScript" name="vs_defaultClientScript"&gt;<br />
&lt;meta content="<a href="http://schemas.microsoft.com/intellisense/ie5" rel="nofollow ugc">http://schemas.microsoft.com/intellisense/ie5</a>" name="vs_targetSchema"&gt;<br />
&lt;meta http-equiv="Cache-Control" content="no-cache"&gt;<br />
&lt;meta http-equiv="Pragma" content="no-cache"&gt;<br />
&lt;meta http-equiv="Expires" content="1"&gt;<br />
&lt;LINK href="css/pippo.css" type="text/css" rel="stylesheet"&gt;<br />
&lt;/STYLE&gt;<br />
&lt;script language="javascript"&gt;</p>
<p dir="auto">function UpdateView() { if(document.getElementById('CheckBox8').checked ==true){document.getElementById('listbox3').style.visibility = 'visible';}else {document.getElementById('listnox3').style.visibility = 'hidden';}<br />
&lt;/HEAD&gt;<br />
&lt;body onload="javascript:LoadRoutines();" MS_POSITIONING="GridLayout"&gt;</p>
<p dir="auto">&lt;asp:listbox id="Listbox3" style="Z-INDEX: 100; LEFT: 8px; POSITION: absolute; TOP: 140px" tabIndex="10" runat="server" Font-Names="Arial" Font-Size="8pt" Rows="1" Width="194px"&gt;&lt;/asp:listbox&gt;</p>
<p dir="auto">&lt;/body&gt;<br />
&lt;/HTML&gt;</p>
]]></description><link>https://dev.connect.gt/post/446862</link><guid isPermaLink="true">https://dev.connect.gt/post/446862</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 16:17:02 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 14:45:47 GMT]]></title><description><![CDATA[<p dir="auto">Posta il codice della pagina così capisco bene come si chiamano gli oggetti e le sub...</p>
]]></description><link>https://dev.connect.gt/post/446846</link><guid isPermaLink="true">https://dev.connect.gt/post/446846</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Tue, 16 Jan 2007 14:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 13:55:41 GMT]]></title><description><![CDATA[<p dir="auto">In postback .net cosa devo fare?</p>
]]></description><link>https://dev.connect.gt/post/446856</link><guid isPermaLink="true">https://dev.connect.gt/post/446856</guid><dc:creator><![CDATA[fbrz800]]></dc:creator><pubDate>Tue, 16 Jan 2007 13:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox e getElementById on Tue, 16 Jan 2007 13:14:04 GMT]]></title><description><![CDATA[<p dir="auto">Se ti riferisci ad una procedura javascript allora è così:</p>
<pre><code class="language-html">&lt;script language="javascript"&gt;
function updatevista()
{
    if (document.getElementById('nomeCheckBox').checked==true)
    {
    document.getElementById('nome_listBox').style.visibility='hidden'
    }
    else
    {
    document.getElementById('nome_listBox').style.visibility='visible'
    }
}
&lt;/script&gt;

&lt;input type="checkbox" id="nomeCheckBox" onclick="javascript:updatevista()" /&gt;

&lt;select id="nome_listBox"&gt;
&lt;option&gt;123&lt;/option&gt;
&lt;/select&gt;
</code></pre>
<p dir="auto">Se parli di postback di .net allora il discorso cambia</p>
]]></description><link>https://dev.connect.gt/post/446845</link><guid isPermaLink="true">https://dev.connect.gt/post/446845</guid><dc:creator><![CDATA[fusionman]]></dc:creator><pubDate>Tue, 16 Jan 2007 13:14:04 GMT</pubDate></item></channel></rss>