Body on load

Posted on 2005-04-08
Last Modified: 2012-06-27
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">
select {font-family:Arial, Helvetica, sans-serif;font-size:8pt;background-color:white}


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.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 = ""
      document.all.dbnetgrid1.pageSize = 15
      document.all.dbnetgrid1.wrapHeadings = true = false
      document.all.dbnetgrid1.editDialogHeight = '500'
      document.all.dbnetgrid1.selectedRowBackgroundColour = "black"
      document.all.dbnetgrid1.orderColumn = ''
      document.all.dbnetgrid1.editDialogCloseOnApply = true

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


<body onLoad="loadData()">

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

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

Question by:paulo111
    1 Comment
    LVL 10

    Accepted Solution

    Hi paulo111,
    you have an extra double quote here,  but i can see nothing else

    > " "New or Follow Up"


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now