Hey guys,
Long time since I've been back on here.
Quick question that I wonder if anyone can shed some light on.
My company is using a vendor for some web-based HR software. None of their pages validates (surprise!) but usually everything loads ok. However, on one of our external facing pages (recruitment page), it seems to not load for some people. After looking closely at the code (52 errors through validation) I wonder if the issue is there. My question is, due to badly compiled html, can a page simply 'fail'. The users get the standard IE 'page cannot be displayed message.
The big errors I see are:
- first line of doc is blank, doctype declared on line 2
- the code is calling an external css file and defining java script within the body section in addition the head.
- links on the page are using standard ampersands, not encoded properly
Could these cause the page to just not even attempt loading and fail? My guess is, that it probably could, as badly compiled code is a crapshoot as it is. Here's the code. I've taken out a few company specific things.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function openWin(URL) { aWindow=window.open(URL, "help", "toolbar=no,width=350,height=250,status=no,scrollbars=yes,resize=yes,menubar=no"); } </script> <link type="text/css" media="all" rel="Stylesheet" href="custom/skincustom/jobboard.css"> <link type="text/css" media="all" rel="Stylesheet" href="custom/skincustom/workplace.css"> <title></title> </head> <body> <div id="wrap"> <div id="header"> </div> <div class="nav"> <ul> <li><a href="http://www.datcu.org" class="Top">Home</a></li> <li><a href="listjobs.aspx?Page=List" class="On">Browse Open Jobs</a></li> <li><a href="SearchJobs.aspx?Page=Search" class="Top">Search Open Jobs</a></li> <li><a href="CanLogin.aspx?Page=Edit&__RT=*03B1BB03D61C8AF97D4673BBBAA90397453A8304235BF4FEFEB9325E4266B80E" class="Top">Edit Your Profile</a></li> <li><a href="CanLogin.aspx?Page=Status&__RT=*D31E1CE553E0352CA0005662327038C0EFE3CF3EEE6DAF505DDA84E0D9A79ACB" class="Top">View Submitted Applications</a></li> </ul> </div> <div id="main"> <link type="text/css" media="all" rel="Stylesheet" href="custom/skincustom/listjobs.css"> <span id="lblTitle" class="PrintHeader">Browse Open Jobs</span> <br> <br> <form name="PXForm" method="post" action="listjobs.aspx?Page=List&__SVRTRID=FCDD2582-61D3-45CE-8C2D-F49B76D25A89" id="PXForm"> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MWRkQ1v1SE8U08qHAvpAS6nz10FNhIU=" /> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWDQL4zJn1CALZmLPIBwLRmtKmBwLJvYapAwKduOGWBgKC9qGSBQL99cOUCAK2xqmfDQKj96rgDQLLvLGTDwLArLTaDQKD+aqJAQLUpr/LDwPwuTyOSjU2ND/kYq2gXPJAIZBw" /><input name="__PXPOSTBACK" type="hidden" id="__PXPOSTBACK" value="1" /><script language="JavaScript" type="text/javascript" src="../UI/GT/hmscore.js"></script> <SCRIPT LANGUAGE=javascript> <!-- function resetpxslbp() { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform = document.forms["PXForm"]; } else { theform = document.PXForm; } theform.__PXLBN.value = (''); theform.__PXLBV.value = (''); } function pxslbp(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform = document.forms["PXForm"]; } else { theform = document.PXForm; } theform.__PXLBN.value = eventTarget; theform.__PXLBV.value = eventArgument; theform.submit(); } //--> </SCRIPT> <input name="__PXLBN" type="hidden" id="__PXLBN" /><input name="__PXLBV" type="hidden" id="__PXLBV" /><table cellpadding="1" cellspacing="1" width="100%"> <tr> <td align="Left" class="Cell" valign="top"><input name="__PXDO" type="hidden" id="__PXDO" /><input name="__Keywords" type="hidden" id="__Keywords" /><input name="__RecordsPerPage" type="hidden" id="__RecordsPerPage" /><span class="PrintMedium">Showing Records: </span><span class="PrintMedium">1 - 3</span><span><br /></span><span class="PrintMedium">Total Records: </span><span class="PrintMedium">3</span><span><br /></span><span><br /></span></td> </tr> </table> <input name="__PreparedPXDO" type="hidden" id="__PreparedPXDO" value="*501A15E038216814AFF20DE0ED6A92EF6202B33F038B51D97EA415797B8CA4E5F003978EDCEBB459EC1C6E0D8270762723E59844D1984D817D589780A2AF700B1A0428C0EBED77814AC6B66607248167D09618C43A4B2C00131D38856DF175DC37AB8C3D7BE57D4D73DD87504019D13171B7E1C1829A9E9E0535A9CD3732663CFFD61A7E4C715D384560156AA77A027F8EE5AF5CD7A061361243171D9CC9DF428A14C0250A01F2E3E76B129BACC337E6779E896B1ECBBB6BF7614136FA2AE5116088D028C36E7485083B51B70F1CAECC9E2057D848341A2526A950C2E236C088E143DCDCC60121F4D5CA335E9A26BB88470F297D8F4546E36452A32E700ABCA08FD6B5A3C3E27ED22D6A76747D2888925BA94F19F91F822D2025CF661E6100EE0C790152158CF71AFDBD0DBE0415C5E8807C891A582FFCBE10C1BCFC7E127B478F73AA5CF5C62AA8074A2A7F8BA8BF6F6C32949AA70942C0FEB911B812BDA66F" /><table cellpadding="1" cellspacing="1" class="GridTable"> <tr> <td align="Left" class="LabelCell"><a href="javascript:pxslbp('OBC','*401C1934BD26089D26BF0464E80E8F5A')" class="LinkSmall">Post Date</a></td> <td align="Left" class="LabelCell"><a href="javascript:pxslbp('OBC','*D7C33656974122AD8AA70A5A933D5446')" class="LinkSmall">Requisition Number</a></td> <td align="Left" class="LabelCell"><a href="javascript:pxslbp('OBC','*F3EDEC5E97F6B9B22F0DD23F001925D4')" class="LinkSmall">Title</a></td> <td align="Left" class="LabelCell"><a href="javascript:pxslbp('OBC','*40AF1722050DC18D7005C14EA5A1A9EF')" class="LinkSmall">City</a></td> <td align="Left" class="LabelCell"><a href="javascript:pxslbp('OBC','*43669D2E1576A6347F99B6B4B70FFFD1')" class="LinkSmall">State</a></td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl61" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl65" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl69" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl73" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl77" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl81" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> <tr> <td align="Left" class="Cell"><img id="_ctl85" title="" src="images/pixel.gif" border="0" style="height:17px;" /> </td> </tr> </table> <input name="__PageNumber" type="hidden" id="__PageNumber" value="1" /><span><br /></span><input type="submit" name="__First" value="<<" id="__First" disabled="disabled" class="ButtonClassNavigation" style="cursor:default;" /> <input type="submit" name="__Previous" value=" < " id="__Previous" disabled="disabled" class="ButtonClassNavigation" style="cursor:default;" /> <input type="submit" name="__Next" value=" > " id="__Next" disabled="disabled" class="ButtonClassNavigation" style="cursor:default;" /> <input type="submit" name="__Last" value=">>" id="__Last" disabled="disabled" class="ButtonClassNavigation" style="cursor:default;" /></form> </div> </div> </body> </html>
Thanks for the help!
Hi Downtap, Nice to see your
Hi Downtap,
Nice to see your green face around here again 
Yes errors could be causing the page to not display.
Here's the steps I would take to resolve it.
- Find out exactly what browsers are having the issue
- Make a local copy of the page
- Test it with the broken browser.
- Comment out or fix sections while testing browser.
Hopefully that will help you find the exact issue.
Nice to be back! Good idea.
Nice to be back!
Good idea. It's been hard for me to replicate the issue locally within our network but I'll give that a go. I have a call with a person from the software's development team tomorrow. I'll have to come up with a delicate way of telling him how awful that compiled html is. :0

