Execute refresh google calendar UI after inserting public calendar with GAE.
I create a gadget with GWT and GAE, using URL to add it in the Google calendar, this app, just add a list of public calendar for the current user connected.
Everithing is ok, except that I it didn't detect that exists a change, and it is necessary use the Refresh option button of the browser to reload the entire page to see the new calendar.
Any one know a way to inform the google calendar, that the current user have new calendar, and it must do the refresh.
Or a way to call the refresh method using JavaScript from the iframe inside of the gadget ?
Thanks any help.
There's no built-in API to do this. However, if you absolutely must offer this feature, and can't rely on Calendar refreshing itself, you can force a reload of the entire Calendar page by calling the following within your gadget:
window.top.location.href = "https://www.google.com/calendar/render";
It's a pretty nasty user experience, so weigh this carefully with other options.
Related
I'm not sure if this is even possible but, I have a button (Add event to calendar).
This button should let the user create an entry to his Google calendar.
For this, I have to open somewhere this URL
My concern here is that I don't want the user to "quit" the main page (where the button is placed). So opening it in a new tab is not an option.
So I'm wondering if it is possible to open it in ion-modal or anything else that keeps the user with the page.
If your app is based on cordova you can use In App Browser to load a url within the app.
If you are using capacitor you can use Browser Plugin, same purpose.
I'm trying to add a button to my website that will add an event to my google calendar, I found this url:
https://calendar.google.com/calendar/r/eventedit?text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml
which works and it's really handy to configure, but I'm wondering, because when I click on it, it takes me to google calendar and it will never come back to my site.
Is there a possibility to add a some parameter to once the event is added, make google calendar redirect to my website?
Thanks in advance.
No there is not a way to do this. Your best bet is to have this link open in a new tab/window so that the user still has your site open.
Another option is to use the Google Calendar API if you're adding a lot of events for a user and have them authenticate. This way you can just use an API to add events and keep them on the page. I would not suggest this solution if you're just adding an event here and there as it's quite invasive to give calendar access to an application.
I have made a basic HTML file by using HTML, CSS and javascript. Based on the user's input and specific actions, I've run methods to create elements(which alter the page). And when the user wishes to go to another page via the link in the page, I want to save the changes that are made in the page.
Note: I am using Google Chrome on Windows XP
And the method execcommand() does not work on Chrome
Any help is appreciated
Thanks in advance
Then you can do two things,
first:
Detect when the user changes the page, at that time script for coping the page like:
var your_var = $(document).html();
$(document).load("new-page.html");
and then navigate a back button detection, when the user comes back to the first page just place your_var like:
$(document).html(your_var);
This is only applicable when your page navigation is done using only jQuery/ Ajax.
Second:
If you want to save state with server side scripting as well then use
javaScript.history();
this will give you the same page you left before with state.
I am looking for a way to access the operation the dashboard ribbon calls when refresh all is clicked. So I can use it to auto-refresh a specific dashboard made up of girds.
It cannot be a full-screen dashboard as the ribbon is needed to work with some of the data in the girds. When I was doing my initial research this seemed like the most popular method but due to the dependency on the ribbon it doesn't work for me.
The second means I found of getting this done was to alter the refresh all in the ribbon, but I don't want to make the auto refresh available globally.
The closest solution I could find was to add a web part to the dashboard with the following JavaScript.
setTimeout("parent.location.reload(true);", 20000);
While this works it's a bit jarring when the whole dashboard disappears as it reloads. So I was hoping there was a way to refresh a dashboard from a web part in the same manner the girds refresh when you click refresh all in the ribbon or the refresh icon in a grid.
Surprisingly I wasn't able to find too much info on this. AppGridWebService.ashx?operation=Refresh is what is called when refresh is clicked.
I am currently using the following to translate a web page:
http://translate.google.com/about/intl/en_ALL/tour.html#professional
The problem is, when I put the code snippet generated on the Google site onto my web pages, the user has to choose their language on each page in the website. Is there any way to do it so that the user only chooses once and then every subsequent page they visit in my website gets automatically translated to their chosen language?
It appears this problem only shows up when using Google Chrome. Other browsers work fine:
http://groups.google.com/group/google-translate-general/browse_thread/thread/4b48a4f997762692
The translation widget at the bottom of this page takes the approach of redirecting to google's page translation service which maintains the language but your page has to run inside a google container:
http://www.toronto.ca/
You might be able to listen to change events on the in-page translation widget and store the selected language in LocalStorage so you can automatically reselect it whenever a new page is loaded. However, this approach is pretty hacky since it could easily break whenever google alters the widget.