/    Sign up×
Community /Pin to ProfileBookmark

cant run new function after return

This is inside an input button

[B]onClick=”YY_checkform(‘frmDetails’,’Name’,’#q’,’0′,’You must provide a Name’,’Email’,’#S’,’2′,’You must provide an Email’);return document.MM_returnValue; insDetails();”[/B]

The problem I’m having is that after the validation is done, the insDetails function is not run. Nothing happens. However if the validation does not pass it returns the appropriate error mesasge.

There are a few different buttons on my page which have different validations and different functions to be run after.

Can anyone tell me how to get the insDetails funtion to run after the validation has passed, without altering the YY_checkform function, as this hile is common to most of my pages?

Thanks for any help
Ro ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMay 24.2006 — My [i]guess[/i] is that the [b]return document.MM_returnValue;[/b] is terminating the onclick.
Copy linkTweet thisAlerts:
@zenopiaauthorMay 24.2006 — I have even tried to remove

return document.MM_returnValue;

and the validation still works but the button still does not continue to the next function. If this is the cause, any ideas how to 'force' it to proceed?

Thanks

Ro
×

Success!

Help @zenopia 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.25,
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,
)...