Results 1 to 4 of 4

Thread: problem using <img> tag in firefox.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2005
    Posts
    17

    Question 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

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: problem using <img> tag in firefox.

    Try:

    Code:
    window.opener.document.getElementById['img1'].src = "c:\Windows\a.gif"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2005
    Posts
    17

    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

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width