Click to See Complete Forum and Search --> : Ns4.08/4.77/4.79


mraghu
06-18-2003, 09:34 AM
This is a continuation of my previous thread...

I changed <input type="image"> to a <img src....> tag.
I executed the code below. But, it totally disables the next and Back gifs even before I click on any of the the imges in NS. But, it works fine in IE. Any ideas?

Gil Davis:

You must not have read khalid's post about getElementById() - that NS 4.x does not support it.

code:--------------------------------------------------------------------------------function DisableNext() {
if (!document.CHActiveation.NextBtn.disabled)
{document.CHActivation.action="<cfoutput>#VisaApp.FullURL##XFA.EnrollThanks#&RequestTimeOut=500</cfoutput>";
document.CHActivation.submit();
document.CHActivation.NextBtn.disabled = true;
document.CHActivation.NextBtn.src="<cfoutput>#VisaApp.Images#</cfoutput>btn_next_off.gif";
document.CHActivation.BackBtn.disabled = true;
document.CHActivation.BackBtn.src="<cfoutput>#VisaApp.Images#</cfoutput>btn_back_off.gif";
}
}--------------------------------------------------------------------------------
BTW, NS 4.x does not support onClick for an input type="image", anyway. See http://devedge.netscape.com/library...10.html#1312530 . In fact, the image button does not appear in the form's elements array. So, even my example will not work in NS 4.x. You'll have to change the <input type="image"> to a simple image link with an onclick that submits the form for you, if you want it to work in NS 4.x.

gil davis
06-18-2003, 12:42 PM
You probably should not have started a new thread. Did you lose your old one? http://forums.webdeveloper.com/showthread.php?s=&threadid=11138

I can't really test things since you have server side stuff in your code.