I have a Google script that parses email notifications from my local library about due dates and pick-up notices, then creates calendar events on a Google calendar. It's not professional code, but it works and is serviceable enough for the family.
I would like to add a feature that allows one to open a calendar event, click on something (like a button or link) and an event that spans 5 days will get shortened to end on the day it is clicked. The calendar page gets pretty full with 5-day-long events that may have been picked up on the first day. I need to keep the event on the calendar, because it also serves as a history of checkouts that the library does not keep.
I can kluge together the logic to do the event manipulation, but it's the firing off that process that is stumping me. I've seen Google spreadsheet usage as a backend db-like service, but that really feels like using Access back in school, so I'd like to find a different approach.
Related
My wife and I both use the one instance of fullcalendar on a website I have built and when she creates a new event on the calendar on her computer, I want it to show up on mine without refreshing. Google calendar does this if we are working on the same calendar and I am wondering if there is a way to get fullcalendar to do it so that we are not both entering an event into the same timeslot.
I know I can use calendar.refetchEvents() with a timer, but I'm after something that won't keep polling the server.
I'm using Google Tag Manager to add Universal Analytics to a page and triggering an event with the JavaScript API. I'm able to the see the event being sent using GA Debugger and on the "Real-Time -> Events" page in GA but it never seems to make it to the "Behaviour -> Events" page (no filters or segments on). The page has been live for about 2 months so I would have thought the raw data would be well and truly processed by now. Is anyone able to provide any insight on why this is happening?
I had a similar issue. Mine was resolved by changing the default tracking period from the default in the calendar (top right) on the Events Overview -page.
I came across this 'issue'.
I had integrated google tag manager into my site, and could see that the events were showing in realtime, but not in the historical data for behaviours/events.
The solution was, looking a the calendar. The historical events for me were, by default, looking at the previous months events. This makes sense then that the real time data I was seeing was not showing.
Below is the image of my realtime events coming through.
And here is an image of what I was seeing by default in the historical events view.
The day these images were taken was the 30th January 2017, as you can see, the calendar at the top right of the events graph is searching through December. Aha... makes sense now why the events are not showing right?
So I clicked the calendar, to change the date period being searched by the events graph and set it to my desired range, in this case, I set it to search for this Month (January), as I had only just implemented the tag manager logic.
Low and behold, after clicking apply on this new date range, the events appeared as I expected them to.
I'm unsure if this answers the OP's specific issue but this is what solved it for me.
I have a project page at http://fulldecent.github.io/cameralife/ and some users will "convert" by selecting this text on the page:
git clone https://github.com/fulldecent/cameralife.git
And hopefully they will paste this into a terminal :-)
I am looking for advice on how to fire a Google Analytics goal when this text is selected. Right now I am working with:
Attach to mouseup
Check createRange or window.getSelection
Fire Analytics goal
That technique is at: Selected text event trigger in Javascript
This approach is from 2010, and wanted to ask first. Is this the best approach with HTML5 or should I be using a more modern approach?
I would suggest looking at CopyPaste by Tynt. The main purpose is different (inserting your URL to copied text), but why wouldn't it allow firing an trackEvent request, which would subsequently record a conversion (assuming you would set up goal tracking based on specific event occurrence)
The webapplication I would like to build gives the user the possibility to select a period on a calendar. On the selected days they can write the start and end hour. The total amount of hours gets calculated. On the image below you can see what I would like to accomplish. What is a good way to get started programming this? Is there a good tutorial to get me started?
Is there a JQuery widget that gives a good start?
On the left you got some Employees and for each of them the user can select the period and fill in the hours they have to work.
I hope u get the idea that i have in mind. Please feel free to ask me any specifications.
I'm using MVC 4 - razor pages for the webapp
Thanks in advance
I've made something very similar in a MVC2 app with jQuery to check schedules for formative actions.
I first place a temporary span for the action and load it into the calendar provided by jQuery's datepicker, later I overwrite it's onSelect event to affect and save my data.
So when I click on a day of the calendar (only days on the previously selected time span are clickable) I allow user to introduce data for the schedule on that day.
Data saving to server is managed through AJAX calls that saves during using interaction.
I am using Selenium to test out a web site. The web site contains a date field, which when clicked, opens a popup from wherein I can choose the date.
My issue is that I wish to select a particular date using the Selenium IDE or Selenese. I have tried various methods, but have not been able to get a correct solution or been able to resolve it, except by manually specifying a date to the field in Selenese script. I am using Java to implement the test case.
An example could be checked by going to any airlines site and clicking on the date field for departure. The popup which comes up, I wish to capture a date on that. This could be a future date or the present date.
You need to implement some code that will navigate calendar to the desired date. Depending on the calendar appearance it may be required to navigate to the next month or year, so you need the code that will determine what needs to be done and then emulate required events for Selenium.
We had the same task in our tests and we end up with either selecting today's date or by entering the date into the field directly. We also made a code that will allow to select any date on the calendar by we did this only because we needed to test the calendar widget and we were the authors of the widget so we knew how it was made. However it resulted in writing a lot of code
Selenium IDE is limited in its ability to handle javascript. I've worked around it at times
by putting custom links in that do customized GETs, but it's a hack.
You could look at Sahi, which can do it. I haven't tried it though.
http://sahi.co.in/w/