Script

  • Thread starter Thread starter Mike
  • Start date Start date
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
 
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
 
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
 
Back
Top