Showing posts with label mobile site. Show all posts
Showing posts with label mobile site. Show all posts

Tuesday, 26 June 2012

Navigate or redirect to a url using javascript

Problem:

How do I use javascript to navigate to another url?

Solution:

The follow are two ways that can redirect a user to another page:

// redirect without updating browser history
window.location.replace("my-next-page.html");

In the above and below example "my-next-page.html" should be replaced with your own URL. The above example shouldn't update the change of pages in the browser history, whereas the next example will.

// redirect and update in browser history
window.location.href = "my-next-page.html";

Notes:

This was tested on the iOS 5.1 browser, Firefox 12, and with PhoneGap 1.5.0 on iOS 5.1. This should also work with most other browsers.

Friday, 9 March 2012

Full Google Calendar in Playbook (or mobile browser)

Back Story:
During the price drop of last year I got a Blackberry Playbook prior to the version 2 update (before it had a decent calendar app). When trying to use Google Calendar in its place, one of the things I ran into was that Google Calendar would default to the mobile site in a browser, whereas some friends and I really liked using the full site at the time. We ran into this issue with some other mobile devices, too.

Solution:
One way to get the full Google Calendar to display in the browser is to use the following URL:
https://www.google.com/calendar/render?gsessionid=ok 

Additional Notes:
Bookmarking this URL allows for easy access to this web app, and this workaround solution still worked as of March 2012.