How to perform a specific action when a date is clicked?
For example, you want to perform the alert() function. • If you want to perform it just before the date gets selected You need to put it into the fOnChange() callback plugin in the plugins.js file, as following: function fOnChange(y,m,d) { if (d>0) alert([y,m,d]+’ will be selected.’); return false; // return true to cancel the change. } • If you want to perform it just after the date gets selected You need to put it into the fAfterSelected() callback plugin in the plugins.js file, as following: function fAfterSelected(y,m,d) { alert([y,m,d]+’ has been selected.’); } Or, you may also choose to put it into the gsAction option in the theme-name.js file, as following: var gsAction=”alert([y,m,d]+’ has been selected.’);”; Note you may also use pre-defined popup() function (in plugins.js) to open up any URL in the current window or a new window. e.g. function fAfterSelected(y,m,d) { popup(‘http://www.calendarxp.net’, ‘_top’); } Or even startup your email client by using “mailto”. e.g.
Related Questions
- I am trying to use Import Family Lines, but the Import Action to Perform called Add Ancestors to end-of-line person is not available. How do I make that option available?
- Am I required to manually copy files between machines, register DLLs or perform any preliminary action after installing IncrediBuild in order for my project to compile?
- What action does the "reset" button perform on the WP100 and WP200?