Click here to Skip to main content
15,914,943 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: DHTML collapsable tables Pin
Anonymous3-Sep-02 1:59
Anonymous3-Sep-02 1:59 
GeneralRe: DHTML collapsable tables Pin
Anonymous3-Sep-02 2:02
Anonymous3-Sep-02 2:02 
GeneralRe: DHTML collapsable tables Pin
alex.barylski3-Sep-02 23:20
alex.barylski3-Sep-02 23:20 
GeneralRe: DHTML collapsable tables Pin
Paul Watson3-Sep-02 23:34
sitebuilderPaul Watson3-Sep-02 23:34 
GeneralCDONTS sends to Badmail Pin
Megan Forbes31-Aug-02 6:44
Megan Forbes31-Aug-02 6:44 
GeneralRe: CDONTS sends to Badmail Pin
TigerNinja_3-Sep-02 7:58
TigerNinja_3-Sep-02 7:58 
GeneralWeird Javascript issue Pin
Jamie Nordmeyer30-Aug-02 11:13
Jamie Nordmeyer30-Aug-02 11:13 
GeneralRe: Weird Javascript issue Pin
Richard Deeming2-Sep-02 0:51
mveRichard Deeming2-Sep-02 0:51 
You're probably picking up a THEAD and a TBODY, which get thrown in just to confuse you! Wink | ;)

This should help you find out what the structure is:
NB: I've only tested this on IE6, but it should work!

<html>
<head>
<title>Test Child Nodes</title>
<script language="javascript">
<!--
function Test() {
   var lst = document.getElementById("lstControls");
   var ctrl = document.getElementById("RadioButtonList1");
   if (!ctrl.type && typeof(ctrl.firstChild)!='undefined') {
      IterateControl(ctrl, '', lst);
   }
}

function IterateControl(oParent, sParent, lst) {
   for(var i=0; i<oParent.childNodes.length; i++) {
      var item = oParent.childNodes[i];
      if (item.tagName) {
         var opt = document.createElement("OPTION");
         opt.text = sParent + item.tagName;
         opt.value = item.outerHTML;
         lst.add(opt);
         IterateControl(item, sParent + '   ', lst);
      }
   }
}

function showControl(lst) {
   var lbl = document.getElementById("lblControl");
   lbl.innerText = lst.options[lst.selectedIndex].value;
}
//-->
</script>
</head>
<body>
<table id="RadioButtonList1" border="0">
<tr>
<td>
<input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="Item 1" checked="checked" />
<label for="RadioButtonList1_0">Item 1</label>
</td>
</tr>
<tr>
<td>
<input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="Item 2" />
<label for="RadioButtonList1_1">Item 2</label>
</td>
</tr>
<tr>
<td>
<input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" value="Item 3" />
<label for="RadioButtonList1_2">Item 3</label>
</td>
</tr>
<tr>
<td>
<input id="RadioButtonList1_3" type="radio" name="RadioButtonList1" value="Item 4" />
<label for="RadioButtonList1_3">Item 4</label>
</td>
</tr>
</table>

<button onclick="Test();">Test</button>

<br />

<select size="20" id="lstControls" onchange="showControl(this);">

</select>

<br />

<div id="lblControl" style="font-family:Courier New; font-size:10pt; color:navy;"></div>

</body>
</html>

GeneralParser error: could'nt load .global file Pin
kinf30-Aug-02 5:37
kinf30-Aug-02 5:37 
General.NET page templates and the form element Pin
MS le Roux30-Aug-02 3:32
MS le Roux30-Aug-02 3:32 
General.NET Richtextbox control Pin
Paul Watson29-Aug-02 23:57
sitebuilderPaul Watson29-Aug-02 23:57 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming30-Aug-02 1:02
mveRichard Deeming30-Aug-02 1:02 
GeneralRe: .NET Richtextbox control Pin
Paul Watson30-Aug-02 1:09
sitebuilderPaul Watson30-Aug-02 1:09 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming30-Aug-02 1:51
mveRichard Deeming30-Aug-02 1:51 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming4-Sep-02 5:47
mveRichard Deeming4-Sep-02 5:47 
GeneralSerial Port Pin
Todd Marshall29-Aug-02 3:09
Todd Marshall29-Aug-02 3:09 
GeneralRe: Serial Port Pin
Maciej Pirog29-Aug-02 4:26
Maciej Pirog29-Aug-02 4:26 
GeneralGet date of file update with JavaScript Pin
Dominik Reichl29-Aug-02 1:06
Dominik Reichl29-Aug-02 1:06 
GeneralRe: Get date of file update with JavaScript Pin
Stephane Rodriguez.29-Aug-02 1:23
Stephane Rodriguez.29-Aug-02 1:23 
GeneralRe: Get date of file update with JavaScript Pin
Dominik Reichl29-Aug-02 1:30
Dominik Reichl29-Aug-02 1:30 
GeneralRe: Get date of file update with JavaScript Pin
Stephane Rodriguez.29-Aug-02 1:50
Stephane Rodriguez.29-Aug-02 1:50 
GeneralRe: Get date of file update with JavaScript Pin
Dominik Reichl29-Aug-02 22:06
Dominik Reichl29-Aug-02 22:06 
GeneralASP COM Component Pin
[James Pullicino]29-Aug-02 0:43
[James Pullicino]29-Aug-02 0:43 
GeneralRe: ASP COM Component Pin
Philip Patrick29-Aug-02 1:47
professionalPhilip Patrick29-Aug-02 1:47 
GeneralRe: ASP COM Component Pin
[James Pullicino]29-Aug-02 23:30
[James Pullicino]29-Aug-02 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.