|
-
Oct 2nd, 2005, 05:33 PM
#1
Thread Starter
Junior Member
problem using <img> tag in firefox.
Hi,
I am facing the following problem for a week.
It is a very difficult problem.
I have 5 image tag and a "Change Picture" button in my .ASP page.
When i click "Change Picture" button my application will go to the ASP.Net page. In that page i am using the following code
ASP page coding
----------------
<img name="img1" src ="C:\windows\1.gif">
ASP.Net page coding
----------------------
window.opener.document.forms[1].elements['img1'].src = "c:\Windows\a.gif"
This code is working in IE but not in Firefox and Netscape.
But i can access the textbox, select option, etc.,(other tags ) in ASP.Net page. Is there any other specific method to access the image tag in in .Net page. Plz help me.,
Thanks in advance.,
SK
-
Oct 3rd, 2005, 11:41 AM
#2
Addicted Member
Re: problem using <img> tag in firefox.
Try:
Code:
window.opener.document.getElementById['img1'].src = "c:\Windows\a.gif"
-
Oct 3rd, 2005, 03:36 PM
#3
Thread Starter
Junior Member
Re: problem using <img> tag in firefox.
window.opener.document.getElementById['img1'].src = "c:\sample.gif"
" getElementById['img1'].src " src is not its property .
So i cant access the image source in my parent window.
Can u give me someother solution.
Thanks in advance
-
Oct 3rd, 2005, 03:58 PM
#4
Re: problem using <img> tag in firefox.
Could the problem be that it's referencing the image on a local drive rather than a URL?
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|