Closed Bug 269590 Opened 20 years ago Closed 17 years ago

Javascript controlled section of page not displaying

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mlohbihler, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I'd like to report a site that doesn't display properly in the Firefox browser.
The problem is that i wrote the site (and still maintain it). It works with IE
(yeah, i only tested it on IE at the time - i'm just a man after all). Anyway, i
don't know why it doesn't work since, as far as i know, i'm w3c compliant.

Oh yeah, the other problem is that the page that has the problem is secured
under a login, so you can't get to it. However, i've provided the source of the
page in the Actual results section. Not all of the page features will work
(because they rely on secure areas of site), but you should be able to see the
problem immediately if you compare with IE.

Perhaps it's just DOM differences. If so, any recommendations on how to get it
working with Firefox (while still working with IE) would be much appreciated.


Reproducible: Always
Steps to Reproduce:
1. Load the source below with IE
2. Load the source below with Firefox
3. Compare
4. Repeat (just kidding).

Actual Results:  





<html lang="en">







<head>
    <base href="https://www.idimax.com/secure/admin_edit_client_gateway.jsp">

    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Gateway Configuration</title>

    <!-- InstanceEndEditable -->
    <!-- Alex's stuff -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="/secure_rc/styles/common.css" rel="stylesheet" type="text/css">
    <link href="/secure_rc/styles/grid.css" rel="stylesheet" type="text/css">
    <link href="/secure_rc/styles/forms.css" rel="stylesheet" type="text/css">

    <script src="/secure_rc/scripts/common.js" language="JavaScript"></script>
    <script src="/secure_rc/scripts/grid.js" language="JavaScript"></script>
    <!-- End Alex's stuff -->

    <!-- Old stuff, don't know if it is used. TODO: maybe find out if this is
used. -->
    <script src="/js/common.js" language="JavaScript"></script>
    <script src="/js/add_remove_listboxes.js" language="JavaScript"></script>

    <!-- End old stuff. -->

    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>



<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td rowspan="2"><img
src="/secure_rc/images/brandingLogos/incerno.site.header.png" width="366"
height="88"></td>
      <td width="99%" align="lefta" valign="top"
background="/secure_rc/images/header.background.1.png"><table border="0"
cellspacing="0" cellpadding="0">

          <tr>
            <td colspan="6"><img src="/secure_rc/images/p.png" width="15"
height="11"></td>
          </tr>
          <tr>
            
            
              <td><a href="/secure/home.do"><img
src="/secure_rc/images/header.mnu.01.png" width="113" height="18"
onMouseOver="menuRollOver(this)"></a></td>
            
            
            
              <td><a href="/secure/queryList.do"><img
src="/secure_rc/images/header.mnu.02.png" width="113" height="18"
onMouseOver="menuRollOver(this)"></a></td>
            
            
            
              <td><a href="/secure/active_notifications.do"><img
src="/secure_rc/images/header.mnu.03.png" width="113" height="18"
onMouseOver="menuRollOver(this)"></a></td>
            
            
            
              <td><a href="/secure/site_status.do"><img
src="/secure_rc/images/header.mnu.04.png" width="113" height="18"
onMouseOver="menuRollOver(this)"></a></td>
            
            
              <td><a href="/secure/admin_home.do"><img
src="/secure_rc/images/header.mnu.05-over.png" width="113" height="18"></a></td>

            
            
          </tr>
          <tr>
            <td colspan="5" align="center" valign="top"><img
src="/secure_rc/images/header.mnu.line.png" width="526" height="7"></td>
          </tr>
      </table></td>
      <td><img src="/secure_rc/images/header.background.1.png" width="18"
height="66"></td>
      <td rowspan="2"><img src="/secure_rc/images/p.png" width="8" height="10"></td>
    </tr>
    <tr>

      <td align="right"
background="/secure_rc/images/header.background.2.png"><table border="0"
cellspacing="0" cellpadding="0">
        <tr>
          <td class="headerText">logged in as: <span
class="headerUserId">mlohbihler</span></td>
          <td><img src="/secure_rc/images/link.spacer.png" width="22"
height="12"></td>
          
          <td><a href="http://www.idimax.com/logout.do?a=1100324550852"
class="headerUser">logout</a></td>


        </tr>

      </table></td>
      <td><img src="/secure_rc/images/header.background.2.png" width="18"
height="22"></td>
    </tr>
    <tr>
      <td colspan="4" class="bodyContent"><!-- InstanceBeginEditable name="Main" -->


<table width="100%" border="0" cellspacing="0" cellpadding="0">
  

  <!-- Tabbed Navigation Elements -->
  <tr>

    <td background="/secure_rc/images/tabs.01.08.png"><img
src="/secure_rc/images/tabs.01.05.png" width="9" height="21"><a
href="/secure/admin_change_password.jsp"><img
src="/secure_rc/images/tab.view.change.pw.0.png" width="68" height="21"></a><img
src="/secure_rc/images/tabs.01.01.png" width="19" height="21"><a
href="/secure/get_user_list.do"><img
src="/secure_rc/images/tab.user.admin.0.png" width="72" height="21"></a><img
src="/secure_rc/images/tabs.01.01.png" width="19" height="21"><a
href="/secure/get_group_list.do"><img
src="/secure_rc/images/tab.group.admin.0.png" width="81" height="21"></a><img
src="/secure_rc/images/tabs.01.01.png" width="19" height="21"><a
href="/secure/get_region_list.do"><img
src="/secure_rc/images/tab.region.admin.0.png" width="84" height="21"></a><img
src="/secure_rc/images/tabs.01.01.png" width="19" height="21"><a
href="/secure/get_site_list.do"><img
src="/secure_rc/images/tab.site.admin.0.png" width="66" height="21"></a><img
src="/secure_rc/images/tabs.01.07.png" width="19" height="21"><a
href="/secure/get_gateway_list.do"><img
src="/secure_rc/images/tab.gateway.admin.1.png" width="96" height="21"></a><img
src="/secure_rc/images/tabs.01.02.png" width="19" height="21"><a
href="/secure/get_client_list.do"><img
src="/secure_rc/images/tab.client.admin.0.png" width="81" height="21"></a><img
src="/secure_rc/images/tabs.01.03.png" width="19" height="21"></td>
  </tr>
  <!-- End Tabbed Navigation Elements -->

  <tr>
    <td background="/secure_rc/images/tabs.01.under.png"><table border="0"
cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="/secure_rc/images/tabs.01.under.png" width="8"
height="20"></td>
        <td class="headerTabs">Gateway Configuration</td>

      </tr>
    </table></td>
  </tr>
</table>


<script language="javascript" src="/js/arrayex.js"></script>
<script language="javascript" src="/js/xmldoc2.js"></script>
<script language="javascript" src="/js/utilities.js"></script>
<script language="javascript" src="/js/gateway.js"></script>

<script language="javascript" src="/js/jsrsClient.js"></script>
<script type='text/javascript' src='/js/cbe_core.js'></script>
<script language="javascript">

var PAGE_DEVICE_LIST                    = "panel_deviceList";

var PAGE_SAVE_CONFIRM                   = "panel_saveConfirm";

var PAGE_OTHER_CONFIG                   = "panel_otherConfig";

var g_currentPage = 'none';
var xmlValidationResults = '';

// Instantiate Gateway object
var gateway = new Gateway();

var portIds = new Array();


  
  




// Call our window.onload method (store the original one first so that it may be
called in the onload method)
var oldWindowOnLoad = window.onload;
window.onload = window_onLoad;

// This little snippet of code keeps our session alive while
// we work by checking in with the server.
function sessionCheck() {
    jsrsPOST = false;
    jsrsExecute("/Report", null, "doNothing", null, false);
}


/***************************************************************
* Wizard Functions
***************************************************************/
function window_onLoad() {
    // If any, call original winow.onload method
    if (oldWindowOnLoad)
        oldWindowOnLoad;

    // Load xml content
    gateway.loadXML(document.clientGatewayForm.deviceConfig.value);


    // Show page 1
    showPage(PAGE_DEVICE_LIST);
}

function addOption(select, value, text) {
    var anOption = new Option();
    anOption.value = value;
    anOption.text = text;
    select.options[select.length] = anOption;
}

function showPage(pageName, renderingData) {
    // Validate the current page
    if (!validatePage(g_currentPage))
        return;

    // Save current page
    savePage(g_currentPage);

    changePage(pageName, renderingData);
}

function showPageNoSave(pageName, renderingData) {
    cbeGetElementById("divErrors").innerHTML = "";
    changePage(pageName, renderingData);
}

function changePage(pageName, renderingData) {
    // Hide the current page
    var previousPanel = cbeGetElementById(g_currentPage);
    if (previousPanel)
        previousPanel.style.display = 'none';

    // Render selected page
    renderData(pageName, renderingData);

    // Show selected page
    var panel = cbeGetElementById(pageName);
    if (panel.style.display == 'none')
        panel.style.display = '';

    g_currentPage = pageName;
    sessionCheck();
}

/**
 ** Returns false if page is not valid... else true.
 **/
function validatePage(page) {
    var errors = "";
    switch (page)
    {
        case 'none' :
            break;
        case PAGE_DEVICE_LIST :
            if
(!isNumberBetween(cbeGetElementById("txtHeartbeatInterval").value, 1, 8640000))
                errors += "<b>Polling interval</b> value must be a number
between 1 and 8640000.<br>";
//            if (getDeviceType() == '')
//                errors += "A <b>Device Type</b> must be chosen.<br>";
            break;

        case PAGE_SAVE_CONFIRM :
            // Nothing to check.
            break;

        case PAGE_OTHER_CONFIG :
            if (cbeGetElementById("ddtxtDevicePort").value == "")
              
                errors += "A <b>Device Port Id</b> must be chosen.<br>";
              
              
            errors += xmlValidationResults;

            break;
    }

    cbeGetElementById("divErrors").innerHTML = errors;

    return errors == "";
}



function savePage(page) {
    switch (page) {
        case 'none' :
            break;
        case PAGE_DEVICE_LIST :
           
gateway.setHeartbeatInterval(cbeGetElementById("txtHeartbeatInterval").value);

            break;

        case PAGE_SAVE_CONFIRM :
            break;

        case PAGE_OTHER_CONFIG :
            gateway.setDeviceNodeXml(cbeGetElementById("ddtxtDevicePort").value,
                                     cbeGetElementById("xmlConfiguration").value);
            break;
    }
}

function renderData(page, renderingData) {
    switch (page) {
        case 'none' :
            break;
        case PAGE_DEVICE_LIST :
            cbeGetElementById("txtHeartbeatInterval").value =
gateway.getHeartbeatInterval();

            updateDeviceList();
            break;

        case PAGE_SAVE_CONFIRM :
            break;

        case PAGE_OTHER_CONFIG :
            if (renderingData) {
                var xmlText = gateway.getDeviceNodeXml(renderingData);

                cbeGetElementById("xmlConfiguration").value = xmlText;
            }
            else
                cbeGetElementById("xmlConfiguration").value = "";
            populatePortList(renderingData);
            break;
    }
}

function updateDeviceList() {
    var html;

    // Get table in which to put filters
    var tableControl = cbeGetElementById("devices");
    clearTable(tableControl.getElementsByTagName("tbody")[0]);

    // Sort the slave node list.
    var deviceNodes = gateway.getDeviceNodes();

    var alternate;
    for (var i=0; i<deviceNodes.length; i++) {
        if (i%2 == 0)
            alternate = "Light";
        else
            alternate = "Dark";

        var deviceNode = deviceNodes[i];
        var row = document.createElement('TR');
        var portId = deviceNode.getAttribute("serialPortId");

        // Cell 1 - port
        var cell = document.createElement('TD');
        cell.className = "gridRow"+ alternate +"1";
        cell.innerHTML = getPortName(portId);
        row.appendChild(cell);

        // Cell 2 - device type
        var cell = document.createElement('TD');
        cell.className = "gridRow"+ alternate +"2";
        cell.innerHTML = deviceNode.childNodes[0].tagName;
        row.appendChild(cell);

        // Cell 3 - edit
        var cell = document.createElement('TD');
        cell.className = "gridRow"+ alternate +"1nt";
        cell.width = 33;
        cell.innerHTML = '<a href="javascript:showPage(PAGE_OTHER_CONFIG, \''+
portId +'\');"><img src="/secure_rc/images/icons/edit.gif" alt="edit" width="33"
height="19"></a>';
        row.appendChild(cell);

        // Cell 4 - delete
        var cell = document.createElement('TD');
        cell.className = "gridRow"+ alternate +"2nt";
        cell.width = 33;
        cell.innerHTML = '<a href="javascript:removeDeviceNode_onClick(\''+
portId +'\');"><img src="/secure_rc/images/icons/trashcan.png" alt="delete"
width="33" height="19"></a>';
        row.appendChild(cell);

        tableControl.getElementsByTagName("tbody")[0].appendChild(row);
    }
    if (deviceNodes.length == 0) {
        var row = document.createElement('TR');
        var cell = document.createElement('TD');
        cell.className = "gridRowLight1";
        cell.colSpan = 4;
        cell.innerHTML = "There are no devices to display.";
        row.appendChild(cell);
        tableControl.getElementsByTagName("tbody")[0].appendChild(row);
    }
}

function removeDeviceNode_onClick(portId) {
    gateway.removeDeviceNode(portId);
    updateDeviceList();
}




function doSubmit(taskName) {
    // Update deviceConfig control
    document.clientGatewayForm.deviceConfig.value = gateway.xmlDoc.toString();

    document.forms[0].task.value = taskName;
    document.forms[0].submit();
}

function xmlValidationResults_jsrsCallback(results) {
    xmlValidationResults = results;

    var devicePort = cbeGetElementById("ddtxtDevicePort").value;

    // Save the current value of the gateway config.
    var xmlText = gateway.getDeviceNodeXml(devicePort);

    try {
        // This code is duplicated here from the savePage method to ensure that
it runs successfully.
        gateway.setDeviceNodeXml(devicePort,
cbeGetElementById("xmlConfiguration").value);
    }
    catch (errorObject) {
        xmlValidationResults += "An error occurred parsing the document locally.
Please ensure that there are no comment tags before the root element.<br>";
    }

    // Replace whatever we just put into the configuration with what was there
before.
    if (xmlText)
        gateway.setDeviceNodeXml(devicePort, xmlText);
    else
        gateway.removeDeviceNode(devicePort);

    showPage(PAGE_DEVICE_LIST);
}

function saveXmlConfiguration() {
    cbeGetElementById("divErrors").innerHTML = 'Validating XML, please wait...';
    jsrsPOST = true;
    jsrsExecute("/XmlValidation", xmlValidationResults_jsrsCallback,
            "validateXml", cbeGetElementById("xmlConfiguration").value, false);
}

function populatePortList(currentPortId) {
    var deviceControl = cbeGetElementById("ddtxtDevicePort");
    
      clearSelect(deviceControl);
      var optionList = deviceControl.options;

      var listIndex = 0;
      for (var i=0; i<portIds.length; i++) {
          if (portIds[i].value==currentPortId ||
!gateway.getDeviceNode(portIds[i].value)) {
              optionList[listIndex] = portIds[i];
              listIndex++;
          }
      }

      if (currentPortId)
          deviceControl.value = currentPortId;
    
    
}

function getPortName(portId) {
  
    for (var i=0; i<portIds.length; i++) {
        if (portIds[i].value == portId)
            return portIds[i].text;
    }
    return "Unknown";
  
  
}

function setSampleXml(type) {
    var text = '';
    if (type == 'dimax')
        text = '<dimax-panel-config username="" password=""/>';

    if (type == 'dimax') {
        text =  '<dimax-panel-config username="enter username here"
password="enter password here"/>';
    }
    else if (type == 'modbus') {
        text  = '<modbus-config baud-rate="9600" flow-control-in="None"
flow-control-out="None" data-bits="8" stop-bits="1" parity="None" encoding="rtu"
polling-interval="60" debug="false">\n';
        text += '    <node node-number="1">\n';
        text += '        <coil-transaction-group>\n';
        text += '            <item register="1" point-name="" point-type="DI"
eng-unit="OFF+ON"/>\n';
        text += '        </coil-transaction-group>\n';
        text += '        <inputregister-transaction-group>\n';
        text += '            <analogItem register="1" storage-type="int"
conversion-type="0" point-name="" point-type="AI" eng-unit=""/>\n';
        text += '        </inputregister-transaction-group>\n';
        text += '    </node>\n';
        text += '    <node node-number="2">\n';
        text += '        <input-transaction-group>\n';
        text += '            <item register="1" point-name="" point-type="DO"
eng-unit="OFF+ON"/>\n';
        text += '        </input-transaction-group>\n';
        text += '        <holdingregister-transaction-group>\n';
        text += '            <analogItem register="257" storage-type="float"
conversion-type="0" point-name="" point-type="1" eng-unit=""/>\n';
        text += '        </holdingregister-transaction-group>\n';
        text += '    </node>\n';
        text += '</modbus-config>\n';
    }
    else if (type == 'plc') {
        text  = '<plc-config baud-rate="38400" polling-interval="30"
message-length="306">\n';
        text += '    <plc id="2">\n';
        text += '        <on-change-history-point start-bit="0:0" length="float"
point-type="4" point-status="0" point-name="" eng-unit=""/>\n';
        text += '        <on-change-history-point start-bit="4:0" length="float"
point-type="4" point-status="0" point-name="" eng-unit=""/>\n';
        text += '        <on-change-history-point start-bit="108:0"
length="float" point-type="4" point-status="0" point-name="" eng-unit=""
deadband="1"/>\n';
        text += '    </plc>\n';
        text += '    \n';
        text += '    <plc id="3">\n';
        text += '        <history-point start-bit="5" point-type="6"
point-name="" />\n';
        text += '        <alarm-point start-bit="10" point-type="6"
point-name="" />\n';
        text += '    </plc>\n';
        text += '</plc-config>\n';
    }
    else if (type == 'carma') {
        text  = '<carma-config baud-rate="9600" polling-interval="60"
meter-command-timeout="3000" debug="false">\n';
        text += '    <message-group network-address="1">\n';
        text += '        <get-kWh meter-number="00" point-name="test_1_00"/>\n';
        text += '        <get-kWh meter-number="01" point-name="test_1_01"/>\n';
        text += '        <get-kWh meter-number="02" point-name="test_1_02"/>\n';
        text += '        <get-kWh meter-number="03" point-name="test_1_03"/>\n';
        text += '        <get-kWh-data-structure meter-number="00"
point-name="testds_1_00" />\n';
        text += '        <get-kWh-data-structure meter-number="01"
point-name="testds_1_01" />\n';
        text += '    </message-group>\n';
        text += '    <message-group network-address="2">\n';
        text += '        <get-kWh meter-number="00" point-name="test_2_00"/>\n';
        text += '        <get-kWh meter-number="01" point-name="test_2_01"/>\n';
        text += '        <get-kWh meter-number="02" point-name="test_2_02"/>\n';
        text += '        <get-kWh meter-number="03" point-name="test_2_03"/>\n';
        text += '        <get-kWh-data-structure meter-number="00"
point-name="testds_2_00" />\n';
        text += '        <get-kWh-data-structure meter-number="01"
point-name="testds_2_01" />\n';
        text += '    </message-group>\n';
        text += '</carma-config>\n';
    }
    else if (type == 'vmstat') {
        text  = '<vmstat-config reporting-interval="60" debug="true">\n';
        text += '    <category name="procs" metric="processes">\n';
        text += '        <point name="r" include="true"/>\n';
        text += '        <point name="b" include="true"/>\n';
        text += '        <point name="w" include="true"/>\n';
        text += '    </category>\n';
        text += '    <category name="memory" metric="kB">\n';
        text += '        <point name="swpd" include="true"/>\n';
        text += '        <point name="free" include="true"/>\n';
        text += '        <point name="buff" include="true"/>\n';
        text += '        <point name="cache" include="true"/>\n';
        text += '    </category>\n';
        text += '    <category name="swap" metric="kB/s">\n';
        text += '        <point name="si" include="true"/>\n';
        text += '        <point name="so" include="true"/>\n';
        text += '    </category>\n';
        text += '    <category name="io" metric="blocks/s">\n';
        text += '        <point name="bi" include="true"/>\n';
        text += '        <point name="bo" include="true"/>\n';
        text += '    </category>\n';
        text += '    <category name="system" metric="per sec">\n';
        text += '        <point name="in" include="true"/>\n';
        text += '        <point name="cs" include="true"/>\n';
        text += '    </category>\n';
        text += '    <category name="cpu" metric="percent">\n';
        text += '        <point name="us" include="true"/>\n';
        text += '        <point name="sy" include="true"/>\n';
        text += '        <point name="id" include="true"/>\n';
        text += '    </category>\n';
        text += '</vmstat-config>\n';
    }

    cbeGetElementById("xmlConfiguration").value = text;
}

</script>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <form name="clientGatewayForm" method="POST"
action="/secure/edit_client_gateway.do">
      <tr valign="top">
        <td class="formSideBars">&nbsp;</td>
        <td class="formMain">

          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="formHeader">webapp4 : webapp4</td>
            </tr>
            <tr>
              <td class="errors"></td>
            </tr>
            <tr>

              <td class="error"><div name="divErrors" id="divErrors"></div></td>
            </tr>
            <tr>
              <td><div name="divMessages" id="divMessages"></div></td>
            </tr>
            <tr>
              <td>

                <!-- Device list panel -->

                <div id="panel_deviceList" style="display: none">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="formContent">
                        <table border="0" align="center" cellpadding="0"
cellspacing="0">
                          <tr>
                            <td height="29" class="formCaption">Heartbeat
Interval (seconds)</td>
                            <td width="5"><img src="/secure_rc/images/p.png"
width="32" height="15"></td>

                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td valign="top"><input type="text"
name="txtHeartbeatInterval" style="width:250px;" class="formInput"></td>
                            <td width="5" valign="top">&nbsp;</td>
                            <td valign="top" width="250">&nbsp;</td>
                          </tr>
                        </table>
                      </td>

                    </tr>
                    <tr>
                      <td class="formHeader">&nbsp;</td>
                    </tr>

                    <tr>
                      <td class="formContent"><strong>Device List</strong></td>
                    </tr>
                    <tr>

                      <td valign="middle" class="formContent">
                        <table width="100%" border="0" cellpadding="0"
cellspacing="0" class="gridTable" id="devices">
                          <thead>
                            <tr>
                              <td class="gridHeader0"><img
src="/secure_rc/images/grid/port.0.png" width="27" height="19"></td>
                              <td class="gridHeader0"><img
src="/secure_rc/images/grid/device.type.0.png" width="62" height="19"></td>
                              <td class="gridHeader0">&nbsp;</td>
                              <td class="gridHeader0">&nbsp;</td>
                            </tr>

                          </thead>
                          <tbody>
                          </tbody>
                        </table>
                      </td>
                    </tr>

                    <tr>
                      <td align="right" class="formContent">

                        <a href="javascript:showPage(PAGE_OTHER_CONFIG);"><img
src="/secure_rc/images/forms/btn.new.gif" width="40" height="20"></a>
                        <a href="javascript:showPage(PAGE_SAVE_CONFIRM);"><img
src="/secure_rc/images/forms/btn.continue.gif" width="82" height="20"></a>
                      </td>
                    </tr>
                  </table>
                </div>
                <!-- Device choice panel : END -->




                <!-- Save confirmation panel -->
                <div id="panel_saveConfirm" style="display: none">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td valign="middle" class="formContent" style="height: 150px">
                        <table border="0" align="center" cellpadding="0"
cellspacing="0">
                          <tr>
                            <td>

                              <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td>Save changes to gateway configuration?</td>
                                  <td width="10"><img
src="/secure_rc/images/spacer.gif" width="10" height="10"></td>
                                  <td><a
href="javascript:doSubmit('execute');"><img
src="/secure_rc/images/forms/btn.yes.gif" width="55" height="20"
border="0"></a></td>
                                  <td width="10"><img
src="/secure_rc/images/spacer.gif" width="10" height="10"></td>
                                  <td><a
href="javascript:doSubmit('abort');"><img
src="/secure_rc/images/forms/btn.abort.gif" width="65" height="20"
border="0"></a></td>
                                </tr>

                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="formHeader">&nbsp;</td>
                    </tr>

                  </table>
                </div>
                <!-- Save confirmation panel : END -->


                <!-- Other config panel -->
                <div id="panel_otherConfig" style="display: none">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="formContent">

                        <table border="0" align="center" cellpadding="0"
cellspacing="0">
                          <tr>
                            <td height="29" class="formCaption">Device Port Id</td>
                            <td width="5"><img src="/secure_rc/images/p.png"
width="32" height="15"></td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td valign="top">

                              
                                <select name="ddtxtDevicePort" class="formInput"
style="width: 250px;">
                                </select>
                              
                              
                            </td>
                            <td width="5" valign="top">&nbsp;</td>
                            <td valign="top" width="250">&nbsp;</td>
                          </tr>
                        </table>
                      </td>
                    </tr>

                    <tr>
                      <td class="formContent">
                        <table border="0" align="center" cellpadding="0"
cellspacing="0">
                          <tr>
                            <td>
                              <strong>Dimax</strong> <a
href="/dtds/dimax-panel-config.xsd" target="_blank">Schema</a> | <a
href="javascript:setSampleXml('dimax')">Sample</a><br />

                              <strong>Modbus</strong> <a
href="/dtds/modbus-config.xsd" target="_blank">Schema</a> | <a
href="javascript:setSampleXml('modbus')">Sample</a><br />
                              <strong>PLC</strong> <a
href="/dtds/plc-config.xsd" target="_blank">Schema</a> | <a
href="javascript:setSampleXml('plc')">Sample</a><br />
                              <strong>Carma</strong> <a
href="/dtds/carma-config.xsd" target="_blank">Schema</a> | <a
href="javascript:setSampleXml('carma')">Sample</a><br />

                              <strong>vmstat</strong> <a
href="/dtds/vmstat-config.xsd" target="_blank">Schema</a> | <a
href="javascript:setSampleXml('vmstat')">Sample</a><br />
                            </td>`
                            <td align="right" class="formContent">
                              <a href="javascript:saveXmlConfiguration();"><img
src="/secure_rc/images/forms/btn.save.update.gif" width="91" height="20"
alt="Save this device configuration and return to the device list"></a>&nbsp;
                              <a
href="javascript:showPageNoSave(PAGE_DEVICE_LIST);"><img
src="/secure_rc/images/forms/btn.abort.gif" width="65" height="20" alt="Return
to the device list without saving"></a>
                            </td>

                          </tr>

                          <tr><td colspan="2">&nbsp;</td></tr>

                          <tr>
                            <td colspan="2" height="29"
class="formCaption">Enter XML configuration (for advanced users only)</td>
                          </tr>
                          <tr>
                            <td colspan="2" valign="top">

                              <textarea name="xmlConfiguration" rows="40"
style="width:532px;" class="formInput">
                              </textarea>
                            </td>
                          </tr>
                        </table>
                        <br>
                      </td>
                    </tr>

                    <tr>
                    </tr>
                  </table>
                </div>
                <!-- Other config panel : END -->

              </td>
            </tr>
          </table>

        </td>
        <td class="formSideBars">&nbsp;</td>
      </tr>

      <input type="hidden" name="deviceConfig" value="&lt;?xml
version=&quot;1.0&quot;?&gt;&lt;gateway
heartbeat-interval=&quot;30&quot;&gt;&lt;dimax-panel-config
panelUsername=&quot;&quot; panelPassword=&quot;&quot; /&gt;&lt;/gateway&gt;

">

      <input type="hidden" name="hardwareAddress" value="webapp4">
      <input type="hidden" name="task" value="edit">
    </form>
  </table>









      </td>
    </tr>
  </table>

  <font color="#FFFFFF">webapp1.idimax.com</font>

  
</body>

</html>


















Expected Results:  
The dynamically rendered (via Javascript) portions of the page should be displayed.
For the reporter if it's still relevant: Without using a doctype you aren't standards compilant. More information which is best to be used at http://hsivonen.iki.fi/doctype/
Yes, there are differences in the DOM between the Browsers with IE being the one needing extra help most of the time. I'm nut sure but using type="text/javascript" instead of the language-attribute could help as well.

Besides: The Tech Evangelism bug section is not intended to help you like this. If you need help with your code, please try one of the web related help forums, mailing lists, etc. Good luck.

This being said, i'm going to close this report now.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.