/    Sign up×
Community /Pin to ProfileBookmark

External Javascript Linking

Okay, I’m trying to link a form submit button to an outside javascript function to validate the correct information(login and password form, to a hidden validation script) but it never seems to work. If anyone knows what I’m doing wrong, I’d appreciate any help I can get, including other ideas, but I’ve already tryied CGI and Perl, but the webhost does not have server-side capabilities.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyFeb 14.2006 — Are you including the JavaScript file in the head of the document,

<script type="text/javascript" src="link/to/file.js"></script>

I can't help much more without seeing the page
Copy linkTweet thisAlerts:
@Drew06authorFeb 14.2006 — Yeah I've got my link to javascript in the head section, but I added a validate function onclick the submit button, so maybe I have to link it then?
Copy linkTweet thisAlerts:
@bathurst_guyFeb 15.2006 — you should just call the function

<input type="submit" onClick="validate();">

or something similar
×

Success!

Help @Drew06 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.19,
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,
)...