Body on load

Can anyone see why onload of the page my function is being returned in the below:



-----------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<style>
select {font-family:Arial, Helvetica, sans-serif;font-size:8pt;background-color:white}
</style>

<script>


////////////////////////////////////////////
function loadData()
////////////////////////////////////////////
{
      document.all.dbnetgrid1.connectionString = "dmr_grid"
      document.all.dbnetgrid1.headings = ["Referral ID", "MPI", "Initials", "Referral Received Date", "Referral Date", "Referral Source", "Referral Reason 1", "Referral Reason 2", "Referral Reason 3", "Priority", "Doctor ID", "Multiaxial Diagnosis 1", "Multiaxial Diagnosis 2", "Multiaxial Diagnosis 3", "Multiaxial Diagnosis 4", "Special Category 1", "Special Category 2", "Special Category 3", "Special Category 4", "Contact", "Age Group", "Ethnicity", "PCT", " "New or Follow Up", "Outcome", " Date of First Appointment", "Comments", "Date Amended", "Amended By", "Date Inserted"]
      document.all.dbnetgrid1.selectPart = ["DMR_Referrals.id", "DMR_Referrals.MPI", "DMR_Referrals.Patient_Initials", "DMR_Referrals.refRecDate", "DMR_Referrals.refDate", "DMR_Referrals.refSource", "DMR_Referrals.refReason1", "DMR_Referrals.refReason2", "DMR_Referrals.refReason3", "DMR_Referrals.priority", "DMR_Referrals.doctorID", "DMR_Referrals.Multiaxial_Diagnosis1", "DMR_Referrals.Multiaxial_Diagnosis2", "DMR_Referrals.Multiaxial_Diagnosis3", "DMR_Referrals.Multiaxial_Diagnosis4", "DMR_Referrals.SpecialCategories", "DMR_Referrals.SpecialCategorie1", "DMR_Referrals.SpecialCategorie2", "DMR_Referrals.SpecialCategorie3", "DMR_Referrals.Contact", "DMR_Referrals.AgeGroup", "DMR_Referrals.Ethnicity", "DMR_Referrals.PCT", "DMR_Referrals.New_Fup", "DMR_Referrals.Outcome", "DMR_Referrals.Date_of_first_Appointment", "DMR_Referrals.comments", "DMR_Referrals.dateAmended", "DMR_Referrals.amendedBy", "DMR_Referrals.dateInserted"]
      document.all.dbnetgrid1.fromPart = "DMR_Referrals"
      document.all.dbnetgrid1.filterPart = "DMR_Referrals = '" + document.all.myselect.value  + "'"
      document.all.dbnetgrid1.primaryKeyColumn = "DMR_Referrals.id"
      document.all.dbnetgrid1.setEditColumnProperty('DMR_Referrals.id','editReadOnly:true')
      document.all.dbnetgrid1.pageSize = 15
      document.all.dbnetgrid1.wrapHeadings = true
      document.all.dbnetgrid1.help = false
      document.all.dbnetgrid1.editDialogHeight = '500'
      document.all.dbnetgrid1.setHeadingProperty('font-family:verdana')
      document.all.dbnetgrid1.setHeadingProperty('backgroundColor:white')
      document.all.dbnetgrid1.selectedRowBackgroundColour = "black"
      document.all.dbnetgrid1.orderColumn = 'DMR_Referrals.id'
      document.all.dbnetgrid1.loadData()
      document.all.dbnetgrid1.editDialogCloseOnApply = true
}

////////////////////////////////////////////
function notesCellTransform(cell)
////////////////////////////////////////////
{
      cellText = cell.innerText
      if (cellText.length < 10)
            return
      cell.innerText = cellText.substr(0,10) + ' ...'
      cell.title = cellText
}

</script>
</head>

<body onLoad="loadData()">

<style>
       {margin: 0px; font: 11px Arial, Helvetica, sans-serif; background: #f1f1f1}
      A:hover       {color:#26307D;text-decoration:bold;underline}
</style>


<!--  The Grid:  -->
<fieldset>
      <table width="100%" border=0 align="center" bgcolor ="#E6E6FA" borderColor=Black>
             <tr>
                    <td colspan="2"><hr></td>
             </tr>
                    <td colspan="2">
                  <div id=dbnetgrid1.toolbar></div>
                  <div id=dbnetgrid1 style='behavior:url(/dbnetgrid/dbnetgrid.htc)'></div></td>
             </tr>
      </table>
</fieldset>

 </body>
</html>
paulo111Asked:
Who is Participating?
 
lengreenCommented:
Hi paulo111,
you have an extra double quote here,  but i can see nothing else

> " "New or Follow Up"


Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.