When a user double clicks on a date to create a new event I want the user to go to a url on another site to open a form in a new window. I have done that as shown below but you may have a better suggestion on how I should do it. Also I would like to stop the new event showing on the calendar until the user has submitted it. Then when the user submits the form on the other web site I would like to reload the scheduler to see the new form in the calender.
-
Here is how I open the url when the user double clicks on a date. Is this the best way?
scheduler.showLightbox = function(id){
window.open(url);
return false;
} -
How can I stop the new event from showing in the calender when the user double clicks since the users has not submitted my open form yet. Right now I just reload the scheduler after the window opens using the code below. It removes the new event line since the user has not submitted the form in the open window yet. Is there a better way?
scheduler.attachEvent(“onEventCreated”, function(event_id,event_object){
location.reload(true)
}
});
- Is there a way to reload the scheduler after I submit the form from the open window so it will show the new submitted form from the other web site. That is database I am using to load the scheduler. I realize it may not be possible since the submit is occurring on another site and the scheduler will not be aware of it.
Thanks for any suggestions you have.