/    Sign up×
Community /Pin to ProfileBookmark

Ns4.08/4.77/4.79

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 [url]http://devedge.netscape.com/library…10.html#1312530[/url] . 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.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisJun 18.2003 — 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.
×

Success!

Help @mraghu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...