[Last Call] Learn how to a build a cloud-first strategyRegister Now


Body on load

Posted on 2005-04-08
Medium Priority
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.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.pageSize = 15
      document.all.dbnetgrid1.wrapHeadings = true
      document.all.dbnetgrid1.help = false
      document.all.dbnetgrid1.editDialogHeight = '500'
      document.all.dbnetgrid1.selectedRowBackgroundColour = "black"
      document.all.dbnetgrid1.orderColumn = 'DMR_Referrals.id'
      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/dbnetgrid.htc)'></div></td>

Question by:paulo111
1 Comment
LVL 10

Accepted Solution

lengreen earned 2000 total points
ID: 13735032
Hi paulo111,
you have an extra double quote here,  but i can see nothing else

> " "New or Follow Up"


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

830 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