I need add new event object with "dayClick" in fullcalendar - fullcalendar

I need to know how to add a new event with "dayClick" to the calendar because I am going to use it to manage my holidays.I'm using java + javascript to develop the application. Thank you.

The dayClick documentation is here: http://arshaw.com/fullcalendar/docs/mouse/dayClick/
What you do on that event is entirely up to you and how you want to implement creating a new event. You could do like Google Calendar and open a dialog asking for event details, you could navigate to a new form to gather the information. Really, just up to you.

Related

Coding new Appointment behind a button with the scheduler control in devexpress

I'm new here and to devexpress and my Question I hope is a simple one to all you mavericks here. I'm creating an scheduling module with devexpress and I want to add a"necessary appointment "button rather than having to right click to add an appointment..users love buttons after all and I can't seem to find code for that..thanks
Take a look at the SchedulerControl.CreateAppointment method, that creates a new appointment with the specified All-Day and Recurring settings, shows it in the Edit Appointment dialog, and then adds it to the SchedulerStorage.Appointments collection of the control's storage.

Can an HttpModule invoke a new IE pop-up window?

I am developing a custom application feedback tool. The idea is that when the user launches a particular application, I want a pop-up to appear, say a couple seconds after the user launches the application, that asks if they'd be willing to provide feedback. The pop-up will simply be a new IE window. So, something similar in functionality to:
Response.Write("<script>window.open('" + sUrl + "', 'mywindow','resizable= yes,scrollbars= yes');</script>");
We have numerous web apps (ASP.NET) in our company, and I think the quickest solution would be to drop an HttpModule into the application's solution. For an ideal example, see: http://www.foreseeresults.com/.
QUESTION: Is invoking a new internet browser pop-up possible with an HttpModule? Or is perhaps invoking JavaScript from an HttpModule possible on the client's browser?
You can achieve this by using ASP.NET HTTP Response Filters.
You implement your custom filter and then set it inside a custom HttpModule or inside a Global.asax file by handling the PostReleaseRequestState event.
Bellow is an article by Scott Mitchel on HTTP Response Filters.
https://web.archive.org/web/20211029043851/https://www.4guysfromrolla.com/articles/120308-1.aspx
This article contains two simple response filters, which should give you the right direction on how to implement your case. I suggest you to display a modal dialog using jQuery and display a message. When user confirms that dialog open a new web page in new window (this way you'll also get around popup blockers).
Hope this helps!
Regards,
Uros

Google Tag Manager: Calling dataLayer.push after validating the form

I want to call below code (Google Tracking code) if the form is validated successfully.
onclick="dataLayer.push({'event': 'NewsletterSignup'});"
If I add it to "onclick" event, it fires every time without considering the validation.
please let me know how should I call it only after validating the form. I searched in Google Tag Manager developer guide but could not find any help regarding this.
Please advise.
I think all you need is to change your onclick handler to include the validation. Something like this:
onclick="function() { if(validate_form()) dataLayer.push({'event':'NewsletterSignup'}); }"
I'm not a Javascript programmer so I hope that's the correct syntax. All I've done is to introduce the validation check into the onclick. If the check passes we push the event to the data layer (I assume that validate_form() returns a boolean).
Your idea of firing the tracking code on the new page after the form is submitted is another possibility. That could work. You could just add a rule in GTM for that tag (tracking code) that causes it to fire on the new page (assuming that the only time that the new page is loaded is after a newsletter signup has occurred).
I think using the onclick handler above is the simplest solution.

Linking to fullcalendar event

i have a fullcalendar view, that shows the current month view as default. I fetch different events via json call, everything works fine.
My question is. How do i link to a specific event from another page, so that it opens in "day" view on the correct date.?
Take a look at this fiddle:
http://jsfiddle.net/100thGear/krJcL/
This leverages the changeView and goToDate FullCalendar methods to simulate what you need.
Might help you get started. Let me know if this helps!

How to drag an event from FullCalendar back to external list

In FullCalendar I can drag-and-drop an event from an external list into the calendar. But I also need the reverse. So could anyone please let me know hwat are the steps to implement the drag-and-drop of a FullCalendar event from the calendar back to the external events list?
I've updated the external-dragging demo and posted the code to the comments on http://code.google.com/p/fullcalendar/issues/detail?id=550. Hope it helps

Resources