lakshman
05-01-2003, 03:22 AM
Hi
Please help me if you can. Thanks in advance.
I have jsp structure as follows
Form frmTab
Div id=p1panel1
table tblApplication
input txtFName
When I try
document.frmTab.p1panel1.tblApplication.txtFName.value="Lakshman";
I get an ERROR:document.frmTab.p1panel1.tblApplication is null or not an object.
when I try
document.frmTab.p1panel1.tblApplication.border=1; I get the same error.
when I try
document.frmTab.p1panel1.txtFName.value="Lakshman";
I get an ERROR:document.frmTab.p1panel1.txtFName is null or not an object.
Is it that these obejcts have not yet bean created ??
How do I set the border and txtFName ???
-------------------------------------------------------------------
document.frmTab.style.visibility = "hidden";
work fine. ie frmTab is an object.
-------------------------------------------------------------------
Interestingly enough when I try
document.frmTab.p1panel1.style.zIndex=5;
I get an ERROR : document.frmTab.p1panel1.style null or not an object
But when I do this :
p1panel1.style.zIndex=5;
works fine.
why ??? I thought p1panel1 is a child of frmTab but obviously not.
1. Where can I get a document explaining all this.
2. Details on how to use object attribute ie.
in HTML <div style="z-index:4">
but in JS style.zIndex=4
Thanks.
Please help me if you can. Thanks in advance.
I have jsp structure as follows
Form frmTab
Div id=p1panel1
table tblApplication
input txtFName
When I try
document.frmTab.p1panel1.tblApplication.txtFName.value="Lakshman";
I get an ERROR:document.frmTab.p1panel1.tblApplication is null or not an object.
when I try
document.frmTab.p1panel1.tblApplication.border=1; I get the same error.
when I try
document.frmTab.p1panel1.txtFName.value="Lakshman";
I get an ERROR:document.frmTab.p1panel1.txtFName is null or not an object.
Is it that these obejcts have not yet bean created ??
How do I set the border and txtFName ???
-------------------------------------------------------------------
document.frmTab.style.visibility = "hidden";
work fine. ie frmTab is an object.
-------------------------------------------------------------------
Interestingly enough when I try
document.frmTab.p1panel1.style.zIndex=5;
I get an ERROR : document.frmTab.p1panel1.style null or not an object
But when I do this :
p1panel1.style.zIndex=5;
works fine.
why ??? I thought p1panel1 is a child of frmTab but obviously not.
1. Where can I get a document explaining all this.
2. Details on how to use object attribute ie.
in HTML <div style="z-index:4">
but in JS style.zIndex=4
Thanks.