473,491 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 processBackground(){ for (n=1;n<11;n++)
{

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

Oct 9 '06 #1
12 2037
ef*****@epitome.com.sg <ef*****@epitome.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 processBackground(){ for (n=1;n<11;n++)
{
cellrow="r"+n
for (i=1;i<17;i++){
cell=cellrow+"w"+i
cellName=cell+"_ID"
thisForm=document.forms[0]
if (document.all[cell].value==="X"){
document.all[cellName].style.backgroundColor='#84DFC1'
}
}
}
}
Safari doesn't know about the document.all object. So this function will
not work with Safari.

../otto
Oct 9 '06 #2
Hi,

Otto Lang wrote:
ef*****@epitome.com.sg <ef*****@epitome.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 processBackground(){ for (n=1;n<11;n++)
{
cellrow="r"+n
for (i=1;i<17;i++){
cell=cellrow+"w"+i
cellName=cell+"_ID"
thisForm=document.forms[0]
if (document.all[cell].value==="X"){
document.all[cellName].style.backgroundColor='#84DFC1'
}
}
}
}

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.getElementById instead ;-)

HTH,
Laurent
Oct 9 '06 #3

Laurent Bugnion wrote:
Hi,

Otto Lang wrote:
ef*****@epitome.com.sg <ef*****@epitome.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 processBackground(){ for (n=1;n<11;n++)
{
cellrow="r"+n
for (i=1;i<17;i++){
cell=cellrow+"w"+i
cellName=cell+"_ID"
thisForm=document.forms[0]
if (document.all[cell].value==="X"){
document.all[cellName].style.backgroundColor='#84DFC1'
}
}
}
}
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.getElementById 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.

Oct 9 '06 #4

ef*****@epitome.com.sg wrote:
Laurent Bugnion wrote:
Hi,

Otto Lang wrote:
ef*****@epitome.com.sg <ef*****@epitome.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 processBackground(){ for (n=1;n<11;n++)
>{
>cellrow="r"+n
>for (i=1;i<17;i++){
>cell=cellrow+"w"+i
>cellName=cell+"_ID"
>thisForm=document.forms[0]
>if (document.all[cell].value==="X"){
>document.all[cellName].style.backgroundColor='#84DFC1'
>}
>}
>}
>}
>
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.getElementById 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.getElementbyId(cellName).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

Oct 9 '06 #5
Hi,

ef*****@epitome.com.sg wrote:
Lauran

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

document.getElementbyId(cellName).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
Oct 9 '06 #6

Laurent Bugnion wrote:
Hi,

ef*****@epitome.com.sg wrote:
Lauran

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

document.getElementbyId(cellName).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(cellName){
if (document.forms[0].IsEditDoc.value=="Yes"){
cellID=cellName+"_ID";
cellName=cellName+"ID"
document.getElementById(cellID).style.backgroundCo lor='#84DFC1'
document.getElementById(cellName).value="X"}
else
{alert("Please click on the Edit button")}
}
function unsetBackground(cellName){
if (document.forms[0].IsEditDoc.value=="Yes"){
cellID=cellName+"_ID";
cellNumber=cellName.split("w")
cellName=cellName+"ID"
flag=cellNumber[1]%2
if (flag==1){
document.getElementById(cellID).style.backgroundCo lor='#F6FBf3'
}
else
{
document.getElementById(cellID).style.backgroundCo lor='transparent'
}
document.getElementById(cellName).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"><td width="350" width="107" bgcolor="#F0E8F0"
colspan="2"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td width="100%" width="853" bgcolor="#F0E8F0"
colspan="16"><div align="center">Week</div></td></tr>

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

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" style=" "
width="100px" width="53" bgcolor="#FFFFD0">
<input name="Task1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r1w1_ID" class="workplan td"
onClick=setBackground("r1w1") unsetBackground("r1w1")
onFocus=changeStyle("r1w1") onBlur=unchangeStyle("r1w1")
onDblClick=unsetBackground("r1w1") width="53" bgcolor="#F6FBF3"><img
src="/icons/ecblank.gif" border="0" height="1" width="1"
alt=""></td><td id="r1w2_ID" class="workplan td"
onClick=setBackground("r1w2") onDblClick=unsetBackground("r1w2")
onFocus=changeStyle("r1w2") onBlur=unchangeStyle("r1w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w3_ID" class="workplan td"
onClick=setBackground("r1w3") onDblClick=unsetBackground("r1w3")
onFocus=changeStyle("r1w3") onBlur=unchangeStyle("r1w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w4_ID" class="workplan td"
onClick=setBackground("r1w4") onDblClick=unsetBackground("r1w4")
onFocus=changeStyle("r1w4") onBlur=unchangeStyle("r1w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w5_ID" class="workplan td"
onClick=setBackground("r1w5") onDblClick=unsetBackground("r1w5")
onFocus=changeStyle("r1w5") onBlur=unchangeStyle("r1w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w6_ID" class="workplan td"
onClick=setBackground("r1w6") onDblClick=unsetBackground("r1w6")
onFocus=changeStyle("r1w6") onBlur=unchangeStyle("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=setBackground("r1w7") onDblClick=unsetBackground("r1w7")
onFocus=changeStyle("r1w7") onBlur=unchangeStyle("r1w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w8_ID" class="workplan td"
onClick=setBackground("r1w8") onDblClick=unsetBackground("r1w8")
onFocus=changeStyle("r1w8") onBlur=unchangeStyle("r1w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w9_ID" class="workplan td"
onClick=setBackground("r1w9") onDblClick=unsetBackground("r1w9")
onFocus=changeStyle("r1w9") onBlur=unchangeStyle("r1w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w10_ID" class="workplan td"
onClick=setBackground("r1w10") onDblClick=unsetBackground("r1w10")
onFocus=changeStyle("r1w10") onBlur=unchangeStyle("r1w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w11_ID" class="workplan td"
onClick=setBackground("r1w11") onDblClick=unsetBackground("r1w11")
onFocus=changeStyle("r1w11") onBlur=unchangeStyle("r1w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w12_ID" class="workplan td"
onClick=setBackground("r1w12") onDblClick=unsetBackground("r1w12")
onFocus=changeStyle("r1w12") onBlur=unchangeStyle("r1w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w13_ID" class="workplan td"
onClick=setBackground("r1w13") onDblClick=unsetBackground("r1w13")
onFocus=changeStyle("r1w13") onBlur=unchangeStyle("r1w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w14_ID" class="workplan td"
onClick=setBackground("r1w14") onDblClick=unsetBackground("r1w14")
onFocus=changeStyle("r1w14") onBlur=unchangeStyle("r1w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w15_ID" class="workplan td"
onClick=setBackground("r1w15") onDblClick=unsetBackground("r1w15")
onFocus=changeStyle("r1w15") onBlur=unchangeStyle("r1w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r1w16_ID" class="workplan td"
onClick=setBackground("r1w16") onDblClick=unsetBackground("r1w16")
onFocus=changeStyle("r1w16") onBlur=unchangeStyle("r1w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<input name="Person1_1" value="" style=" border-width : 0px;
background-color: transparent;" size="20"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<input name="Task1_1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r2w1_ID" class="workplan td"
onClick=setBackground("r2w1") onDblClick=unsetBackground("r2w1")
onFocus=changeStyle("r2w1") onBlur=unchangeStyle("r2w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w2_ID" class="workplan td"
onClick=setBackground("r2w2") onDblClick=unsetBackground("r2w2")
onFocus=changeStyle("r2w2") onBlur=unchangeStyle("r2w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w3_ID" class="workplan td"
onClick=setBackground("r2w3") onDblClick=unsetBackground("r2w3")
onFocus=changeStyle("r2w3") onBlur=unchangeStyle("r2w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w4_ID" class="workplan td"
onClick=setBackground("r2w4") onDblClick=unsetBackground("r2w4")
onFocus=changeStyle("r2w4") onBlur=unchangeStyle("r2w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w5_ID" class="workplan td"
onClick=setBackground("r2w5") onDblClick=unsetBackground("r2w5")
onFocus=changeStyle("r2w5") onBlur=unchangeStyle("r2w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w6_ID" class="workplan td"
onClick=setBackground("r2w6") onDblClick=unsetBackground("r2w6")
onFocus=changeStyle("r2w6") onBlur=unchangeStyle("r2w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w7_ID" class="workplan td"
onClick=setBackground("r2w7") onDblClick=unsetBackground("r2w7")
onFocus=changeStyle("r2w7") onBlur=unchangeStyle("r2w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w8_ID" class="workplan td"
onClick=setBackground("r2w8") onDblClick=unsetBackground("r2w8")
onFocus=changeStyle("r2w8") onBlur=unchangeStyle("r2w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w9_ID" class="workplan td"
onClick=setBackground("r2w9") onDblClick=unsetBackground("r2w9")
onFocus=changeStyle("r2w9") onBlur=unchangeStyle("r2w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w10_ID" class="workplan td"
onClick=setBackground("r2w10") onDblClick=unsetBackground("r2w10")
onFocus=changeStyle("r2w10") onBlur=unchangeStyle("r2w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w11_ID" class="workplan td"
onClick=setBackground("r2w11") onDblClick=unsetBackground("r2w11")
onFocus=changeStyle("r2w11") onBlur=unchangeStyle("r2w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w12_ID" class="workplan td"
onClick=setBackground("r2w12") onDblClick=unsetBackground("r2w12")
onFocus=changeStyle("r2w12") onBlur=unchangeStyle("r2w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w13_ID" class="workplan td"
onClick=setBackground("r2w13") onDblClick=unsetBackground("r2w13")
onFocus=changeStyle("r2w13") onBlur=unchangeStyle("r2w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w14_ID" class="workplan td"
onClick=setBackground("r2w14") onDblClick=unsetBackground("r2w14")
onFocus=changeStyle("r2w14") onBlur=unchangeStyle("r2w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w15_ID" class="workplan td"
onClick=setBackground("r2w15") onDblClick=unsetBackground("r2w15")
onFocus=changeStyle("r2w15") onBlur=unchangeStyle("r2w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r2w16_ID" class="workplan td"
onClick=setBackground("r2w16") onDblClick=unsetBackground("r2w16")
onFocus=changeStyle("r2w16") onBlur=unchangeStyle("r2w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<input name="Person1_1_1" value="" style=" border-width : 0px;
background-color: transparent;" size="20"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<input name="Task1_1_1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r3w1_ID" class="workplan td"
onClick=setBackground("r3w1") onDblClick=unsetBackground("r3w1")
onFocus=changeStyle("r3w1") onBlur=unchangeStyle("r3w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w2_ID" class="workplan td"
onClick=setBackground("r3w2") onDblClick=unsetBackground("r3w2")
onFocus=changeStyle("r3w2") onBlur=unchangeStyle("r3w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w3_ID" class="workplan td"
onClick=setBackground("r3w3") onDblClick=unsetBackground("r3w3")
onFocus=changeStyle("r3w3") onBlur=unchangeStyle("r3w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w4_ID" class="workplan td"
onClick=setBackground("r3w4") onDblClick=unsetBackground("r3w4")
onFocus=changeStyle("r3w4") onBlur=unchangeStyle("r3w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w5_ID" class="workplan td"
onClick=setBackground("r3w5") onDblClick=unsetBackground("r3w5")
onFocus=changeStyle("r3w5") onBlur=unchangeStyle("r3w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w6_ID" class="workplan td"
onClick=setBackground("r3w6") onDblClick=unsetBackground("r3w6")
onFocus=changeStyle("r3w6") onBlur=unchangeStyle("r3w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w7_ID" class="workplan td"
onClick=setBackground("r3w7") onDblClick=unsetBackground("r3w7")
onFocus=changeStyle("r3w7") onBlur=unchangeStyle("r3w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w8_ID" class="workplan td"
onClick=setBackground("r3w8") onDblClick=unsetBackground("r3w8")
onFocus=changeStyle("r3w8") onBlur=unchangeStyle("r3w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w9_ID" class="workplan td"
onClick=setBackground("r3w9") onDblClick=unsetBackground("r3w9")
onFocus=changeStyle("r3w9") onBlur=unchangeStyle("r3w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w10_ID" class="workplan td"
onClick=setBackground("r3w10") onDblClick=unsetBackground("r3w10")
onFocus=changeStyle("r3w10") onBlur=unchangeStyle("r3w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w11_ID" class="workplan td"
onClick=setBackground("r3w11") onDblClick=unsetBackground("r3w11")
onFocus=changeStyle("r3w11") onBlur=unchangeStyle("r3w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w12_ID" class="workplan td"
onClick=setBackground("r3w12") onDblClick=unsetBackground("r3w12")
onFocus=changeStyle("r3w12") onBlur=unchangeStyle("r3w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w13_ID" class="workplan td"
onClick=setBackground("r3w13") onDblClick=unsetBackground("r3w13")
onFocus=changeStyle("r3w13") onBlur=unchangeStyle("r3w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w14_ID" class="workplan td"
onClick=setBackground("r3w14") onDblClick=unsetBackground("r3w14")
onFocus=changeStyle("r3w14") onBlur=unchangeStyle("r3w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w15_ID" class="workplan td"
onClick=setBackground("r3w15") onDblClick=unsetBackground("r3w15")
onFocus=changeStyle("r3w15") onBlur=unchangeStyle("r3w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r3w16_ID" class="workplan td"
onClick=setBackground("r3w16") onDblClick=unsetBackground("r3w16")
onFocus=changeStyle("r3w16") onBlur=unchangeStyle("r3w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<input name="Person1_1_1_1" value="" style=" border-width : 0px;
background-color: transparent;" size="20"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<input name="Task1_1_1_1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r4w1_ID" class="workplan td"
onClick=setBackground("r4w1") onDblClick=unsetBackground("r4w1")
onFocus=changeStyle("r4w1") onBlur=unchangeStyle("r4w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w2_ID" class="workplan td"
onClick=setBackground("r4w2") onDblClick=unsetBackground("r4w2")
onFocus=changeStyle("r4w2") onBlur=unchangeStyle("r4w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w3_ID" class="workplan td"
onClick=setBackground("r4w3") onDblClick=unsetBackground("r4w3")
onFocus=changeStyle("r4w3") onBlur=unchangeStyle("r4w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w4_ID" class="workplan td"
onClick=setBackground("r4w4") onDblClick=unsetBackground("r4w4")
onFocus=changeStyle("r4w4") onBlur=unchangeStyle("r4w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w5_ID" class="workplan td"
onClick=setBackground("r4w5") onDblClick=unsetBackground("r4w5")
onFocus=changeStyle("r4w5") onBlur=unchangeStyle("r4w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w6_ID" class="workplan td"
onClick=setBackground("r4w6") onDblClick=unsetBackground("r4w6")
onFocus=changeStyle("r4w6") onBlur=unchangeStyle("r4w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w7_ID" class="workplan td"
onClick=setBackground("r4w7") onDblClick=unsetBackground("r4w7")
onFocus=changeStyle("r4w7") onBlur=unchangeStyle("r4w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w8_ID" class="workplan td"
onClick=setBackground("r4w8") onDblClick=unsetBackground("r4w8")
onFocus=changeStyle("r4w8") onBlur=unchangeStyle("r4w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w9_ID" class="workplan td"
onClick=setBackground("r4w9") onDblClick=unsetBackground("r4w9")
onFocus=changeStyle("r4w9") onBlur=unchangeStyle("r4w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w10_ID" class="workplan td"
onClick=setBackground("r4w10") onDblClick=unsetBackground("r4w10")
onFocus=changeStyle("r4w10") onBlur=unchangeStyle("r4w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w11_ID" class="workplan td"
onClick=setBackground("r4w11") onDblClick=unsetBackground("r4w11")
onFocus=changeStyle("r4w11") onBlur=unchangeStyle("r4w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w12_ID" class="workplan td"
onClick=setBackground("r4w12") onDblClick=unsetBackground("r4w12")
onFocus=changeStyle("r4w12") onBlur=unchangeStyle("r4w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w13_ID" class="workplan td"
onClick=setBackground("r4w13") onDblClick=unsetBackground("r4w13")
onFocus=changeStyle("r4w13") onBlur=unchangeStyle("r4w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w14_ID" class="workplan td"
onClick=setBackground("r4w14") onDblClick=unsetBackground("r4w14")
onFocus=changeStyle("r4w14") onBlur=unchangeStyle("r4w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w15_ID" class="workplan td"
onClick=setBackground("r4w15") onDblClick=unsetBackground("r4w15")
onFocus=changeStyle("r4w15") onBlur=unchangeStyle("r4w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r4w16_ID" class="workplan td"
onClick=setBackground("r4w16") onDblClick=unsetBackground("r4w16")
onFocus=changeStyle("r4w16") onBlur=unchangeStyle("r4w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<input name="Task1_1_1_1_1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r5w1_ID" class="workplan td"
onClick=setBackground("r5w1") onDblClick=unsetBackground("r5w1")
onFocus=changeStyle("r5w1") onBlur=unchangeStyle("r5w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w2_ID" class="workplan td"
onClick=setBackground("r5w2") onDblClick=unsetBackground("r5w2")
onFocus=changeStyle("r5w2") onBlur=unchangeStyle("r5w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w3_ID" class="workplan td"
onClick=setBackground("r5w3") onDblClick=unsetBackground("r5w3")
onFocus=changeStyle("r5w3") onBlur=unchangeStyle("r5w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w4_ID" class="workplan td"
onClick=setBackground("r5w4") onDblClick=unsetBackground("r5w4")
onFocus=changeStyle("r5w4") onBlur=unchangeStyle("r5w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w5_ID" class="workplan td"
onClick=setBackground("r5w5") onDblClick=unsetBackground("r5w5")
onFocus=changeStyle("r5w5") onBlur=unchangeStyle("r5w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w6_ID" class="workplan td"
onClick=setBackground("r5w6") onDblClick=unsetBackground("r5w6")
onFocus=changeStyle("r5w6") onBlur=unchangeStyle("r5w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w7_ID" class="workplan td"
onClick=setBackground("r5w7") onDblClick=unsetBackground("r5w7")
onFocus=changeStyle("r5w7") onBlur=unchangeStyle("r5w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w8_ID" class="workplan td"
onClick=setBackground("r5w8") onDblClick=unsetBackground("r5w8")
onFocus=changeStyle("r5w8") onBlur=unchangeStyle("r5w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w9_ID" class="workplan td"
onClick=setBackground("r5w9") onDblClick=unsetBackground("r5w9")
onFocus=changeStyle("r5w9") onBlur=unchangeStyle("r5w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w10_ID" class="workplan td"
onClick=setBackground("r5w10") onDblClick=unsetBackground("r5w10")
onFocus=changeStyle("r5w10") onBlur=unchangeStyle("r5w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w11_ID" class="workplan td"
onClick=setBackground("r5w11") onDblClick=unsetBackground("r5w11")
onFocus=changeStyle("r5w11") onBlur=unchangeStyle("r5w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w12_ID" class="workplan td"
onClick=setBackground("r5w12") onDblClick=unsetBackground("r5w12")
onFocus=changeStyle("r5w12") onBlur=unchangeStyle("r5w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w13_ID" class="workplan td"
onClick=setBackground("r5w13") onDblClick=unsetBackground("r5w13")
onFocus=changeStyle("r5w13") onBlur=unchangeStyle("r5w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w14_ID" class="workplan td"
onClick=setBackground("r5w14") onDblClick=unsetBackground("r5w14")
onFocus=changeStyle("r5w14") onBlur=unchangeStyle("r5w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w15_ID" class="workplan td"
onClick=setBackground("r5w15") onDblClick=unsetBackground("r5w15")
onFocus=changeStyle("r5w15") onBlur=unchangeStyle("r5w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r5w16_ID" class="workplan td"
onClick=setBackground("r5w16") onDblClick=unsetBackground("r5w16")
onFocus=changeStyle("r5w16") onBlur=unchangeStyle("r5w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<input name="Task1_1_1_1_1_1" value="" style=" border-width : 0px;
background-color: transparent;"><img
src="/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource"
width="1" height="1" alt=""></td><td id="r6w1_ID" class="workplan td"
onClick=setBackground("r6w1") onDblClick=unsetBackground("r6w1")
onFocus=changeStyle("r6w1") onBlur=unchangeStyle("r6w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w2_ID" class="workplan td"
onClick=setBackground("r6w2") onDblClick=unsetBackground("r6w2")
onFocus=changeStyle("r6w2") onBlur=unchangeStyle("r6w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w3_ID" class="workplan td"
onClick=setBackground("r6w3") onDblClick=unsetBackground("r6w3")
onFocus=changeStyle("r6w3") onBlur=unchangeStyle("r6w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w4_ID" class="workplan td"
onClick=setBackground("r6w4") onDblClick=unsetBackground("r6w4")
onFocus=changeStyle("r6w4") onBlur=unchangeStyle("r6w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w5_ID" class="workplan td"
onClick=setBackground("r6w5") onDblClick=unsetBackground("r6w5")
onFocus=changeStyle("r6w5") onBlur=unchangeStyle("r6w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w6_ID" class="workplan td"
onClick=setBackground("r6w6") onDblClick=unsetBackground("r6w6")
onFocus=changeStyle("r6w6") onBlur=unchangeStyle("r6w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w7_ID" class="workplan td"
onClick=setBackground("r6w7") onDblClick=unsetBackground("r6w7")
onFocus=changeStyle("r6w7") onBlur=unchangeStyle("r6w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w8_ID" class="workplan td"
onClick=setBackground("r6w8") onDblClick=unsetBackground("r6w8")
onFocus=changeStyle("r6w8") onBlur=unchangeStyle("r6w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w9_ID" class="workplan td"
onClick=setBackground("r6w9") onDblClick=unsetBackground("r6w9")
onFocus=changeStyle("r6w9") onBlur=unchangeStyle("r6w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w10_ID" class="workplan td"
onClick=setBackground("r6w10") onDblClick=unsetBackground("r6w10")
onFocus=changeStyle("r6w10") onBlur=unchangeStyle("r6w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w11_ID" class="workplan td"
onClick=setBackground("r6w11") onDblClick=unsetBackground("r6w11")
onFocus=changeStyle("r6w11") onBlur=unchangeStyle("r6w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w12_ID" class="workplan td"
onClick=setBackground("r6w12") onDblClick=unsetBackground("r6w12")
onFocus=changeStyle("r6w12") onBlur=unchangeStyle("r6w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w13_ID" class="workplan td"
onClick=setBackground("r6w13") onDblClick=unsetBackground("r6w13")
onFocus=changeStyle("r6w13") onBlur=unchangeStyle("r6w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w14_ID" class="workplan td"
onClick=setBackground("r6w14") onDblClick=unsetBackground("r6w14")
onFocus=changeStyle("r6w14") onBlur=unchangeStyle("r6w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w15_ID" class="workplan td"
onClick=setBackground("r6w15") onDblClick=unsetBackground("r6w15")
onFocus=changeStyle("r6w15") onBlur=unchangeStyle("r6w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r6w16_ID" class="workplan td"
onClick=setBackground("r6w16") onDblClick=unsetBackground("r6w16")
onFocus=changeStyle("r6w16") onBlur=unchangeStyle("r6w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td id="r7w1_ID" class="workplan td"
onClick=setBackground("r7w1") onDblClick=unsetBackground("r7w1")
onFocus=changeStyle("r7w1") onBlur=unchangeStyle("r7w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w2_ID" class="workplan td"
onClick=setBackground("r7w2") onDblClick=unsetBackground("r7w2")
onFocus=changeStyle("r7w2") onBlur=unchangeStyle("r7w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w3_ID" class="workplan td"
onClick=setBackground("r7w3") onDblClick=unsetBackground("r7w3")
onFocus=changeStyle("r7w3") onBlur=unchangeStyle("r7w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w4_ID" class="workplan td"
onClick=setBackground("r7w4") onDblClick=unsetBackground("r7w4")
onFocus=changeStyle("r7w4") onBlur=unchangeStyle("r7w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w5_ID" class="workplan td"
onClick=setBackground("r7w5") onDblClick=unsetBackground("r7w5")
onFocus=changeStyle("r7w5") onBlur=unchangeStyle("r7w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w6_ID" class="workplan td"
onClick=setBackground("r7w6") onDblClick=unsetBackground("r7w6")
onFocus=changeStyle("r7w6") onBlur=unchangeStyle("r7w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w7_ID" class="workplan td"
onClick=setBackground("r7w7") onDblClick=unsetBackground("r7w7")
onFocus=changeStyle("r7w7") onBlur=unchangeStyle("r7w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w8_ID" class="workplan td"
onClick=setBackground("r7w8") onDblClick=unsetBackground("r7w8")
onFocus=changeStyle("r7w8") onBlur=unchangeStyle("r7w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w9_ID" class="workplan td"
onClick=setBackground("r7w9") onDblClick=unsetBackground("r7w9")
onFocus=changeStyle("r7w9") onBlur=unchangeStyle("r7w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w10_ID" class="workplan td"
onClick=setBackground("r7w10") onDblClick=unsetBackground("r7w10")
onFocus=changeStyle("r7w10") onBlur=unchangeStyle("r7w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w11_ID" class="workplan td"
onClick=setBackground("r7w11") onDblClick=unsetBackground("r7w11")
onFocus=changeStyle("r7w11") onBlur=unchangeStyle("r7w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w12_ID" class="workplan td"
onClick=setBackground("r7w12") onDblClick=unsetBackground("r7w12")
onFocus=changeStyle("r7w12") onBlur=unchangeStyle("r7w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w13_ID" class="workplan td"
onClick=setBackground("r7w13") onDblClick=unsetBackground("r7w13")
onFocus=changeStyle("r7w13") onBlur=unchangeStyle("r7w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w14_ID" class="workplan td"
onClick=setBackground("r7w14") onDblClick=unsetBackground("r7w14")
onFocus=changeStyle("r7w14") onBlur=unchangeStyle("r7w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w15_ID" class="workplan td"
onClick=setBackground("r7w15") onDblClick=unsetBackground("r7w15")
onFocus=changeStyle("r7w15") onBlur=unchangeStyle("r7w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r7w16_ID" class="workplan td"
onClick=setBackground("r7w16") onDblClick=unsetBackground("r7w16")
onFocus=changeStyle("r7w16") onBlur=unchangeStyle("r7w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td id="r8w1_ID" class="workplan td"
onClick=setBackground("r8w1") onDblClick=unsetBackground("r8w1")
onFocus=changeStyle("r8w1") onBlur=unchangeStyle("r8w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w2_ID" class="workplan td"
onClick=setBackground("r8w2") onDblClick=unsetBackground("r8w2")
onFocus=changeStyle("r8w2") onBlur=unchangeStyle("r8w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w3_ID" class="workplan td"
onClick=setBackground("r8w3") onDblClick=unsetBackground("r8w3")
onFocus=changeStyle("r8w3") onBlur=unchangeStyle("r8w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w4_ID" class="workplan td"
onClick=setBackground("r8w4") onDblClick=unsetBackground("r8w4")
onFocus=changeStyle("r8w4") onBlur=unchangeStyle("r8w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w5_ID" class="workplan td"
onClick=setBackground("r8w5") onDblClick=unsetBackground("r8w5")
onFocus=changeStyle("r8w5") onBlur=unchangeStyle("r8w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w6_ID" class="workplan td"
onClick=setBackground("r8w6") onDblClick=unsetBackground("r8w6")
onFocus=changeStyle("r8w6") onBlur=unchangeStyle("r8w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w7_ID" class="workplan td"
onClick=setBackground("r8w7") onDblClick=unsetBackground("r8w7")
onFocus=changeStyle("r8w7") onBlur=unchangeStyle("r8w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w8_ID" class="workplan td"
onClick=setBackground("r8w8") onDblClick=unsetBackground("r8w8")
onFocus=changeStyle("r8w8") onBlur=unchangeStyle("r8w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w9_ID" class="workplan td"
onClick=setBackground("r8w9") onDblClick=unsetBackground("r8w9")
onFocus=changeStyle("r8w9") onBlur=unchangeStyle("r8w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w10_ID" class="workplan td"
onClick=setBackground("r8w10") onDblClick=unsetBackground("r8w10")
onFocus=changeStyle("r8w10") onBlur=unchangeStyle("r8w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w11_ID" class="workplan td"
onClick=setBackground("r8w11") onDblClick=unsetBackground("r8w11")
onFocus=changeStyle("r8w11") onBlur=unchangeStyle("r8w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w12_ID" class="workplan td"
onClick=setBackground("r8w12") onDblClick=unsetBackground("r8w12")
onFocus=changeStyle("r8w12") onBlur=unchangeStyle("r8w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w13_ID" class="workplan td"
onClick=setBackground("r8w13") onDblClick=unsetBackground("r8w13")
onFocus=changeStyle("r8w13") onBlur=unchangeStyle("r8w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w14_ID" class="workplan td"
onClick=setBackground("r8w14") onDblClick=unsetBackground("r8w14")
onFocus=changeStyle("r8w14") onBlur=unchangeStyle("r8w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w15_ID" class="workplan td"
onClick=setBackground("r8w15") onDblClick=unsetBackground("r8w15")
onFocus=changeStyle("r8w15") onBlur=unchangeStyle("r8w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r8w16_ID" class="workplan td"
onClick=setBackground("r8w16") onDblClick=unsetBackground("r8w16")
onFocus=changeStyle("r8w16") onBlur=unchangeStyle("r8w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">

<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td id="r9w1_ID" class="workplan td"
onClick=setBackground("r9w1") onDblClick=unsetBackground("r9w1")
onFocus=changeStyle("r9w1") onBlur=unchangeStyle("r9w1") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w2_ID" class="workplan td"
onClick=setBackground("r9w2") onDblClick=unsetBackground("r9w2")
onFocus=changeStyle("r9w2") onBlur=unchangeStyle("r9w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w3_ID" class="workplan td"
onClick=setBackground("r9w3") onDblClick=unsetBackground("r9w3")
onFocus=changeStyle("r9w3") onBlur=unchangeStyle("r9w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w4_ID" class="workplan td"
onClick=setBackground("r9w4") onDblClick=unsetBackground("r9w4")
onFocus=changeStyle("r9w4") onBlur=unchangeStyle("r9w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w5_ID" class="workplan td"
onClick=setBackground("r9w5") onDblClick=unsetBackground("r9w5")
onFocus=changeStyle("r9w5") onBlur=unchangeStyle("r9w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w6_ID" class="workplan td"
onClick=setBackground("r9w6") onDblClick=unsetBackground("r9w6")
onFocus=changeStyle("r9w6") onBlur=unchangeStyle("r9w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w7_ID" class="workplan td"
onClick=setBackground("r9w7") onDblClick=unsetBackground("r9w7")
onFocus=changeStyle("r9w7") onBlur=unchangeStyle("r9w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w8_ID" class="workplan td"
onClick=setBackground("r9w8") onDblClick=unsetBackground("r9w8")
onFocus=changeStyle("r9w8") onBlur=unchangeStyle("r9w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w9_ID" class="workplan td"
onClick=setBackground("r9w9") onDblClick=unsetBackground("r9w9")
onFocus=changeStyle("r9w9") onBlur=unchangeStyle("r9w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w10_ID" class="workplan td"
onClick=setBackground("r9w10") onDblClick=unsetBackground("r9w10")
onFocus=changeStyle("r9w10") onBlur=unchangeStyle("r9w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w11_ID" class="workplan td"
onClick=setBackground("r9w11") onDblClick=unsetBackground("r9w11")
onFocus=changeStyle("r9w11") onBlur=unchangeStyle("r9w11") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w12_ID" class="workplan td"
onClick=setBackground("r9w12") onDblClick=unsetBackground("r9w12")
onFocus=changeStyle("r9w12") onBlur=unchangeStyle("r9w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w13_ID" class="workplan td"
onClick=setBackground("r9w13") onDblClick=unsetBackground("r9w13")
onFocus=changeStyle("r9w13") onBlur=unchangeStyle("r9w13") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w14_ID" class="workplan td"
onClick=setBackground("r9w14") onDblClick=unsetBackground("r9w14")
onFocus=changeStyle("r9w14") onBlur=unchangeStyle("r9w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w15_ID" class="workplan td"
onClick=setBackground("r9w15") onDblClick=unsetBackground("r9w15")
onFocus=changeStyle("r9w15") onBlur=unchangeStyle("r9w15") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r9w16_ID" class="workplan td"
onClick=setBackground("r9w16") onDblClick=unsetBackground("r9w16")
onFocus=changeStyle("r9w16") onBlur=unchangeStyle("r9w16")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td></tr>

<tr valign="top"><td class="workplan td" width="53" bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td class="workplan td" width="53"
bgcolor="#FFFFD0">
<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?OpenImageResource"
width="1" height="1" alt=""></td><td id="r10w1_ID" class="workplan td"
onClick=setBackground("r10w1") onDblClick=unsetBackground("r10w1")
onFocus=changeStyle("r10w1") onBlur=unchangeStyle("r10w1")
style="background-image:url(/dev/iels/ielsmain.nsf/transparent.gif?OpenImageResource);
background-repeat: repeat; " width="53" bgcolor="#F6FBF3"><img
src="/icons/ecblank.gif" border="0" height="1" width="1"
alt=""></td><td id="r10w2_ID" class="workplan td"
onClick=setBackground("r10w2") onDblClick=unsetBackground("r10w2")
onFocus=changeStyle("r10w2") onBlur=unchangeStyle("r10w2")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w3_ID" class="workplan td"
onClick=setBackground("r10w3") onDblClick=unsetBackground("r10w3")
onFocus=changeStyle("r10w3") onBlur=unchangeStyle("r10w3") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w4_ID" class="workplan td"
onClick=setBackground("r10w4") onDblClick=unsetBackground("r10w4")
onFocus=changeStyle("r10w4") onBlur=unchangeStyle("r10w4")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w5_ID" class="workplan td"
onClick=setBackground("r10w5") onDblClick=unsetBackground("r10w5")
onFocus=changeStyle("r10w5") onBlur=unchangeStyle("r10w5") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w6_ID" class="workplan td"
onClick=setBackground("r10w6") onDblClick=unsetBackground("r10w6")
onFocus=changeStyle("r10w6") onBlur=unchangeStyle("r10w6")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w7_ID" class="workplan td"
onClick=setBackground("r10w7") onDblClick=unsetBackground("r10w7")
onFocus=changeStyle("r10w7") onBlur=unchangeStyle("r10w7") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w8_ID" class="workplan td"
onClick=setBackground("r10w8") onDblClick=unsetBackground("r10w8")
onFocus=changeStyle("r10w8") onBlur=unchangeStyle("r10w8")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w9_ID" class="workplan td"
onClick=setBackground("r10w9") onDblClick=unsetBackground("r10w9")
onFocus=changeStyle("r10w9") onBlur=unchangeStyle("r10w9") width="53"
bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w10_ID" class="workplan td"
onClick=setBackground("r10w10") onDblClick=unsetBackground("r10w10")
onFocus=changeStyle("r10w10") onBlur=unchangeStyle("r10w10")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w11_ID" class="workplan td"
onClick=setBackground("r10w11") onDblClick=unsetBackground("r10w11")
onFocus=changeStyle("r10w11") onBlur=unchangeStyle("r10w11")
width="53" bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0"
height="1" width="1" alt=""></td><td id="r10w12_ID" class="workplan td"
onClick=setBackground("r10w12") onDblClick=unsetBackground("r10w12")
onFocus=changeStyle("r10w12") onBlur=unchangeStyle("r10w12")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w13_ID" class="workplan td"
onClick=setBackground("r10w13") onDblClick=unsetBackground("r10w13")
onFocus=changeStyle("r10w13") onBlur=unchangeStyle("r10w13")
width="53" bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0"
height="1" width="1" alt=""></td><td id="r10w14_ID" class="workplan td"
onClick=setBackground("r10w14") onDblClick=unsetBackground("r10w14")
onFocus=changeStyle("r10w14") onBlur=unchangeStyle("r10w14")
width="53"><img src="/icons/ecblank.gif" border="0" height="1"
width="1" alt=""></td><td id="r10w15_ID" class="workplan td"
onClick=setBackground("r10w15") onDblClick=unsetBackground("r10w15")
onFocus=changeStyle("r10w15") onBlur=unchangeStyle("r10w15")
width="53" bgcolor="#F6FBF3"><img src="/icons/ecblank.gif" border="0"
height="1" width="1" alt=""></td><td id="r10w16_ID" class="workplan td"
onClick=setBackground("r10w16") onDblClick=unsetBackground("r10w16")
onFocus=changeStyle("r10w16") onBlur=unchangeStyle("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"><td width="100%"><div align="center"><img
src="/dev/iels/ielsconfig.nsf/lookups/imagesform/$file/but_savedraft.gif"
border="0" onClick="saveDraft()"></a><img
src="/dev/iels/ielsconfig.nsf/lookups/imagesform/$file/but_submit.gif"
border="0" onClick="submitDoc()"></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.

Oct 9 '06 #7
Laurent Bugnion <ga*********@bluewin.chwrote:
Hi,
Hi,
To make your reply even better, you could have suggested using
document.getElementById instead ;-)
that's right. I've forgotten the second part. I shouldn't work when
posting. Thx a lot :)
HTH,
Laurent
../otto
Oct 9 '06 #8
Hi,

ef*****@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(cellName){
if (document.forms[0].IsEditDoc.value=="Yes"){
cellID=cellName+"_ID";
cellName=cellName+"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.getElementById(cellID).style.backgroundCo lor='#84DFC1'
document.getElementById(cellName).value="X"}
Same remark. It would be better to do:

var nCell = document.getElementById( cellID );

if ( nCell ) // This makes sure that the cell was found
{
nCell.style.backgroundColor = "...";
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
Oct 9 '06 #9

Laurent Bugnion wrote:
Hi,

ef*****@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(cellName){
if (document.forms[0].IsEditDoc.value=="Yes"){
cellID=cellName+"_ID";
cellName=cellName+"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.getElementById(cellID).style.backgroundCo lor='#84DFC1'
document.getElementById(cellName).value="X"}

Same remark. It would be better to do:

var nCell = document.getElementById( cellID );

if ( nCell ) // This makes sure that the cell was found
{
nCell.style.backgroundColor = "...";
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

Oct 10 '06 #10

ef*****@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="showValue('hiddenInput');">Show
hidden value</button>
<button onclick="changeHiddenValue('hiddenInput');">Change
hidden value</button>

<script type="text/javascript">

function changeHiddenValue(id) {
document.getElementById(id).value = "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

Oct 10 '06 #11

RobG wrote:
ef*****@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="showValue('hiddenInput');">Show
hidden value</button>
<button onclick="changeHiddenValue('hiddenInput');">Change
hidden value</button>

<script type="text/javascript">

function changeHiddenValue(id) {
document.getElementById(id).value = "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.

Oct 10 '06 #12

ef*****@epitome.com.sg wrote:
RobG wrote:
ef*****@epitome.com.sg 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="showValue('hiddenInput');">Show
hidden value</button>
<button onclick="changeHiddenValue('hiddenInput');">Change
hidden value</button>

<script type="text/javascript">

function changeHiddenValue(id) {
document.getElementById(id).value = "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

Oct 10 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
425
by: Jan-Henrik Grobe | last post by:
Hallo, I am coming to this newsgroup with a very strange Problem. I have two c++ files A.cpp and B.cpp....In A.cpp I am creating an openGL window and in B.cpp I have stored the callback...
3
1641
by: kimi | last post by:
Hello, yes i try to learn c-programming.So i have a question on my code, but if i am wrong here please tell me a group where i belong to. I wrote a function which fgets a filename from the...
2
1957
by: petermichaux | last post by:
Hi, It seems like determining element position in a web page is a difficult task. In the position reporting source code I've looked at there are special fixes for at least some versions of...
2
2803
by: effendi | last post by:
Hi I tested the following function in Safari and it doesnt work. This is tested fine in IE. function processOutcome(){ mainDatabase=document.forms.AssessDatabase.value var...
16
2001
by: deepres | last post by:
Hi, I have the following problem. In my application I'm dynamically replacing some of web-page content. For example, I have something like that: <span id="ui_tr_22_1_treeJ_span" > <div...
2
1498
bilibytes
by: bilibytes | last post by:
Hi, i have been creating an ajax aplication on my website and it worked as i expected it to work on Safari and Firefox, until i upgraded to Firefox 3. It doesn't work either on windows. the...
2
1679
by: panos100m | last post by:
Hi on page load a javascript functions (timedCount()) is executed (timer) which executes another javascript function (ajax function:findprov(divtowrite) ) in turn this calls a php file to query a...
10
1790
by: Kenny | last post by:
Noob here. I have incorporated the jquery ui tab control in my web app. It works Ok but the page comes up un-tabbed and then flashes into the desired tab setup. The tabs capability gets in via:...
53
8314
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.