Script

M

Mike

Hi,

I was using the following script, but I received an error message saying "Object doesn't support this property or method":
window.opener.document.forms['WebForm4'].getElementById('trck1_CAL_LBL024').innerText='

I also tried value and text, instead of innerText, but always got the same error message. Any idea?

Thanks
Mike
 
M

Mike

I forgot to mention that the element was created dynamically using code behind as follows:

System.Web.UI.WebControls.Label lbl = new Label();
cell.Controls.Add(lbl);




Hi,

I was using the following script, but I received an error message saying "Object doesn't support this property or method":
window.opener.document.forms['WebForm4'].getElementById('trck1_CAL_LBL024').innerText='

I also tried value and text, instead of innerText, but always got the same error message. Any idea?

Thanks
Mike
 
B

bruce barker

form objects don't support getElementById, only the document object does, try:

window.opener.document.getElementById('trck1_CAL_LBL024').innerText=''
-- bruce (sqlwork.com)






Hi,

I was using the following script, but I received an error message saying "Object doesn't support this property or method":
window.opener.document.forms['WebForm4'].getElementById('trck1_CAL_LBL024').innerText='

I also tried value and text, instead of innerText, but always got the same error message. Any idea?

Thanks
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top