How to disable and change img.src in Netscape

M

Manjit

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.
 

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
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top