Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I successfully have a basic Javascript set up to see if we have a specific user agent to switch to our alternate templates for our mobile templates.
Javascript is as follows
if((navigator.userAgent.match(/android/i))){ document.location.href='/mobile-home.aspx';}
Works fine BUT, I need to override the Useragent request to take them back to the normal templates if they choose the link "Back to Full Site"
How would I go about this? How would I switch back to the normal templates? If you can give an example that would be great! Thanks.
Hi Carlos
would'nt this be a matter of setting a variable and check if it is true and then skip the navigator stuff if it is?
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Useragent redirect, alt templates and mobile to back to normal templates
So I successfully have a basic Javascript set up to see if we have a specific user agent to switch to our alternate templates for our mobile templates.
Javascript is as follows
if((navigator.userAgent.match(/android/i)))
{
document.location.href='/mobile-home.aspx';
}
Works fine BUT, I need to override the Useragent request to take them back to the normal templates if they choose the link "Back to Full Site"
How would I go about this? How would I switch back to the normal templates? If you can give an example that would be great! Thanks.
Hi Carlos
would'nt this be a matter of setting a variable and check if it is true and then skip the navigator stuff if it is?
/Jan
is working on a reply...