Function doesnt work in Safari

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • effendi@epitome.com.sg

    Function doesnt work in Safari

    I wrote the following function and tested it in MSIE, Firefox and Mac
    Safari, Works in all but the Safari. What can I do to rectify this?

    function processBackgrou nd(){ for (n=1;n<11;n++)
    {

    cellrow="r"+n
    for (i=1;i<17;i++){
    cell=cellrow+"w "+i
    cellName=cell+" _ID"
    thisForm=docume nt.forms[0]
    if (document.all[cell].value==="X"){
    document.all[cellName].style.backgrou ndColor='#84DFC 1'
    }
    }
    }
    }

  • Otto Lang

    #2
    Re: Function doesnt work in Safari

    effendi@epitome .com.sg <effendi@epitom e.com.sgwrote:
    I wrote the following function and tested it in MSIE, Firefox and Mac
    Safari, Works in all but the Safari. What can I do to rectify this?
    >
    function processBackgrou nd(){ for (n=1;n<11;n++)
    {
    cellrow="r"+n
    for (i=1;i<17;i++){
    cell=cellrow+"w "+i
    cellName=cell+" _ID"
    thisForm=docume nt.forms[0]
    if (document.all[cell].value==="X"){
    document.all[cellName].style.backgrou ndColor='#84DFC 1'
    }
    }
    }
    }
    Safari doesn't know about the document.all object. So this function will
    not work with Safari.

    ../otto

    Comment

    • Laurent Bugnion

      #3
      Re: Function doesnt work in Safari

      Hi,

      Otto Lang wrote:
      effendi@epitome .com.sg <effendi@epitom e.com.sgwrote:
      >I wrote the following function and tested it in MSIE, Firefox and Mac
      >Safari, Works in all but the Safari. What can I do to rectify this?
      >>
      >function processBackgrou nd(){ for (n=1;n<11;n++)
      >{
      >cellrow="r"+ n
      >for (i=1;i<17;i++){
      >cell=cellrow+" w"+i
      >cellName=cell+ "_ID"
      >thisForm=docum ent.forms[0]
      >if (document.all[cell].value==="X"){
      >document.all[cellName].style.backgrou ndColor='#84DFC 1'
      >}
      >}
      >}
      >}
      >
      Safari doesn't know about the document.all object. So this function will
      not work with Safari.
      >
      ./otto
      To make your reply even better, you could have suggested using
      document.getEle mentById instead ;-)

      HTH,
      Laurent

      Comment

      • effendi@epitome.com.sg

        #4
        Re: Function doesnt work in Safari


        Laurent Bugnion wrote:
        Hi,
        >
        Otto Lang wrote:
        effendi@epitome .com.sg <effendi@epitom e.com.sgwrote:
        I wrote the following function and tested it in MSIE, Firefox and Mac
        Safari, Works in all but the Safari. What can I do to rectify this?
        >
        function processBackgrou nd(){ for (n=1;n<11;n++)
        {
        cellrow="r"+n
        for (i=1;i<17;i++){
        cell=cellrow+"w "+i
        cellName=cell+" _ID"
        thisForm=docume nt.forms[0]
        if (document.all[cell].value==="X"){
        document.all[cellName].style.backgrou ndColor='#84DFC 1'
        }
        }
        }
        }
        Safari doesn't know about the document.all object. So this function will
        not work with Safari.

        ./otto
        >
        To make your reply even better, you could have suggested using
        document.getEle mentById instead ;-)
        >
        HTH,
        Laurent


        Lauren

        I tried tthat and I also changed the code to use
        document.form[0].element[cell] but still ran into problem.

        Comment

        • effendi@epitome.com.sg

          #5
          Re: Function doesnt work in Safari


          effendi@epitome .com.sg wrote:
          Laurent Bugnion wrote:
          Hi,

          Otto Lang wrote:
          effendi@epitome .com.sg <effendi@epitom e.com.sgwrote:
          >I wrote the following function and tested it in MSIE, Firefox and Mac
          >Safari, Works in all but the Safari. What can I do to rectify this?
          >>
          >function processBackgrou nd(){ for (n=1;n<11;n++)
          >{
          >cellrow="r"+ n
          >for (i=1;i<17;i++){
          >cell=cellrow+" w"+i
          >cellName=cell+ "_ID"
          >thisForm=docum ent.forms[0]
          >if (document.all[cell].value==="X"){
          >document.all[cellName].style.backgrou ndColor='#84DFC 1'
          >}
          >}
          >}
          >}
          >
          Safari doesn't know about the document.all object. So this function will
          not work with Safari.
          >
          ./otto
          To make your reply even better, you could have suggested using
          document.getEle mentById instead ;-)

          HTH,
          Laurent
          >
          >
          >
          Lauren
          >
          I tried tthat and I also changed the code to use
          document.form[0].element[cell] but still ran into problem.
          Lauran

          I tried the getElementById again and it works. I encountered one hitch;
          I had a line

          document.getEle mentbyId(cellNa me).value=x

          this sets a value to a field with an ID "cellName". The field is type
          hidden, the value does not get set when the field is hidden (checking
          after submitting the document) but when I unhde the field it can be set
          correctly to X. Is there something I miss out?

          Thanks

          Comment

          • Laurent Bugnion

            #6
            Re: Function doesnt work in Safari

            Hi,

            effendi@epitome .com.sg wrote:
            Lauran
            >
            I tried the getElementById again and it works. I encountered one hitch;
            I had a line
            >
            document.getEle mentbyId(cellNa me).value=x
            >
            this sets a value to a field with an ID "cellName".
            Actually, this sets a value to a field of which the ID is contained in
            the variable cellName. For example, if cellName = "abcd", then you set
            the value in the cell IDed "abcd".
            The field is type
            hidden, the value does not get set when the field is hidden (checking
            after submitting the document) but when I unhde the field it can be set
            correctly to X.
            When you say hidden, what do you mean? Do you mean a input
            type="hidden", or is the field set to invisible on the client? On the
            server?

            Try to publish an extract of your code where the problem is
            reproducible. Try to trim the code so that only what's needed remains.
            This way we will be able to check it in good conditions.
            Is there something I miss out?
            >
            Thanks
            HTH,
            Laurent
            --
            Laurent Bugnion, GalaSoft
            Software engineering: http://www.galasoft-LB.ch
            PhotoAlbum: http://www.galasoft-LB.ch/pictures
            Support children in Calcutta: http://www.calcutta-espoir.ch

            Comment

            • effendi@epitome.com.sg

              #7
              Re: Function doesnt work in Safari


              Laurent Bugnion wrote:
              Hi,
              >
              effendi@epitome .com.sg wrote:
              Lauran

              I tried the getElementById again and it works. I encountered one hitch;
              I had a line

              document.getEle mentbyId(cellNa me).value=x

              this sets a value to a field with an ID "cellName".
              >
              Actually, this sets a value to a field of which the ID is contained in
              the variable cellName. For example, if cellName = "abcd", then you set
              the value in the cell IDed "abcd".
              >
              The field is type
              hidden, the value does not get set when the field is hidden (checking
              after submitting the document) but when I unhde the field it can be set
              correctly to X.
              >
              When you say hidden, what do you mean? Do you mean a input
              type="hidden", or is the field set to invisible on the client? On the
              server?
              >
              Try to publish an extract of your code where the problem is
              reproducible. Try to trim the code so that only what's needed remains.
              This way we will be able to check it in good conditions.
              >
              Is there something I miss out?

              Thanks
              >
              HTH,
              Laurent
              --
              Laurent Bugnion, GalaSoft
              Software engineering: http://www.galasoft-LB.ch
              PhotoAlbum: http://www.galasoft-LB.ch/pictures
              Support children in Calcutta: http://www.calcutta-espoir.ch
              Lauren

              This is the js file I have in my system

              function setBackground(c ellName){
              if (document.forms[0].IsEditDoc.valu e=="Yes"){
              cellID=cellName +"_ID";
              cellName=cellNa me+"ID"
              document.getEle mentById(cellID ).style.backgro undColor='#84DF C1'
              document.getEle mentById(cellNa me).value="X"}
              else
              {alert("Please click on the Edit button")}
              }


              function unsetBackground (cellName){
              if (document.forms[0].IsEditDoc.valu e=="Yes"){
              cellID=cellName +"_ID";
              cellNumber=cell Name.split("w")
              cellName=cellNa me+"ID"
              flag=cellNumber[1]%2
              if (flag==1){
              document.getEle mentById(cellID ).style.backgro undColor='#F6FB f3'
              }
              else
              {
              document.getEle mentById(cellID ).style.backgro undColor='trans parent'
              }
              document.getEle mentById(cellNa me).value=""}
              }

              I have a table which contains fields in each column and rows, The field
              is names r1w1 where r is row and w is column is goes from 1 to 17
              column and there are 10 rows

              The fields has an ID r1w1ID and I also IDed the table cells r1w1_ID to
              address the colour of the cells.

              here is the html of the page.

              <table class="workplan " cellspacing="0" border="1">
              <tr valign="top"><t d width="350" width="107" bgcolor="#F0E8F 0"
              colspan="2"><im g src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td width="100%" width="853" bgcolor="#F0E8F 0"
              colspan="16"><d iv align="center"> Week</div></td></tr>

              <tr valign="top"><t d width="270" width="53"
              bgcolor="#F0E8F 0">Work/Task</td><td width="80" width="53"
              bgcolor="#F0E8F 0">Person</td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 1</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 2</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 3</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 4</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 5</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 6</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 7</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 8</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 9</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 10</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 11</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 12</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 13</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 14</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 15</div></td><td width="53" bgcolor="#F0E8F 0"><div
              align="center"> 16</div></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1" value="" style="border-width : 0px;
              background-color: transparent; cellpadding: 0px; margin: 0px"
              title="Enter a short description of the task"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" style=" "
              width="100px" width="53" bgcolor="#FFFFD 0">
              <input name="Task1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r1w1_ID" class="workplan td"
              onClick=setBack ground("r1w1") unsetBackground ("r1w1")
              onFocus=changeS tyle("r1w1") onBlur=unchange Style("r1w1")
              onDblClick=unse tBackground("r1 w1") width="53" bgcolor="#F6FBF 3"><img
              src="/icons/ecblank.gif" border="0" height="1" width="1"
              alt=""></td><td id="r1w2_ID" class="workplan td"
              onClick=setBack ground("r1w2") onDblClick=unse tBackground("r1 w2")
              onFocus=changeS tyle("r1w2") onBlur=unchange Style("r1w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w3_ID" class="workplan td"
              onClick=setBack ground("r1w3") onDblClick=unse tBackground("r1 w3")
              onFocus=changeS tyle("r1w3") onBlur=unchange Style("r1w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w4_ID" class="workplan td"
              onClick=setBack ground("r1w4") onDblClick=unse tBackground("r1 w4")
              onFocus=changeS tyle("r1w4") onBlur=unchange Style("r1w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w5_ID" class="workplan td"
              onClick=setBack ground("r1w5") onDblClick=unse tBackground("r1 w5")
              onFocus=changeS tyle("r1w5") onBlur=unchange Style("r1w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w6_ID" class="workplan td"
              onClick=setBack ground("r1w6") onDblClick=unse tBackground("r1 w6")
              onFocus=changeS tyle("r1w6") onBlur=unchange Style("r1w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w7_ID" class="workplan td" style=" "
              onClick=setBack ground("r1w7") onDblClick=unse tBackground("r1 w7")
              onFocus=changeS tyle("r1w7") onBlur=unchange Style("r1w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w8_ID" class="workplan td"
              onClick=setBack ground("r1w8") onDblClick=unse tBackground("r1 w8")
              onFocus=changeS tyle("r1w8") onBlur=unchange Style("r1w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w9_ID" class="workplan td"
              onClick=setBack ground("r1w9") onDblClick=unse tBackground("r1 w9")
              onFocus=changeS tyle("r1w9") onBlur=unchange Style("r1w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w10_ID" class="workplan td"
              onClick=setBack ground("r1w10") onDblClick=unse tBackground("r1 w10")
              onFocus=changeS tyle("r1w10") onBlur=unchange Style("r1w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w11_ID" class="workplan td"
              onClick=setBack ground("r1w11") onDblClick=unse tBackground("r1 w11")
              onFocus=changeS tyle("r1w11") onBlur=unchange Style("r1w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w12_ID" class="workplan td"
              onClick=setBack ground("r1w12") onDblClick=unse tBackground("r1 w12")
              onFocus=changeS tyle("r1w12") onBlur=unchange Style("r1w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w13_ID" class="workplan td"
              onClick=setBack ground("r1w13") onDblClick=unse tBackground("r1 w13")
              onFocus=changeS tyle("r1w13") onBlur=unchange Style("r1w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w14_ID" class="workplan td"
              onClick=setBack ground("r1w14") onDblClick=unse tBackground("r1 w14")
              onFocus=changeS tyle("r1w14") onBlur=unchange Style("r1w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w15_ID" class="workplan td"
              onClick=setBack ground("r1w15") onDblClick=unse tBackground("r1 w15")
              onFocus=changeS tyle("r1w15") onBlur=unchange Style("r1w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r1w16_ID" class="workplan td"
              onClick=setBack ground("r1w16") onDblClick=unse tBackground("r1 w16")
              onFocus=changeS tyle("r1w16") onBlur=unchange Style("r1w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 " value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r2w1_ID" class="workplan td"
              onClick=setBack ground("r2w1") onDblClick=unse tBackground("r2 w1")
              onFocus=changeS tyle("r2w1") onBlur=unchange Style("r2w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w2_ID" class="workplan td"
              onClick=setBack ground("r2w2") onDblClick=unse tBackground("r2 w2")
              onFocus=changeS tyle("r2w2") onBlur=unchange Style("r2w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w3_ID" class="workplan td"
              onClick=setBack ground("r2w3") onDblClick=unse tBackground("r2 w3")
              onFocus=changeS tyle("r2w3") onBlur=unchange Style("r2w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w4_ID" class="workplan td"
              onClick=setBack ground("r2w4") onDblClick=unse tBackground("r2 w4")
              onFocus=changeS tyle("r2w4") onBlur=unchange Style("r2w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w5_ID" class="workplan td"
              onClick=setBack ground("r2w5") onDblClick=unse tBackground("r2 w5")
              onFocus=changeS tyle("r2w5") onBlur=unchange Style("r2w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w6_ID" class="workplan td"
              onClick=setBack ground("r2w6") onDblClick=unse tBackground("r2 w6")
              onFocus=changeS tyle("r2w6") onBlur=unchange Style("r2w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w7_ID" class="workplan td"
              onClick=setBack ground("r2w7") onDblClick=unse tBackground("r2 w7")
              onFocus=changeS tyle("r2w7") onBlur=unchange Style("r2w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w8_ID" class="workplan td"
              onClick=setBack ground("r2w8") onDblClick=unse tBackground("r2 w8")
              onFocus=changeS tyle("r2w8") onBlur=unchange Style("r2w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w9_ID" class="workplan td"
              onClick=setBack ground("r2w9") onDblClick=unse tBackground("r2 w9")
              onFocus=changeS tyle("r2w9") onBlur=unchange Style("r2w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w10_ID" class="workplan td"
              onClick=setBack ground("r2w10") onDblClick=unse tBackground("r2 w10")
              onFocus=changeS tyle("r2w10") onBlur=unchange Style("r2w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w11_ID" class="workplan td"
              onClick=setBack ground("r2w11") onDblClick=unse tBackground("r2 w11")
              onFocus=changeS tyle("r2w11") onBlur=unchange Style("r2w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w12_ID" class="workplan td"
              onClick=setBack ground("r2w12") onDblClick=unse tBackground("r2 w12")
              onFocus=changeS tyle("r2w12") onBlur=unchange Style("r2w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w13_ID" class="workplan td"
              onClick=setBack ground("r2w13") onDblClick=unse tBackground("r2 w13")
              onFocus=changeS tyle("r2w13") onBlur=unchange Style("r2w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w14_ID" class="workplan td"
              onClick=setBack ground("r2w14") onDblClick=unse tBackground("r2 w14")
              onFocus=changeS tyle("r2w14") onBlur=unchange Style("r2w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w15_ID" class="workplan td"
              onClick=setBack ground("r2w15") onDblClick=unse tBackground("r2 w15")
              onFocus=changeS tyle("r2w15") onBlur=unchange Style("r2w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r2w16_ID" class="workplan td"
              onClick=setBack ground("r2w16") onDblClick=unse tBackground("r2 w16")
              onFocus=changeS tyle("r2w16") onBlur=unchange Style("r2w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1" value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 " value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r3w1_ID" class="workplan td"
              onClick=setBack ground("r3w1") onDblClick=unse tBackground("r3 w1")
              onFocus=changeS tyle("r3w1") onBlur=unchange Style("r3w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w2_ID" class="workplan td"
              onClick=setBack ground("r3w2") onDblClick=unse tBackground("r3 w2")
              onFocus=changeS tyle("r3w2") onBlur=unchange Style("r3w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w3_ID" class="workplan td"
              onClick=setBack ground("r3w3") onDblClick=unse tBackground("r3 w3")
              onFocus=changeS tyle("r3w3") onBlur=unchange Style("r3w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w4_ID" class="workplan td"
              onClick=setBack ground("r3w4") onDblClick=unse tBackground("r3 w4")
              onFocus=changeS tyle("r3w4") onBlur=unchange Style("r3w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w5_ID" class="workplan td"
              onClick=setBack ground("r3w5") onDblClick=unse tBackground("r3 w5")
              onFocus=changeS tyle("r3w5") onBlur=unchange Style("r3w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w6_ID" class="workplan td"
              onClick=setBack ground("r3w6") onDblClick=unse tBackground("r3 w6")
              onFocus=changeS tyle("r3w6") onBlur=unchange Style("r3w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w7_ID" class="workplan td"
              onClick=setBack ground("r3w7") onDblClick=unse tBackground("r3 w7")
              onFocus=changeS tyle("r3w7") onBlur=unchange Style("r3w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w8_ID" class="workplan td"
              onClick=setBack ground("r3w8") onDblClick=unse tBackground("r3 w8")
              onFocus=changeS tyle("r3w8") onBlur=unchange Style("r3w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w9_ID" class="workplan td"
              onClick=setBack ground("r3w9") onDblClick=unse tBackground("r3 w9")
              onFocus=changeS tyle("r3w9") onBlur=unchange Style("r3w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w10_ID" class="workplan td"
              onClick=setBack ground("r3w10") onDblClick=unse tBackground("r3 w10")
              onFocus=changeS tyle("r3w10") onBlur=unchange Style("r3w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w11_ID" class="workplan td"
              onClick=setBack ground("r3w11") onDblClick=unse tBackground("r3 w11")
              onFocus=changeS tyle("r3w11") onBlur=unchange Style("r3w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w12_ID" class="workplan td"
              onClick=setBack ground("r3w12") onDblClick=unse tBackground("r3 w12")
              onFocus=changeS tyle("r3w12") onBlur=unchange Style("r3w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w13_ID" class="workplan td"
              onClick=setBack ground("r3w13") onDblClick=unse tBackground("r3 w13")
              onFocus=changeS tyle("r3w13") onBlur=unchange Style("r3w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w14_ID" class="workplan td"
              onClick=setBack ground("r3w14") onDblClick=unse tBackground("r3 w14")
              onFocus=changeS tyle("r3w14") onBlur=unchange Style("r3w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w15_ID" class="workplan td"
              onClick=setBack ground("r3w15") onDblClick=unse tBackground("r3 w15")
              onFocus=changeS tyle("r3w15") onBlur=unchange Style("r3w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r3w16_ID" class="workplan td"
              onClick=setBack ground("r3w16") onDblClick=unse tBackground("r3 w16")
              onFocus=changeS tyle("r3w16") onBlur=unchange Style("r3w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1" value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r4w1_ID" class="workplan td"
              onClick=setBack ground("r4w1") onDblClick=unse tBackground("r4 w1")
              onFocus=changeS tyle("r4w1") onBlur=unchange Style("r4w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w2_ID" class="workplan td"
              onClick=setBack ground("r4w2") onDblClick=unse tBackground("r4 w2")
              onFocus=changeS tyle("r4w2") onBlur=unchange Style("r4w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w3_ID" class="workplan td"
              onClick=setBack ground("r4w3") onDblClick=unse tBackground("r4 w3")
              onFocus=changeS tyle("r4w3") onBlur=unchange Style("r4w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w4_ID" class="workplan td"
              onClick=setBack ground("r4w4") onDblClick=unse tBackground("r4 w4")
              onFocus=changeS tyle("r4w4") onBlur=unchange Style("r4w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w5_ID" class="workplan td"
              onClick=setBack ground("r4w5") onDblClick=unse tBackground("r4 w5")
              onFocus=changeS tyle("r4w5") onBlur=unchange Style("r4w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w6_ID" class="workplan td"
              onClick=setBack ground("r4w6") onDblClick=unse tBackground("r4 w6")
              onFocus=changeS tyle("r4w6") onBlur=unchange Style("r4w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w7_ID" class="workplan td"
              onClick=setBack ground("r4w7") onDblClick=unse tBackground("r4 w7")
              onFocus=changeS tyle("r4w7") onBlur=unchange Style("r4w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w8_ID" class="workplan td"
              onClick=setBack ground("r4w8") onDblClick=unse tBackground("r4 w8")
              onFocus=changeS tyle("r4w8") onBlur=unchange Style("r4w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w9_ID" class="workplan td"
              onClick=setBack ground("r4w9") onDblClick=unse tBackground("r4 w9")
              onFocus=changeS tyle("r4w9") onBlur=unchange Style("r4w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w10_ID" class="workplan td"
              onClick=setBack ground("r4w10") onDblClick=unse tBackground("r4 w10")
              onFocus=changeS tyle("r4w10") onBlur=unchange Style("r4w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w11_ID" class="workplan td"
              onClick=setBack ground("r4w11") onDblClick=unse tBackground("r4 w11")
              onFocus=changeS tyle("r4w11") onBlur=unchange Style("r4w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w12_ID" class="workplan td"
              onClick=setBack ground("r4w12") onDblClick=unse tBackground("r4 w12")
              onFocus=changeS tyle("r4w12") onBlur=unchange Style("r4w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w13_ID" class="workplan td"
              onClick=setBack ground("r4w13") onDblClick=unse tBackground("r4 w13")
              onFocus=changeS tyle("r4w13") onBlur=unchange Style("r4w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w14_ID" class="workplan td"
              onClick=setBack ground("r4w14") onDblClick=unse tBackground("r4 w14")
              onFocus=changeS tyle("r4w14") onBlur=unchange Style("r4w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w15_ID" class="workplan td"
              onClick=setBack ground("r4w15") onDblClick=unse tBackground("r4 w15")
              onFocus=changeS tyle("r4w15") onBlur=unchange Style("r4w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r4w16_ID" class="workplan td"
              onClick=setBack ground("r4w16") onDblClick=unse tBackground("r4 w16")
              onFocus=changeS tyle("r4w16") onBlur=unchange Style("r4w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r5w1_ID" class="workplan td"
              onClick=setBack ground("r5w1") onDblClick=unse tBackground("r5 w1")
              onFocus=changeS tyle("r5w1") onBlur=unchange Style("r5w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w2_ID" class="workplan td"
              onClick=setBack ground("r5w2") onDblClick=unse tBackground("r5 w2")
              onFocus=changeS tyle("r5w2") onBlur=unchange Style("r5w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w3_ID" class="workplan td"
              onClick=setBack ground("r5w3") onDblClick=unse tBackground("r5 w3")
              onFocus=changeS tyle("r5w3") onBlur=unchange Style("r5w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w4_ID" class="workplan td"
              onClick=setBack ground("r5w4") onDblClick=unse tBackground("r5 w4")
              onFocus=changeS tyle("r5w4") onBlur=unchange Style("r5w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w5_ID" class="workplan td"
              onClick=setBack ground("r5w5") onDblClick=unse tBackground("r5 w5")
              onFocus=changeS tyle("r5w5") onBlur=unchange Style("r5w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w6_ID" class="workplan td"
              onClick=setBack ground("r5w6") onDblClick=unse tBackground("r5 w6")
              onFocus=changeS tyle("r5w6") onBlur=unchange Style("r5w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w7_ID" class="workplan td"
              onClick=setBack ground("r5w7") onDblClick=unse tBackground("r5 w7")
              onFocus=changeS tyle("r5w7") onBlur=unchange Style("r5w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w8_ID" class="workplan td"
              onClick=setBack ground("r5w8") onDblClick=unse tBackground("r5 w8")
              onFocus=changeS tyle("r5w8") onBlur=unchange Style("r5w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w9_ID" class="workplan td"
              onClick=setBack ground("r5w9") onDblClick=unse tBackground("r5 w9")
              onFocus=changeS tyle("r5w9") onBlur=unchange Style("r5w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w10_ID" class="workplan td"
              onClick=setBack ground("r5w10") onDblClick=unse tBackground("r5 w10")
              onFocus=changeS tyle("r5w10") onBlur=unchange Style("r5w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w11_ID" class="workplan td"
              onClick=setBack ground("r5w11") onDblClick=unse tBackground("r5 w11")
              onFocus=changeS tyle("r5w11") onBlur=unchange Style("r5w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w12_ID" class="workplan td"
              onClick=setBack ground("r5w12") onDblClick=unse tBackground("r5 w12")
              onFocus=changeS tyle("r5w12") onBlur=unchange Style("r5w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w13_ID" class="workplan td"
              onClick=setBack ground("r5w13") onDblClick=unse tBackground("r5 w13")
              onFocus=changeS tyle("r5w13") onBlur=unchange Style("r5w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w14_ID" class="workplan td"
              onClick=setBack ground("r5w14") onDblClick=unse tBackground("r5 w14")
              onFocus=changeS tyle("r5w14") onBlur=unchange Style("r5w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w15_ID" class="workplan td"
              onClick=setBack ground("r5w15") onDblClick=unse tBackground("r5 w15")
              onFocus=changeS tyle("r5w15") onBlur=unchange Style("r5w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r5w16_ID" class="workplan td"
              onClick=setBack ground("r5w16") onDblClick=unse tBackground("r5 w16")
              onFocus=changeS tyle("r5w16") onBlur=unchange Style("r5w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r6w1_ID" class="workplan td"
              onClick=setBack ground("r6w1") onDblClick=unse tBackground("r6 w1")
              onFocus=changeS tyle("r6w1") onBlur=unchange Style("r6w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w2_ID" class="workplan td"
              onClick=setBack ground("r6w2") onDblClick=unse tBackground("r6 w2")
              onFocus=changeS tyle("r6w2") onBlur=unchange Style("r6w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w3_ID" class="workplan td"
              onClick=setBack ground("r6w3") onDblClick=unse tBackground("r6 w3")
              onFocus=changeS tyle("r6w3") onBlur=unchange Style("r6w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w4_ID" class="workplan td"
              onClick=setBack ground("r6w4") onDblClick=unse tBackground("r6 w4")
              onFocus=changeS tyle("r6w4") onBlur=unchange Style("r6w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w5_ID" class="workplan td"
              onClick=setBack ground("r6w5") onDblClick=unse tBackground("r6 w5")
              onFocus=changeS tyle("r6w5") onBlur=unchange Style("r6w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w6_ID" class="workplan td"
              onClick=setBack ground("r6w6") onDblClick=unse tBackground("r6 w6")
              onFocus=changeS tyle("r6w6") onBlur=unchange Style("r6w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w7_ID" class="workplan td"
              onClick=setBack ground("r6w7") onDblClick=unse tBackground("r6 w7")
              onFocus=changeS tyle("r6w7") onBlur=unchange Style("r6w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w8_ID" class="workplan td"
              onClick=setBack ground("r6w8") onDblClick=unse tBackground("r6 w8")
              onFocus=changeS tyle("r6w8") onBlur=unchange Style("r6w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w9_ID" class="workplan td"
              onClick=setBack ground("r6w9") onDblClick=unse tBackground("r6 w9")
              onFocus=changeS tyle("r6w9") onBlur=unchange Style("r6w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w10_ID" class="workplan td"
              onClick=setBack ground("r6w10") onDblClick=unse tBackground("r6 w10")
              onFocus=changeS tyle("r6w10") onBlur=unchange Style("r6w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w11_ID" class="workplan td"
              onClick=setBack ground("r6w11") onDblClick=unse tBackground("r6 w11")
              onFocus=changeS tyle("r6w11") onBlur=unchange Style("r6w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w12_ID" class="workplan td"
              onClick=setBack ground("r6w12") onDblClick=unse tBackground("r6 w12")
              onFocus=changeS tyle("r6w12") onBlur=unchange Style("r6w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w13_ID" class="workplan td"
              onClick=setBack ground("r6w13") onDblClick=unse tBackground("r6 w13")
              onFocus=changeS tyle("r6w13") onBlur=unchange Style("r6w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w14_ID" class="workplan td"
              onClick=setBack ground("r6w14") onDblClick=unse tBackground("r6 w14")
              onFocus=changeS tyle("r6w14") onBlur=unchange Style("r6w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w15_ID" class="workplan td"
              onClick=setBack ground("r6w15") onDblClick=unse tBackground("r6 w15")
              onFocus=changeS tyle("r6w15") onBlur=unchange Style("r6w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r6w16_ID" class="workplan td"
              onClick=setBack ground("r6w16") onDblClick=unse tBackground("r6 w16")
              onFocus=changeS tyle("r6w16") onBlur=unchange Style("r6w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1_1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r7w1_ID" class="workplan td"
              onClick=setBack ground("r7w1") onDblClick=unse tBackground("r7 w1")
              onFocus=changeS tyle("r7w1") onBlur=unchange Style("r7w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w2_ID" class="workplan td"
              onClick=setBack ground("r7w2") onDblClick=unse tBackground("r7 w2")
              onFocus=changeS tyle("r7w2") onBlur=unchange Style("r7w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w3_ID" class="workplan td"
              onClick=setBack ground("r7w3") onDblClick=unse tBackground("r7 w3")
              onFocus=changeS tyle("r7w3") onBlur=unchange Style("r7w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w4_ID" class="workplan td"
              onClick=setBack ground("r7w4") onDblClick=unse tBackground("r7 w4")
              onFocus=changeS tyle("r7w4") onBlur=unchange Style("r7w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w5_ID" class="workplan td"
              onClick=setBack ground("r7w5") onDblClick=unse tBackground("r7 w5")
              onFocus=changeS tyle("r7w5") onBlur=unchange Style("r7w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w6_ID" class="workplan td"
              onClick=setBack ground("r7w6") onDblClick=unse tBackground("r7 w6")
              onFocus=changeS tyle("r7w6") onBlur=unchange Style("r7w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w7_ID" class="workplan td"
              onClick=setBack ground("r7w7") onDblClick=unse tBackground("r7 w7")
              onFocus=changeS tyle("r7w7") onBlur=unchange Style("r7w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w8_ID" class="workplan td"
              onClick=setBack ground("r7w8") onDblClick=unse tBackground("r7 w8")
              onFocus=changeS tyle("r7w8") onBlur=unchange Style("r7w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w9_ID" class="workplan td"
              onClick=setBack ground("r7w9") onDblClick=unse tBackground("r7 w9")
              onFocus=changeS tyle("r7w9") onBlur=unchange Style("r7w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w10_ID" class="workplan td"
              onClick=setBack ground("r7w10") onDblClick=unse tBackground("r7 w10")
              onFocus=changeS tyle("r7w10") onBlur=unchange Style("r7w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w11_ID" class="workplan td"
              onClick=setBack ground("r7w11") onDblClick=unse tBackground("r7 w11")
              onFocus=changeS tyle("r7w11") onBlur=unchange Style("r7w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w12_ID" class="workplan td"
              onClick=setBack ground("r7w12") onDblClick=unse tBackground("r7 w12")
              onFocus=changeS tyle("r7w12") onBlur=unchange Style("r7w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w13_ID" class="workplan td"
              onClick=setBack ground("r7w13") onDblClick=unse tBackground("r7 w13")
              onFocus=changeS tyle("r7w13") onBlur=unchange Style("r7w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w14_ID" class="workplan td"
              onClick=setBack ground("r7w14") onDblClick=unse tBackground("r7 w14")
              onFocus=changeS tyle("r7w14") onBlur=unchange Style("r7w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w15_ID" class="workplan td"
              onClick=setBack ground("r7w15") onDblClick=unse tBackground("r7 w15")
              onFocus=changeS tyle("r7w15") onBlur=unchange Style("r7w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r7w16_ID" class="workplan td"
              onClick=setBack ground("r7w16") onDblClick=unse tBackground("r7 w16")
              onFocus=changeS tyle("r7w16") onBlur=unchange Style("r7w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1_1_1_1_1" value="" style=" border-width :
              0px; background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1_1_1_1" value="" style=" border-width : 0px;
              background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r8w1_ID" class="workplan td"
              onClick=setBack ground("r8w1") onDblClick=unse tBackground("r8 w1")
              onFocus=changeS tyle("r8w1") onBlur=unchange Style("r8w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w2_ID" class="workplan td"
              onClick=setBack ground("r8w2") onDblClick=unse tBackground("r8 w2")
              onFocus=changeS tyle("r8w2") onBlur=unchange Style("r8w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w3_ID" class="workplan td"
              onClick=setBack ground("r8w3") onDblClick=unse tBackground("r8 w3")
              onFocus=changeS tyle("r8w3") onBlur=unchange Style("r8w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w4_ID" class="workplan td"
              onClick=setBack ground("r8w4") onDblClick=unse tBackground("r8 w4")
              onFocus=changeS tyle("r8w4") onBlur=unchange Style("r8w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w5_ID" class="workplan td"
              onClick=setBack ground("r8w5") onDblClick=unse tBackground("r8 w5")
              onFocus=changeS tyle("r8w5") onBlur=unchange Style("r8w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w6_ID" class="workplan td"
              onClick=setBack ground("r8w6") onDblClick=unse tBackground("r8 w6")
              onFocus=changeS tyle("r8w6") onBlur=unchange Style("r8w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w7_ID" class="workplan td"
              onClick=setBack ground("r8w7") onDblClick=unse tBackground("r8 w7")
              onFocus=changeS tyle("r8w7") onBlur=unchange Style("r8w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w8_ID" class="workplan td"
              onClick=setBack ground("r8w8") onDblClick=unse tBackground("r8 w8")
              onFocus=changeS tyle("r8w8") onBlur=unchange Style("r8w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w9_ID" class="workplan td"
              onClick=setBack ground("r8w9") onDblClick=unse tBackground("r8 w9")
              onFocus=changeS tyle("r8w9") onBlur=unchange Style("r8w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w10_ID" class="workplan td"
              onClick=setBack ground("r8w10") onDblClick=unse tBackground("r8 w10")
              onFocus=changeS tyle("r8w10") onBlur=unchange Style("r8w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w11_ID" class="workplan td"
              onClick=setBack ground("r8w11") onDblClick=unse tBackground("r8 w11")
              onFocus=changeS tyle("r8w11") onBlur=unchange Style("r8w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w12_ID" class="workplan td"
              onClick=setBack ground("r8w12") onDblClick=unse tBackground("r8 w12")
              onFocus=changeS tyle("r8w12") onBlur=unchange Style("r8w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w13_ID" class="workplan td"
              onClick=setBack ground("r8w13") onDblClick=unse tBackground("r8 w13")
              onFocus=changeS tyle("r8w13") onBlur=unchange Style("r8w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w14_ID" class="workplan td"
              onClick=setBack ground("r8w14") onDblClick=unse tBackground("r8 w14")
              onFocus=changeS tyle("r8w14") onBlur=unchange Style("r8w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w15_ID" class="workplan td"
              onClick=setBack ground("r8w15") onDblClick=unse tBackground("r8 w15")
              onFocus=changeS tyle("r8w15") onBlur=unchange Style("r8w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r8w16_ID" class="workplan td"
              onClick=setBack ground("r8w16") onDblClick=unse tBackground("r8 w16")
              onFocus=changeS tyle("r8w16") onBlur=unchange Style("r8w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">

              <input name="Person1_1 _1_1_1_1_1_1_1" value="" style=" border-width :
              0px; background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1_1_1_1_1" value="" style=" border-width :
              0px; background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r9w1_ID" class="workplan td"
              onClick=setBack ground("r9w1") onDblClick=unse tBackground("r9 w1")
              onFocus=changeS tyle("r9w1") onBlur=unchange Style("r9w1") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w2_ID" class="workplan td"
              onClick=setBack ground("r9w2") onDblClick=unse tBackground("r9 w2")
              onFocus=changeS tyle("r9w2") onBlur=unchange Style("r9w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w3_ID" class="workplan td"
              onClick=setBack ground("r9w3") onDblClick=unse tBackground("r9 w3")
              onFocus=changeS tyle("r9w3") onBlur=unchange Style("r9w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w4_ID" class="workplan td"
              onClick=setBack ground("r9w4") onDblClick=unse tBackground("r9 w4")
              onFocus=changeS tyle("r9w4") onBlur=unchange Style("r9w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w5_ID" class="workplan td"
              onClick=setBack ground("r9w5") onDblClick=unse tBackground("r9 w5")
              onFocus=changeS tyle("r9w5") onBlur=unchange Style("r9w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w6_ID" class="workplan td"
              onClick=setBack ground("r9w6") onDblClick=unse tBackground("r9 w6")
              onFocus=changeS tyle("r9w6") onBlur=unchange Style("r9w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w7_ID" class="workplan td"
              onClick=setBack ground("r9w7") onDblClick=unse tBackground("r9 w7")
              onFocus=changeS tyle("r9w7") onBlur=unchange Style("r9w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w8_ID" class="workplan td"
              onClick=setBack ground("r9w8") onDblClick=unse tBackground("r9 w8")
              onFocus=changeS tyle("r9w8") onBlur=unchange Style("r9w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w9_ID" class="workplan td"
              onClick=setBack ground("r9w9") onDblClick=unse tBackground("r9 w9")
              onFocus=changeS tyle("r9w9") onBlur=unchange Style("r9w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w10_ID" class="workplan td"
              onClick=setBack ground("r9w10") onDblClick=unse tBackground("r9 w10")
              onFocus=changeS tyle("r9w10") onBlur=unchange Style("r9w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w11_ID" class="workplan td"
              onClick=setBack ground("r9w11") onDblClick=unse tBackground("r9 w11")
              onFocus=changeS tyle("r9w11") onBlur=unchange Style("r9w11") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w12_ID" class="workplan td"
              onClick=setBack ground("r9w12") onDblClick=unse tBackground("r9 w12")
              onFocus=changeS tyle("r9w12") onBlur=unchange Style("r9w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w13_ID" class="workplan td"
              onClick=setBack ground("r9w13") onDblClick=unse tBackground("r9 w13")
              onFocus=changeS tyle("r9w13") onBlur=unchange Style("r9w13") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w14_ID" class="workplan td"
              onClick=setBack ground("r9w14") onDblClick=unse tBackground("r9 w14")
              onFocus=changeS tyle("r9w14") onBlur=unchange Style("r9w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w15_ID" class="workplan td"
              onClick=setBack ground("r9w15") onDblClick=unse tBackground("r9 w15")
              onFocus=changeS tyle("r9w15") onBlur=unchange Style("r9w15") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r9w16_ID" class="workplan td"
              onClick=setBack ground("r9w16") onDblClick=unse tBackground("r9 w16")
              onFocus=changeS tyle("r9w16") onBlur=unchange Style("r9w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>

              <tr valign="top"><t d class="workplan td" width="53" bgcolor="#FFFFD 0">
              <input name="Person1_1 _1_1_1_1_1_1_1_ 1" value="" style=" border-width :
              0px; background-color: transparent;" size="20"><img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td class="workplan td" width="53"
              bgcolor="#FFFFD 0">
              <input name="Task1_1_1 _1_1_1_1_1_1_1" value="" style=" border-width :
              0px; background-color: transparent;">< img
              src="/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce"
              width="1" height="1" alt=""></td><td id="r10w1_ID" class="workplan td"
              onClick=setBack ground("r10w1") onDblClick=unse tBackground("r1 0w1")
              onFocus=changeS tyle("r10w1") onBlur=unchange Style("r10w1")
              style="backgrou nd-image:url(/dev/iels/ielsmain.nsf/transparent.gif ?OpenImageResou rce);
              background-repeat: repeat; " width="53" bgcolor="#F6FBF 3"><img
              src="/icons/ecblank.gif" border="0" height="1" width="1"
              alt=""></td><td id="r10w2_ID" class="workplan td"
              onClick=setBack ground("r10w2") onDblClick=unse tBackground("r1 0w2")
              onFocus=changeS tyle("r10w2") onBlur=unchange Style("r10w2")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w3_ID" class="workplan td"
              onClick=setBack ground("r10w3") onDblClick=unse tBackground("r1 0w3")
              onFocus=changeS tyle("r10w3") onBlur=unchange Style("r10w3") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w4_ID" class="workplan td"
              onClick=setBack ground("r10w4") onDblClick=unse tBackground("r1 0w4")
              onFocus=changeS tyle("r10w4") onBlur=unchange Style("r10w4")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w5_ID" class="workplan td"
              onClick=setBack ground("r10w5") onDblClick=unse tBackground("r1 0w5")
              onFocus=changeS tyle("r10w5") onBlur=unchange Style("r10w5") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w6_ID" class="workplan td"
              onClick=setBack ground("r10w6") onDblClick=unse tBackground("r1 0w6")
              onFocus=changeS tyle("r10w6") onBlur=unchange Style("r10w6")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w7_ID" class="workplan td"
              onClick=setBack ground("r10w7") onDblClick=unse tBackground("r1 0w7")
              onFocus=changeS tyle("r10w7") onBlur=unchange Style("r10w7") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w8_ID" class="workplan td"
              onClick=setBack ground("r10w8") onDblClick=unse tBackground("r1 0w8")
              onFocus=changeS tyle("r10w8") onBlur=unchange Style("r10w8")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w9_ID" class="workplan td"
              onClick=setBack ground("r10w9") onDblClick=unse tBackground("r1 0w9")
              onFocus=changeS tyle("r10w9") onBlur=unchange Style("r10w9") width="53"
              bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w10_ID" class="workplan td"
              onClick=setBack ground("r10w10" ) onDblClick=unse tBackground("r1 0w10")
              onFocus=changeS tyle("r10w10") onBlur=unchange Style("r10w10")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w11_ID" class="workplan td"
              onClick=setBack ground("r10w11" ) onDblClick=unse tBackground("r1 0w11")
              onFocus=changeS tyle("r10w11") onBlur=unchange Style("r10w11")
              width="53" bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0"
              height="1" width="1" alt=""></td><td id="r10w12_ID" class="workplan td"
              onClick=setBack ground("r10w12" ) onDblClick=unse tBackground("r1 0w12")
              onFocus=changeS tyle("r10w12") onBlur=unchange Style("r10w12")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w13_ID" class="workplan td"
              onClick=setBack ground("r10w13" ) onDblClick=unse tBackground("r1 0w13")
              onFocus=changeS tyle("r10w13") onBlur=unchange Style("r10w13")
              width="53" bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0"
              height="1" width="1" alt=""></td><td id="r10w14_ID" class="workplan td"
              onClick=setBack ground("r10w14" ) onDblClick=unse tBackground("r1 0w14")
              onFocus=changeS tyle("r10w14") onBlur=unchange Style("r10w14")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td><td id="r10w15_ID" class="workplan td"
              onClick=setBack ground("r10w15" ) onDblClick=unse tBackground("r1 0w15")
              onFocus=changeS tyle("r10w15") onBlur=unchange Style("r10w15")
              width="53" bgcolor="#F6FBF 3"><img src="/icons/ecblank.gif" border="0"
              height="1" width="1" alt=""></td><td id="r10w16_ID" class="workplan td"
              onClick=setBack ground("r10w16" ) onDblClick=unse tBackground("r1 0w16")
              onFocus=changeS tyle("r10w16") onBlur=unchange Style("r10w16")
              width="53"><img src="/icons/ecblank.gif" border="0" height="1"
              width="1" alt=""></td></tr>
              </table>
              <br>
              <table class="layout" cellspacing="2" width="100%" border="1">
              <tr valign="top"><t d width="100%"><d iv align="center"> <img
              src="/dev/iels/ielsconfig.nsf/lookups/imagesform/$file/but_savedraft.g if"
              border="0" onClick="saveDr aft()"></a><img
              src="/dev/iels/ielsconfig.nsf/lookups/imagesform/$file/but_submit.gif"
              border="0" onClick="submit Doc()"></a></div></td></tr>
              </table>

              Sorry if that is long but its just repititive. I dont seem to be able
              to set the value to the field with the amended code.

              Thanks for your time.

              Comment

              • Otto Lang

                #8
                Re: Function doesnt work in Safari

                Laurent Bugnion <galasoft-lb@bluewin.chwr ote:
                Hi,
                Hi,
                To make your reply even better, you could have suggested using
                document.getEle mentById instead ;-)
                that's right. I've forgotten the second part. I shouldn't work when
                posting. Thx a lot :)
                HTH,
                Laurent
                ../otto

                Comment

                • Laurent Bugnion

                  #9
                  Re: Function doesnt work in Safari

                  Hi,

                  effendi@epitome .com.sg wrote:
                  Lauren
                  You almost got it right. Just add a "T" at the end ;-)
                  >
                  This is the js file I have in my system
                  >
                  function setBackground(c ellName){
                  if (document.forms[0].IsEditDoc.valu e=="Yes"){
                  cellID=cellName +"_ID";
                  cellName=cellNa me+"ID"
                  What are you doing here? Basically, you don't need a name, ID is
                  sufficient. Name is only needed on form inputs, if you want to submit
                  them to the server. Otherwise, use ID.
                  document.getEle mentById(cellID ).style.backgro undColor='#84DF C1'
                  document.getEle mentById(cellNa me).value="X"}
                  Same remark. It would be better to do:

                  var nCell = document.getEle mentById( cellID );

                  if ( nCell ) // This makes sure that the cell was found
                  {
                  nCell.style.bac kgroundColor = "...";
                  nCell.value = "X";
                  }
                  else
                  {alert("Please click on the Edit button")}
                  }
                  I just noticed that you posted your whole file. Sorry, I really cannot
                  check everything. Strip it to the bare necessary. I see it's generated
                  code. Try to format it in a way that allows you to find the error in an
                  easier way.

                  Generally, write the client-side code first. Get it to work, and then
                  get your server to generate the same code. That's the best way to get it
                  to work.

                  I am not sure I ever saw anyone post as much code to this newsgroup
                  before (and I am on it since... last century *L*). I asked you to post
                  trimmed code only. If you don't make an effort, noone here will either!

                  HTH,
                  Laurent
                  --
                  Laurent Bugnion, GalaSoft
                  Software engineering: http://www.galasoft-LB.ch
                  PhotoAlbum: http://www.galasoft-LB.ch/pictures
                  Support children in Calcutta: http://www.calcutta-espoir.ch

                  Comment

                  • effendi@epitome.com.sg

                    #10
                    Re: Function doesnt work in Safari


                    Laurent Bugnion wrote:
                    Hi,
                    >
                    effendi@epitome .com.sg wrote:
                    Lauren
                    >
                    You almost got it right. Just add a "T" at the end ;-)
                    >

                    This is the js file I have in my system

                    function setBackground(c ellName){
                    if (document.forms[0].IsEditDoc.valu e=="Yes"){
                    cellID=cellName +"_ID";
                    cellName=cellNa me+"ID"
                    >
                    What are you doing here? Basically, you don't need a name, ID is
                    sufficient. Name is only needed on form inputs, if you want to submit
                    them to the server. Otherwise, use ID.
                    >
                    document.getEle mentById(cellID ).style.backgro undColor='#84DF C1'
                    document.getEle mentById(cellNa me).value="X"}
                    >
                    Same remark. It would be better to do:
                    >
                    var nCell = document.getEle mentById( cellID );
                    >
                    if ( nCell ) // This makes sure that the cell was found
                    {
                    nCell.style.bac kgroundColor = "...";
                    nCell.value = "X";
                    }
                    >
                    else
                    {alert("Please click on the Edit button")}
                    }
                    >
                    I just noticed that you posted your whole file. Sorry, I really cannot
                    check everything. Strip it to the bare necessary. I see it's generated
                    code. Try to format it in a way that allows you to find the error in an
                    easier way.
                    >
                    Generally, write the client-side code first. Get it to work, and then
                    get your server to generate the same code. That's the best way to get it
                    to work.
                    >
                    I am not sure I ever saw anyone post as much code to this newsgroup
                    before (and I am on it since... last century *L*). I asked you to post
                    trimmed code only. If you don't make an effort, noone here will either!
                    >
                    HTH,
                    Laurent
                    --
                    Laurent Bugnion, GalaSoft
                    Software engineering: http://www.galasoft-LB.ch
                    PhotoAlbum: http://www.galasoft-LB.ch/pictures
                    Support children in Calcutta: http://www.calcutta-espoir.ch

                    Laurent

                    Thanks for the input. That was the trimmed code. I guess it was too
                    long. Just to clariy a little, the cellName is the ID of the field, the
                    cellID refers to the table cells and not th field and hence the reason
                    I have 2 "IDs".

                    In any case, the problem I am having now is that I can't set the value
                    X to the field. Only when I unhide it, will it work. The original code
                    worked but only in IE so we are now revamping to get it to work on all
                    broswers.

                    So the question is why can't i set the value when the field is in
                    hidden mode. I never had this issue before.

                    Regards

                    Comment

                    • RobG

                      #11
                      Re: Function doesnt work in Safari


                      effendi@epitome .com.sg wrote:
                      Laurent Bugnion wrote:
                      [...]
                      I just noticed that you posted your whole file. Sorry, I really cannot
                      check everything. Strip it to the bare necessary. I see it's generated
                      code. Try to format it in a way that allows you to find the error in an
                      easier way.
                      [...]
                      Thanks for the input. That was the trimmed code. I guess it was too
                      long. Just to clariy a little, the cellName is the ID of the field, the
                      cellID refers to the table cells and not th field and hence the reason
                      I have 2 "IDs".
                      >
                      In any case, the problem I am having now is that I can't set the value
                      X to the field. Only when I unhide it, will it work. The original code
                      worked but only in IE so we are now revamping to get it to work on all
                      broswers.
                      The code you posted is completely dysfunctional - it is dependent upon
                      document.forms yet there are no forms in the HTML document that you
                      posted.

                      So the question is why can't i set the value when the field is in
                      hidden mode. I never had this issue before.
                      Who knows? Reduce your example to at most 50 lines of code (including
                      HTML) that displays the error, then maybe someone can offer more than
                      guesses.

                      e.g.

                      <p>Click "Show hidden value", then "Change hidden value",
                      then "Show hidden value" again to see that it changed.</p>

                      <input type="hidden" id="hiddenInput " value="initial value">
                      <button onclick="showVa lue('hiddenInpu t');">Show
                      hidden value</button>
                      <button onclick="change HiddenValue('hi ddenInput');">C hange
                      hidden value</button>

                      <script type="text/javascript">

                      function changeHiddenVal ue(id) {
                      document.getEle mentById(id).va lue = "new value";
                      }
                      function showValue(id) {
                      alert(document. getElementById( id).value);
                      }

                      </script>


                      The above works in IE and Firefox, does it work in Safari? If so, then
                      you have a problem somewhere in your code - it should be reported by
                      the script console. Turn on debugging using the instructions here
                      (this link is included in the group FAQ):

                      <URL: http://developer.apple.com/internet/....html#anchor14 >

                      If it doesn't work in Safari, then there's probably a bug in the
                      browser. Use the above link to see how to report bugs.


                      --
                      Rob

                      Comment

                      • effendi@epitome.com.sg

                        #12
                        Re: Function doesnt work in Safari


                        RobG wrote:
                        effendi@epitome .com.sg wrote:
                        Laurent Bugnion wrote:
                        [...]
                        I just noticed that you posted your whole file. Sorry, I really cannot
                        check everything. Strip it to the bare necessary. I see it's generated
                        code. Try to format it in a way that allows you to find the error in an
                        easier way.
                        [...]
                        Thanks for the input. That was the trimmed code. I guess it was too
                        long. Just to clariy a little, the cellName is the ID of the field, the
                        cellID refers to the table cells and not th field and hence the reason
                        I have 2 "IDs".

                        In any case, the problem I am having now is that I can't set the value
                        X to the field. Only when I unhide it, will it work. The original code
                        worked but only in IE so we are now revamping to get it to work on all
                        broswers.
                        >
                        The code you posted is completely dysfunctional - it is dependent upon
                        document.forms yet there are no forms in the HTML document that you
                        posted.
                        >
                        >
                        So the question is why can't i set the value when the field is in
                        hidden mode. I never had this issue before.
                        >
                        Who knows? Reduce your example to at most 50 lines of code (including
                        HTML) that displays the error, then maybe someone can offer more than
                        guesses.
                        >
                        e.g.
                        >
                        <p>Click "Show hidden value", then "Change hidden value",
                        then "Show hidden value" again to see that it changed.</p>
                        >
                        <input type="hidden" id="hiddenInput " value="initial value">
                        <button onclick="showVa lue('hiddenInpu t');">Show
                        hidden value</button>
                        <button onclick="change HiddenValue('hi ddenInput');">C hange
                        hidden value</button>
                        >
                        <script type="text/javascript">
                        >
                        function changeHiddenVal ue(id) {
                        document.getEle mentById(id).va lue = "new value";
                        }
                        function showValue(id) {
                        alert(document. getElementById( id).value);
                        }
                        >
                        </script>
                        >
                        >
                        The above works in IE and Firefox, does it work in Safari? If so, then
                        you have a problem somewhere in your code - it should be reported by
                        the script console. Turn on debugging using the instructions here
                        (this link is included in the group FAQ):
                        >
                        <URL: http://developer.apple.com/internet/....html#anchor14 >
                        >
                        If it doesn't work in Safari, then there's probably a bug in the
                        browser. Use the above link to see how to report bugs.
                        >
                        >
                        --
                        Rob

                        Rob

                        Thanks. Anyway I posted only a portion of the form as requested. The
                        code worked fine ( perhaps requires more finetunning) for the last 2
                        yrs and has 60000 forms submitted. Al the issue now is we need to get
                        the application compatible will all broswers across all OS. As it was
                        specificaaly made and tested for IE.

                        Comment

                        • RobG

                          #13
                          Re: Function doesnt work in Safari


                          effendi@epitome .com.sg wrote:
                          RobG wrote:
                          [...]
                          So the question is why can't i set the value when the field is in
                          hidden mode. I never had this issue before.
                          [...]
                          e.g.

                          <p>Click "Show hidden value", then "Change hidden value",
                          then "Show hidden value" again to see that it changed.</p>

                          <input type="hidden" id="hiddenInput " value="initial value">
                          <button onclick="showVa lue('hiddenInpu t');">Show
                          hidden value</button>
                          <button onclick="change HiddenValue('hi ddenInput');">C hange
                          hidden value</button>

                          <script type="text/javascript">

                          function changeHiddenVal ue(id) {
                          document.getEle mentById(id).va lue = "new value";
                          }
                          function showValue(id) {
                          alert(document. getElementById( id).value);
                          }

                          </script>


                          The above works in IE and Firefox, does it work in Safari? If so, then
                          you have a problem somewhere in your code - it should be reported by
                          the script console. Turn on debugging using the instructions here
                          (this link is included in the group FAQ):

                          <URL: http://developer.apple.com/internet/....html#anchor14 >

                          If it doesn't work in Safari, then there's probably a bug in the
                          browser. Use the above link to see how to report bugs.
                          I checked, it works fine in Safari.

                          Thanks. Anyway I posted only a portion of the form as requested. The
                          code worked fine ( perhaps requires more finetunning) for the last 2
                          yrs and has 60000 forms submitted. Al the issue now is we need to get
                          the application compatible will all broswers across all OS. As it was
                          specificaaly made and tested for IE.
                          Your post said you can't set the value of a hidden input in Safari, my
                          test shows that the functionality works fine in Safari (and IE 5.2 and
                          Firefox 1.5 on Mac).

                          The original advice stands: create a minimal test that displays the
                          error. In the process of doing that, you will likley discover your
                          error. If not, post it here. The problem is not with Safari (or any
                          particular browser), it is most likely with your code.


                          --
                          Rob

                          Comment

                          Working...