Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

Create "view desktop version" on mobile

Hi,

I want to create a "view desktop version" link on my mobile site ( well actually its responsive)

How do i do this - do i need to create a cookie

Any ideas?

Thanks
0
coolispaul
Asked:
coolispaul
  • 3
  • 2
1 Solution
 
COBOLdinosaurCommented:
From that description, I have no idea of what you are expecting to do.

If it is responsive then it will automatically present the desktop version to a desktop device.  If you are trying to override the responsive behavior on mobile, then you are just going to end up display junk, because trying to render a desktop version on mobile is going to make it impossible for it to render anything like it looks on desktop.

The who thing sound totally illogical; so if I am not understanding what you want to do please explain.

Cd&
0
 
coolispaulAuthor Commented:
Hi

Why couldnt it render it like the desktop? Not all sites are responsive so mobiles do display desktop optimised websites.

Wouldnt it be a case of dynamically changing the meta viewport but somehow mainaining this setting in a cookie or something for all pages?

Thanks
0
 
COBOLdinosaurCommented:
Why couldn't it render it like the desktop?

Because it is not a desktop.  It does not use the same browser as a desktop.  It does not use the same operating system as a desktop.  it does not use the same rendering engine as a desktop, and in some cases it may not be able to support code that works on a desktop.

That said, just load the page without the media queries or disable the mobile stylesheet.  

However is still makes absolutely no sense to want to display a desktop version from a mobile optimized page, when the desktop version is not going to look like it looks on a desktop; assuming that the page is actually responsive.

You do not want to use a cookie.  You could use the session, but if you are going to do something this backward then go to the server and let it deliver the desktop version without the media query, so that you do not screw up a user by installing a cookie that prevents them from getting mobile; plus some user will not accept cookies.



Cd&
0
 
coolispaulAuthor Commented:
in my own personal experience, i actually prefer to see the desktop version of sites on my mobile. This being because you are not limited to what tyou see - i like to see the "full" (desktop) version of a website even if im viewing on my phone.

take the bbc for example -
http://m.bbc.co.uk/

they have a link to desktop and vice versa.

I think its good to give the user the option and therefore that's why i ask the question on how best to implement this...

Thanks
0
 
COBOLdinosaurCommented:
Best way is to have two versions of the page, and check the session server side to see what the user is currently using.  That eliminates issued that would come from trying to override media query settings.

Cd&
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now