How to disable and change img.src in Netscape

Discussion in 'Javascript' started by Manjit, Jul 29, 2003.

  1. Manjit

    Manjit Guest

    Hi EveryOne,
    I know it is very common question and had been asked few times, but
    still after researching all the threads I couldn't solve my problem.
    So here it is out in open and I hope that I can sort it out with your
    help.

    I have a form with different inputs to fill up and some of the inputs
    got buttons next to them for search lookups. The problem I am facing
    is that when someone clicks on these lookup buttons and depending on
    there selection in new search window I have to fill up the info back
    in the form and disable the other lookup buttons. With the javascript
    code I am using it is working fine with IE but Netscape is not
    working.

    *******************
    //This code is referring to the window where I want to make the
    changes.
    //window.opener.document is reffering to parent window
    //LineItemForm is name of the form where the element is
    //INJobLookup is name of the <input type="image"> element

    window.opener.document.LineItemForm.INJobLookup.setAttribute("disabled",true);
    window.opener.document.LineItemForm.INJobLookup.src=
    "images/findDisabled.gif";
    ************************

    Thank you for your time in advance.
    Manjit.
    Manjit, Jul 29, 2003
    #1
    1. Advertising

  2. Manjit

    Manjit Guest

    I forgot to mention that it is working fine in IE but not working in Netscape.
    Manjit, Jul 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,063
    Laurent Bugnion
    Feb 9, 2006
  2. pheadxdll
    Replies:
    16
    Views:
    3,618
    Neredbojias
    Jun 6, 2007
  3. Soren Vejrum
    Replies:
    4
    Views:
    528
    Lasse Reichstein Nielsen
    Jul 5, 2003
  4. Harris Kosmidhs

    Change img src for captcha

    Harris Kosmidhs, Oct 23, 2007, in forum: Javascript
    Replies:
    1
    Views:
    89
    Harris Kosmidhs
    Oct 23, 2007
  5. Replies:
    8
    Views:
    127
    Dr J R Stockton
    Dec 16, 2007
Loading...

Share This Page