Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

document.object not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 15 Feb 2008 07:59 GMT
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
Manish - 15 Feb 2008 10:21 GMT
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

> I have some code from before that worked with:
>
[quoted text clipped - 20 lines]
>
> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.