missing part of view-source in Chrome but not in I.E. 7?

Giganews Newsgroups
Subject: missing part of view-source in Chrome but not in I.E. 7?
Posted by:  JRough (jlrou…@yahoo.com)
Date: Sun, 1 Aug 2010

I have this display page in php.  I enclose the view source from I.E.
7.  I don't understand why I can see all the source in IE 7 and not in
Chrome? In Chrome it cuts off the view source after the end table
table and the submit1  at the asterisks.
Most of the data rows are removed, but you can see there is a
selection box for searching on zone num, zoneid and bu, and then there
are table headers and rows of data.  The anchor links are pages that
let the user go to the next page of data.  I tried to close all the
table rows and definition tags.  Can you tell me why it works in IE
and not Chrome?  THANKs,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>Print Barcode Labels</title>

<script type="text/javascript">
function checkscript() {

  if ( ele.search_bu.value ) {
    if ( !ele.search_zoneid.value && !ele.search.zonenm.value )
{ return 1 }
        else
    if ( !ele.zoneid.value && ele.zonenm.value ) { return 1 }
    }
  else { return 0 }

}
function fillZoneNm() {
            var bu = document.forms[0].search_bu.value;
                if ( window.XMLHttpRequest ) {// code for IE7+,
Firefox, Chrome, Opera, Safari
          xmlhttp=new XMLHttpRequest();
        }else{ // code for IE6, IE5
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange=function() {
    
document.getElementById("search_zonenm").innerHTML=xmlhttp.responseText;
        }
        xmlhttp.open("GET","get_bus.php?bu=" + bu,true);
        xmlhttp.send();

        }

function fillZoneId() {
            var zonenm = document.forms[0].search_zonenm.value;
                if ( window.XMLHttpRequest ) {// code for IE7+,
Firefox, Chrome, Opera, Safari
          xmlhttp=new XMLHttpRequest();
        }else{ // code for IE6, IE5
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange=function() {
    
document.getElementById("search_zoneid").innerHTML=xmlhttp.responseText;
        }
        xmlhttp.open("GET","get_zonenms.php?zonenm=" + zonenm,true);
        xmlhttp.send();

        }

function printFromHere(){

var xhr = document.forms[0].search_zonenm.value;

                if ( window.XMLHttpRequest ) {// code for IE7+,
Firefox, Chrome, Opera, Safari
          xhr=new XMLHttpRequest();
        }else{ // code for IE6, IE5
          xhr=new ActiveXObject("Microsoft.XMLHTTP");
        }
    xhr.onreadystatechange  = function()
    {
        if(xhr.readyState  == 4)
        {
              if(xhr.status  == 200)

document.getElementById('printer_response').innerHTML="Received:"  +
xhr.responseText;
              else
                document.getElementById('printer_response').innerHTML
="Error code " + xhr.status;
        }
    }
  xhr.open(GET, "print_test.php",  true);
  xhr.send(null);
}
</script>

<style>
    .ast { color:red; }
        td {font-family:verdana; font-size:12px; line-height:12pt;}
    th {font-family:verdana; font-size:12px; line-height:12pt;}
    .txt1 {font-family:verdana; font-size:20px;}
    a:link {color: blue; text-decoration: none;}    /* unvisited link */
    a:visited {color: blue; text-decoration: none; }  /* visited link */
    a:hover {color: #FF00FF}  /* mouse over link */
</style>
</head>
<body>

<h2 align='center'>Print Bar Code Labels</h2>
<form action='/tools/cart_inventory/print_labels_form5.php'
onsubmit1='return checkscript();'  method='post'><a
href='admin.php'>Admin Menu<a/><br>
PAGE: <table align='center'  style='border:1px solid ;'>
<tr><th align='right'>BU</th>
</tr><tr><td><select
name='search_bu'id='search_bu'onChange='fillZoneNm();'>
<option value=''>Select BU</option>
<option value='081' SELECTED>08132</option>
<option value='081' >081</option>
</select>
</td></tr><tr>
<th align='right'>Zone Number</th>
<td><div id='search_zonenm'>
<select name='search_zonenm' id='search_zonenm'>
<option value=''>Select Zone Number</option>
<option value='BIRTH CONTROL' >BIRTH CONTROL</option>
<option value='CIIIS' >CIIIS</option>
<option value='CIIS' >CIIS</option>
<option value='CLINIC' >CLINIC</option>
<option value='COMPOUND' >COMPOUND</option>
<option value='controlles' >controlles</option>

</select>
</td></tr><tr>
<th align='right'>Zone ID</th>
<td><input type'text' name='search_zoneid' id='search_zoneid' size='9'
class='txt1'></td>
</tr>
<tr><td colspan='13' align='center'><input type='submit'
name='submit1' value='Search'></td>
</tr></table>
No of Records: 1746
<table border='1' style='border:1px solid #CCCCCC' align='center'>
<th>BU</th>
<th>Location</th>
<th>Zone<br /> Number</th>
<th>Zone<br /> ID</th>
<th>NDC</th>
<th>Item ID</th>
<th>Description</th>
<th>UPC</td>
<th>NDC<br />UOM</th>
</tr>
<tr class='gry'>
<td style='border:solid black 1px;padding:5px;'>081</td>
<td style='border:solid black 1px;padding:5px;'>OPRx</td>
<td style='border:solid black 1px;padding:5px;'>BIRTH CONTROL</td>
<td style='border:solid black 1px;padding:5px;'>0222</td>
<td style='border:solid black 1px;padding:5px;'>00062176115</td>
<td style='border:solid black 1px;padding:5px;'>00062176115</td>
<td style='border:solid black 1px;padding:5px;'>ORTHO-NOVUM 1/35 TAB
28 DAYS 168/BX</td>
<td style='border:solid black 1px;padding:5px;'></td>
<td style='border:solid black 1px;padding:5px;'>BX</td>
</tr>
<tr class='wht'>
<td style='border:solid black 1px;padding:5px;'>081</td>
<td style='border:solid black 1px;padding:5px;'>OPRx</td>
<td style='border:solid black 1px;padding:5px;'>BIRTH CONTROL</td>
<td style='border:solid black 1px;padding:5px;'>0222</td>
<td style='border:solid black 1px;padding:5px;'>00062178115</td>
<td style='border:solid black 1px;padding:5px;'>00062178115</td>
<td style='border:solid black 1px;padding:5px;'>ORTHO-NOVUM TAB 28
DAYS 168/BX</td>
<td style='border:solid black 1px;padding:5px;'></td>
<td style='border:solid black 1px;padding:5px;'>BX</td>
</tr>

</tr>
</table>  **********************************
<table><tr><td>No Pages: 350 <br /><a href='/tools/cart_inventory/
print_labels_form5.php?page=1&bu=08132&zonenm=&zoneid='>1</a>
<a href='/tools/xxxxxx/print_labels_form5.php?
page=2&bu=081&zonenm=&zoneid='>2</a>
<a href='/tools/xxxxxx/print_labels_form5.php?
page=3&bu=081&zonenm=&zoneid='>3</a>
<a href='/tools/xxxxxxxxxxxxxxx/print_labels_form5.php?
page=4&bu=081&zonenm=&zoneid='>4</a>
<a href='/tools/xxxxxxx/print_labels_form5.php?
page=5&bu=081&zonenm=&zoneid='>5</a>
</td></tr></table></form></body>
</html>

Replies