Can you show us the actual code? Might be able to work something out for you if we can get a look at it.
Main Topics
Browse All TopicsI have to add some functionality (website stats) to a website. And to do this I have to "break-in" into a javascript-method called "validateInput". I don't want to change this code and prefer a solution like this
function validateInput() {
call original validateInput();
log website stats
}
How can I do this?
So far I renamed the original function to doValidateInput, but I prefer not changing this code.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
@HonorGod.
Thanx, I will test this tomorrow. But I am almost sure it will work :-)
However, it would be nice if Javascript would provide prefixes for included javascripts (like namespaces in xml). In fact I hoped there would be already a syntax for this, like <module>.<function>
Btw. For window.onload I use prototype.js. (Event.observe)
check http://www.prototypejs.org
Business Accounts
Answer for Membership
by: dhiraj05Posted on 2009-07-21 at 09:09:23ID: 24906246
this cannot be done... you must change the name of one of the functions... javascript cannot refer two different functions with same name.