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

  • SEARCH
  • Home
  • 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 7510995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:24:27+00:00 2026-05-29T23:24:27+00:00

I have a site that is mostly designed for viewing on Android and iPhone

  • 0

I have a site that is mostly designed for viewing on Android and iPhone devices. However, it is, of course, possible that people can view it on the web from a desktop or laptop.

The site is currently built to be a skinny width, 320 pixels wide, to accomodate most handheld devices. And actually, I like the layout so I don’t mind that people on desktops see the same interface as handhelds. I like the consistency of the interface across devices.

What I’d ideally like to do is have additional information display for people viewing the site on larger monitors. Like so:

enter image description here

The key point that I’m stuck on is how to prevent Interface B from being downloaded or offered to the mobile devices. I know how to create an extra DIV and hide it using CSS based on browser identification. However, for a variety of reasons, it is important that Interface B not simply be hidden from some devices, but the data not even be transferred.

Is this possible?

An ideal solution should include the following considerations:

  • The default is to assume a device is mobile and only offer Interface
    A. Only if the “browser sniffing” comes back with a high certainty
    (well, as certain as it can get) that the device is a certain white
    list of known desktop browsers, then show interface B.

  • A solution that works on the server side. Again, no data from
    Interface B should be transferred if the visitor is suspected to be
    on a mobile.

  • Interface A and B can be separated by frames, DIVs, iFrames… I’m
    agnostic about that, but I’m more familiar with CSS, so having them
    in two different DIVs might be easier for me to grasp.

  • 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-05-29T23:24:32+00:00Added an answer on May 29, 2026 at 11:24 pm

    I wouldn’t use browser sniffing at all, but CSS 3 Media Queries to find out if “Interface B” fits and load it’s content with AJAX only if it’s displayed.

    Something like this:

    <style type="text/css">
      @media only screen and (max-width: 320px) { 
         #interface-b {
           display: none;
         }
      }
    </style>
    
    <script type="text/javascript">
       // Using jQuery for convience here
       // Let #interface-b be empty originally, 
       // and load it's content with AJAX only if needed.
       jQuery(function() {
          if (jQuery("#interface-b").is(":visible")) {
            jQuery("#interface-b").load(...);
          }
       });
    </script>
    

    (EDIT: Added only keyword for better backwards compatibility)

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

Sidebar

Related Questions

I have a site that will be used mostly on mobile devices, the top
We're building a site that will have very minimal code, it's mostly just going
I have a legacy web-site that I am maintaining (built mostly in classic ASP
I have a site that requires Windows Authentication the application obtains the credential from
I have a site that is using x509 client certificates (2 way SSL) to
I have a site that usually has news items at the top of the
I have a site that I've developed that makes decent use of Javascript, and
I have one site that is displaying html content that needs to be displayed
I have a site that I am currently working on in ASP.NET 2.0 using
We have a site that needs to (as part of our process) generate a

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.