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!
Related
I need something like the viewRender event in order to persist the user's state. I'm building a UI where users will frequently jump in and out of the calendar, so preserving their view/range is essential for a pleasant experience. Does this exist in v5? The last mention I can find of it is from v3.
The only workaround I can think of right now is a direct click handler on every view control element, or a very heavy-handed MutationObserver. This is a React app so either one is going to be super awkward.
Thank you!
Edit 2021-02-11:
I looked at the available view render hooks but none of them address my problem. What I need is an event that will fire whenever the view state changes, including clicking between weeks/months/etc., so that I can persist the date range the user most recently viewed as well as the view they had selected.
viewDidMount is the closest to what I need, but it does not fire when the date range changes.
Edit 2021-05-26:
Another problem with using viewDidMount is that using it to enact side-effects is a bit overeager. The hook gets called whether or not the user has actually done anything, and the default view always gets passed as view inside the View Object. So there's no way to tell whether this mount event contains data I should persist or not.
I am looking for solution to pass parameters from the current page to a previous page and way how to check that the page was popped from another page in Xamarin.Forms.
Thanks !
To pass information from one page to another you can either use events or MessagingCenter: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/messaging-center.
As a personal suggestion, I would try events first, if you cant achieve whatever you want with plain events, then you should give a look to MessagingCenter.
But as a TL;DR, the MessagingCenter allows components/viewmodels to communicate without knowing anything about each other.
I have some check boxes on my website selecting which the data on the page gets filtered but the page name remains the same. I want to capture the data for visitors selecting any of the check boxes. Can you please let me know how can this be done?
Presently, I have different page name whenever the user select any of the check box. But by doing this, Page views data for that page becomes irrelevant.
For Omniture tracking, that's very possible, but you need to add a bit of javascript. You need to add an onClick event for the checkbox, and have it submit a custom link event to Adobe. They provide a function for it:
s.tl(this, 'o', 'Checkbox X Clicked');
Prior to this call, you can set props/evars if you want other tracking tied to this event. It doesn't count as a page view, though.
The Omniture implementation guide is here:
http://microsite.omniture.com/t2/help/en_US/sc/implement/oms_sc_implement.pdf... do a search for the s.tl() function. It'll explain.
Presumably, your page has JavaScript that does the filtering.
You would need to add to this JavaScript to send an AJAX request to the server every time the user makes their selection. The server will need to track the requests in a database or a file. After that, you can analyse the results.
There are many ways to send AJAX requests in JavaScript. The basics are here: http://www.w3schools.com/ajax/default.asp but there are also 3rd party libraries available.
Unfortunately there is nothing that "google-analytics' can do for you here, as far as I know.
Good luck,
DC
this seems like a simple request, but I've searched the fullCalendar posts and was unable to find anything similiar to this question.
I am using the monthly view of fullCalendar on my .net site and need to add an asp.net link button control to each day in the month.
Is this possible?
I've been doing a lot of work hacking the js for fullCalendar, its a fabulous plugin.
You're not going to be able to do exactly what you want, because fullCalendar builds its HTML dynamically in Javascript. What you can do is to hack the JS, the place you need to look is a function called 'buildSkeleton' which generates the HTML for the table fullCalendar uses for display. Its not too hard to see what its doing.
You would also need to deal with the problem that the calendar might render events on top of your button, probably the easiest way is to give your button a positive z-index in CSS so it was always on top of the event bars.
Why do you need a button? If it's to initiate the adding of an event or something like that have a look at one of the demos which shows an dialog box popup when you click on a day. This can be expanded into a host of other posibilities
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