Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:14:24+00:00 2026-06-13T14:14:24+00:00

I designed a webpage and a mobile version of the same page (using jQuery

  • 0

I designed a webpage and a mobile version of the same page (using jQuery Mobile).

I have javascript code that detects if the user is using a mobile device, and then redirects to the mobile site (mobile.html).

But when the user tries to go from the mobile site to the desktop or full site it brings up the page, but doesn’t look right… it’s kind of zoomed in and displaced when looking on a Mobile Device.

************The Javascript to detect mobile device************

var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));  
 if (mobile) { 
    document.location = "http://www.somedomain.com/mobile.html";  }
 }  




************jQuery Mobile button for Full Site ***************

<ul data-role="listview" data-inset="true">
        <li>
            <a href="http://www.somdomain.com/?view=full">Full Site</a>
        </li>
</ul>

How do I get the redirect to the full site to look like it should on the mobile device?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:14:25+00:00Added an answer on June 13, 2026 at 2:14 pm

    Obviously you’ll go back to the mobile website because it will run your detection script and redirect you straight back. You need to use techniques to avoid this.

    You need to TELL the full site you just came from the mobile website and DO NOT want to go back.

    Some examples for on the full site:

    • check if view is set to ‘full‘. If true, set a cookie or a php session to avoid running the detection script.
    • check if the referrer is the mobile website. If true, dont run the detection script.

    Hope this gets you on your way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed a webpage using HTML and client side validation using JavaScript.PHP for
I have designed a webpage that can display properly in Windows XP (IE8) .
I designed a webpage. One page contains an html user registration form: <form action=internal/signup.php
I have a view designed like that: Ext.define('MY.view.NotificationMails', { extend: 'Ext.grid.Panel', alias: 'widget.NotificationMailsPanel', id:
Hi instead of using the Paypal API I designed a webpage using php and
I was testing a webpage that I designed on my Android 2.1 browser but
I have designed my web page in asp.net its in aspx page. i need
I have designed a long web page and there are many photos in one
i have designed my homepage of my webpage as abc.aspx not default.aspx . How
I've designed a web page in asp.net. And in that page i placed html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.