document.object not working

T

tshad

I have some code from before that worked with:

document. PictureDisplay.src="c:\\uploads\\" +
opener.document.getElementById('CompanyPicture').innerHTML;

Now it doesn't.

If I take the "document" off, it works fine:

PictureDisplay.src="c:\\uploads\\" +
opener.document.getElementById('CompanyPicture').innerHTML;

PictureDisplay is an "<img>" tag on my aspx page:

<img src="" id="PictureDisplay" alt="" />

Why doesn't the document work now?

This is VS 2005. It worked fine under VS 2003. Not sure if that is the
problem.

Thanks,

Tom
 
M

Manish

Hi Tom,

I tried to access the HTML image control in both VS2003 and VS2005 like
document.PictureDisplay.src but this is not possible. the only way to access
it is by

document.getElementById("PictureDisplay").src

Regards,
Manish

www.ComponentOne.com
 

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,184
Messages
2,570,973
Members
47,527
Latest member
RoxanneTos

Latest Threads

Top