When in the lead, user creates new meeting, I want to add a function to the 'Save' onclick button, but can't for the life of me get this to work, have tried just putting alert('here') in a few places, but with no luck!
Please help!
When in the lead, user creates new meeting, I want to add a function to the 'Save' onclick button, but can't for the life of me get this to work, have tried just putting alert('here') in a few places, but with no luck!
Please help!
Including jQuery in the page and adding your own event handler to that element may be easier.
Co-Founder of: SugarOutfitters
Modules:
SecuritySuite (Teams)
Photo Module
Follow me on Twitter:eggsurplus
Your Personal Developer
To extend the onclick event of save button you can do the follow:
var inputs=document.getAllElementsByTagName("input")
for(=0;i<inputs.lenght;i++){
if(inputs[i].type=="button" && inputs[i].vakue="Save"){
inputs[i].onclick=yourCustomFunction;
}
}
function yourCustomFunction(){
// your custom code
// the code that was on onclick event before
}
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks