How to determine if the user of the mobile device is looking at a site office?

Hello


We have activated the Mobile support for a site.  So now, when a user on a mobile device go to the website they see mobile model.

The mobile template includes a link to the user to view the full site: < a href = "/ index.html? visitorDeviceClass = desktop" > full view of the Site < /a >

We want to add a link 'view the Mobile Site"on the Office site but only for users of mobile devices.

We tried to {{globals.cookie}} and {{globals.visitor}} to see if there is something we can watch (using javascript) to determine if we have a mobile user who visits the site of the office.  But it looks like visitorDeviceClass and deviceClass are set to "desktop" for real desktop users and mobile users who clicked on the link "View Full Site.

We believe that we could be able to watch her User Agent but do not know what OS is displayed for Windows phones and we are not dependent on not user agent.

Question:

Does anyone know of a way for us to determine if a mobile device user look at the desktop version of the site so that we can add a link 'view the Mobile site?

Thank you

sepyh

Hey,.

You can basically determine the device of the visitor to the site in two ways:

Hope this helps,

Mihai

Tags: Business Catalyst

Similar Questions

  • How to determine whether the current operating system is windows, or MAC?

    How to determine whether the current operating system is windows, or MAC?

    CSparrow wrote:

    operatingSystem var = $.getenv ("OS");

    operatingSystem = operatingSystem.toString ();

    alert (operatingSystem);

    It gives me Windows NT Windows 10

    With the help of:

    alert($.os);
    

    works for me.

    (result: Windows/64 10.0)

    and the Silly-V code

    Folder.FS

    gives you the name of the operating system

  • I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    How to use several devices iPhone, iPad or iPod with a computer

    Using more an iDevice on the same computer

    This mainly applies to couples who add another device and don't want their electronic mail, messages, etc. being duplicated on both devices. To start reading: How to use several iPhone, iPad or iPod devices with one computer. You must create a login separate Apple and password for anyone who will use the new iDevice. See Apple - my Apple ID and frequently asked questions about the Apple ID. The easiest way is to do it on the computer using iTunes: iTunes - how to set up an Apple ID iTunes.

    On the computer, create a new user account for the person with the new iDevice. This is the user account always uses this person. He or she will no longer use the other user account. This way the person will have a separate iTunes library. Note When finished, do not 'share' apps under a single Apple ID. Each of you must buy your own applications under your own Apple ID. When you decide to divide like this you will have to buy new applications they want to use.

    First, transfer the new devices to a new account as well as all your data.  Save pictures of flow picture you want to keep for your camera (unless they are already in the camera roll) by opening your Photos app, tap Albums icon at the bottom. Now press the album My Photo Stream; Press Select; tap the photo you want to select. tap the share (box with the face up arrow) in the lower left corner icon; in the film, and then click Save.

    If you synchronize notes with iCloud, you want to keep, you must open each of your notes and email it to yourself. Later, you can copy and paste the text into the new notes created in your new account.

    Tap Settings > iCloud > remove account (removes it only from this device, not iCloud; the person who maintains the current account is not affected) provide the password to disable find my phone and choose to keep on my iDevice when prompted.  Sign in with another Apple ID to create your new account. Choose merge to download your data.

    Once you are on separate accounts, you can each go to icloud.com and remove data from the other person to your account.

    The above was created by the user randers4. Changes were made to improve the readability and the syntax.

  • I bought Creative cloud on my MacBook Air, so, how do I put the mobile, but on my IPad Air version?

    I bought Creative cloud on my MacBook Air, so how do I put the mobile version on my iPad?

    Open the apple app store.

  • How can I increase the maximum width of a fluid page layout office 1232px at 1920px grid?

    How can I increase the maximum width of a fluid page layout office 1232px at 1920px grid?

    You will need to manually alter the query from media CSS for desktop computers.

    / * Office Layout: 769px to a maximum of 1232px.  Inherits the styles of: Mobile and tablet. */

    @media only screen and (min-width: 769px) and (max-width: 1920px) {}

    .gridContainer {width: 90% ;}}

    }

    Nancy O.

  • How to determine that the user has purchased an article or not?

    Hello

    Can someone tell me how can I determine if the user has purchased an article or not?

    Until now, I add to the cart and then allow user to pay for this item through Paypal. But now, my goal is to show all these items that the user has already added, but not bought yet.so, whenever user logs in a/c, he can see the item in my cart.

    Please... help me

    This sounds like a question of PayPal, then you will want to check these forums. If you were using in-app purchases of BB, so yes, it has an API to check the previous in-app purchases.

  • How to determine if the rank of the acquired list focus?

    Hi all

    I have ListField with custom reminder.

    When the user change focus by the movement of the navigation, drawListRow() is called several times - for each focus-changed event.

    How can I determine in the method drawListRow() if current rank on the FOCUS_GAINED event?

    I can do that by following the path:

    public void focusChanged( Field field, int eventType )    {        mIsFocusGained = false;
    
            if( eventType == FOCUS_GAINED )        {            mIsFocusGained = true;        }    }
    
     public void drawListRow( ListField listField, Graphics graphics, int index, int y, int width )    {        int rowHeight = listField.getRowHeight();        int selectedIndex = getSelectedIndex();
    
            if( index == selectedIndex && mIsFocusGained )        {            drawHighlightRegion( graphics, HIGHLIGHT_FOCUS, true, 0, y, width, rowHeight );        }---------
    

    But I can do that directly in drawListRow()?

    Thank you

    I expected allows you to change your listener to update as follows:

    if ( eventType == FOCUS_GAINED )
    {
    mIsFocusGained = true;
    }
    else
    if ( eventType == FOCUS_LOST )
    {
    mIsFocusGained = false;
    }
    

    I think you should ignore FOCUS_CHANGED because the listField stil keep focus in these events.

    I'm not clear on what you mean by that:

    "is that a function is to determine/get current theme ceremony?

    I thought you did that with your FocusChange listener?

  • How to determine if the sound card on motherboard works?

    How can I determine if I have the card in her ascent to the motherboard is working or not?  My computer is an optiplex260

    A. you hear sounds?

    B. why you think you have an its own card?  As far as I know from the Dell site, the Optiplex GX260 integrated sound (i.e., the sound circuit is part of the motherboard).

    C. Manager devices open (start > run > devmgmt.msc > OK).  Click on the + sign next to "audio, video and game controllers".  Is there a warning symbol (yellow triangle with!) next to one of the entries?  If so,.

    • What entry?
    • Double-click on this entry.  What is all the contents of the box under the heading 'device status '?  What is the mention ' status of the device.
  • How to determine if the device supports portrait / landscape views?

    Is there an easy way to determine if the screen of the device supports portrait / landscape views?

    (We need to provide different settings for the user)

    Until recently, we used check similar to the following:

    If OS > = "6.0" & AccelerometerSensor.isSupported)

    but this code does not work on the new Bold 9900 (which has the accelerometer, but has no landscape mode).

    We are looking for a solution that doesn't invlove by manually checking the models...

    Thanks in advance!

    You can use the DeviceCapability.isRotationSupported method to determine this.  This class has been added in BlackBerry Device Software version 6.0.

  • How to determine if the layers overlap?

    I am trying to find a way to determine if the different layers have pixels that overlap.  The layers are formed at random and need to fit as closely as possible, so using the limits to check the overlap would not work.  I'm basically looking for a way to detect duplication based on pixels that are 100% opac.  Is there an easy way to do this in a script?

    I had some free time at work so here is my implementation, only problem I do not know how to remove the "no dialogue selected pixels.

    Alert (checkOverlapping ());

    function checkOverlapping()

    {

    var selectedLayers = getSelectedLayersIdx();

    If (selectedLayers.length! = 2) {alert ("Please select the two layers you want to check"); return null ;}}

    makeActiveByIndex(selectedLayers[0]);

    selectActivePixels();

    makeActiveByIndex(selectedLayers[1]);

    intersectActivePixels();

    activeDocument.quickMaskMode = true;

    activeDocument.activeLayer.threshold (128);

    activeDocument.quickMaskMode = false;

    Try

    {

    activeDocument.selection.bounds;

    }

    catch (e)

    {

    return false

    }

    activeDocument.selection.deselect ();

    Returns true;

    }

    function cID (inVal) {return charIDToTypeID (inVal) ;}

    function of the sID (inVal) {return stringIDToTypeID (inVal) ;}

    function selectActivePixels()

    {

    var desc15 = new ActionDescriptor();

    var ref8 = new ActionReference();

    Ref8.putProperty (cID ('channel'), cID ("FSC"));

    desc15.putReference (cID ("null"), ref8);

    var ref9 = new ActionReference();

    Ref9.putEnumerated (cID ('channel'), cID ('channel'), cID ("TN"));

    desc15.putReference (cID ("T"), ref9);

    executeAction (cID ("setd"), desc15, DialogModes.NO);

    }

    function intersectActivePixels()

    {

    var desc18 = new ActionDescriptor();

    var ref13 = new ActionReference();

    ref13.putEnumerated (cID ('channel'), cID ('channel'), cID ("TN"));

    desc18.putReference (ref13 ("null"), cID);

    var ref14 = new ActionReference();

    ref14.putProperty (cID ('channel'), cID ("FSC"));

    desc18.putReference (cID ("with"), ref14);

    executeAction (cID ("Introduction"), desc18, DialogModes.NO);

    }

    function makeActiveByIndex (idx) {}

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putIndex (cID ("Lyr"), idx)

    desc.putReference (cID ("null"), ref);

    desc.putBoolean (cID ("MKV"), true);

    executeAction (cID ("TPCV"), desc, DialogModes.NO);

    };

    function getSelectedLayersIdx() {}

    var selectedLayers = new Array;

    Var ref = new ActionReference();

    ref.putEnumerated (cID ("Dcmn"), cID ("Ordn"), cID ("Trgt"));

    var / / desc = executeActionGet (ref);

    If (desc.hasKey (sID ("targetLayers"))) {}

    DESC = desc.getList (sID ("targetLayers"));

    var c = desc.count

    var selectedLayers = new Array();

    for (var i = 0; i)<>

    try {}

    activeDocument.backgroundLayer;

    selectedLayers.push (desc.getReference (i). getIndex());

    } catch (e) {}

    selectedLayers.push (desc.getReference, (i), .getIndex () + 1);

    }

    }

    } else {}

    Var ref = new ActionReference();

    ref.putProperty (cID ("Rprp"), cID ("ItmI'));

    ref.putEnumerated (cID ("Lyr"), cID ("Ordn"), cID ("Trgt"));

    try {}

    activeDocument.backgroundLayer;

    selectedLayers.push (executeActionGet (Ref), .getInteger (cID ("ItmI"))-1);

    } catch (e) {}

    selectedLayers.push (executeActionGet (Ref) .getInteger (cID ("ItmI")));

    }

    var vis = app.activeDocument.activeLayer.visible;

    if(vis == true) app.activeDocument.activeLayer.visible = false;

    var desc9 = new ActionDescriptor();

    var list9 = new ActionList();

    var ref9 = new ActionReference();

    Ref9.putEnumerated (cID ('Lyr'), cID ('Ordn'), cID ('Trgt'));

    list9.putReference (ref9);

    desc9.putList (cID ('null'), list9);

    executeAction (cID ("'Shw"), desc9, DialogModes.NO);

    if(App.activeDocument.activeLayer.Visible == false) selectedLayers.shift ();

    app.activeDocument.activeLayer.visible = live;

    }

    Return selectedLayers;

    };

  • How do I pair the mobile phone LG rumor 2 for Vista laptop, or how to manually enter the pairing code

    Hello.

    When I try to pair my phone to my laptop, it appears in the add menu.  When I click on it, a window will appear that has a code on it and told me to check the code on the device is the same.  No code appears on my phone.

    How can I manually enter the code?  In my opinion, I know, but no option appears to allow me to enter.

    I tried all the step using the dialog boxes.

    Thank you!

    Hello

    Please use the Windows Vista answers Forum.

    The Bluetooth device you want to pair must be in mode so that it shows the pairing pairing code.

    Consult the owner's manual for the device you want to use to find detailed instructions on how to place the unit in pairing mode.

    1. with the handset closed, press the button on the keyboard to access the main menu. Once inside the menu screen, select the menu "Tools".

    2 on the Tools menu, select the Bluetooth menu and press OK on the possibility of "pair with hands-free."

    3. the handset will start searching for the Bluetooth device. Once found, it will fill in the list of devices. Press OK on the keypad to associate the device.

    4. once the device PIN / access code has been entered (as applicable), the pairing process will be completed. Leave the menu screens and you will be able to start using your Bluetooth device.

    NOTE: A command prompt can display request a PIN of 4-16 (usually 0 0 0 0). If this prompt is displayed, see the owner's manual for the device for use with the handset to determine the AXIS / Pass code

    You can check the link below:

    http://lgknowledgebase.com/kb/index.php?view=entry&EntryID=6264

    Important note: this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Kind regards
    Technical support of Microsoft-yama.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to check if the mobile/cell the same phone number is registered on the different apple ID?

    Hello

    Is it possible to have the same number of mobile/cell phone with several Apple ID?

    If Yes, is it possible to check if the number is connected to several Apple ID? and how it can be removed?

    When I changed my job, I got a new cell phone number.

    I disconnected all my devices and removed my old number of my Apple ID, after that, I added my new number to my Apple ID and connected to my devices (iPhone, iPad and MacBook Air).

    The thing is that the person who had my new phone number previously, had the same phone number, added to their Apple ID.

    I get time iMessage and FaceTime applications contact the previous owner of my phone number.

    Even if it's annoying that I don't really like, I just block the numbers I don't recognize.

    But my big question is, if my friends iMessage and FaceTime applications for my new phone number can be found at the i-devices previous holders?

    I hope it's understandable - because it feels like a security risk.

    / Calle

    Unregister the old number

    https://selfsolve.Apple.com/deregister-IMessage

  • How do I configure the bluetooth device

    Original title: pls help bluetooth & windows XP

    so brought of speakers of wi - fi creative d80 to my pc. I tried to activate bluetooth in downloading drivers. is it true that you can not bluetooth windows xp?

    Hello

    Thanks for posting in Microsoft Community

    I appreciate that you try to configure the Bluetooth device in Windows XP.

    I will definitely help you with this.

    Please follow the steps in the link.

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883259?WA=wsignin1.0

  • How to connect the mobile device for windows 7

    I am new to Windows 7. I have a mobile device that runs Windows CE and connects via a serial cable.

    In earlier versions of windows, I could just install activesync on my desktop PC, click on connect on my mobile device and it could connect and visible in windows as a mobile device. Then I could transfer files via Explorer.

    How can I connect to my PC Windows 7? Nothing happens and all I can find is Sync Center (seems pretty useless). I don't really need to auto synchronize files, simply move the files between the two.

    Hi tjf1980,

    Refer to the below mentioned method and check if it helps.
     
    Method 1:
    Microsoft Windows Mobile Device Center replaces ActiveSync for Windows Vista and Microsoft Windows 7.
    Try to download Mobile Device Center 6.1 from the following link:
    Note: Download the 64-bit version on the above link and check.
     
    Method 2:
    Synchronize music, photos, contacts, and calendars with a mobile device

    Hope this information helps.
  • How can I change the audio device automatically between exits?

    Original title: Dual monitor mode

    I am currently running Windows 7 Home Premium 64-bit with Media Center and my hardware is Inter Core 2 Quad with NVIDIA GEFORCE 9800GT and an integrated Hauppauge WinTV HVR-1800 ATSC/QAM.

    I have two DVI-HDMI, one output to my monitor 24 "HD and one for my 42 '' HDTV and computer speaker are connected to the SPEAKER OUT behind the computer.

    The problem is when I look at Internet TV through my computer on my HDTV, I need everytimes switch my Default Sound Source of speakers to the HDMI OUTPUT in my-> hardware & sound control panel and market back when I want to use my computer.

    Someone knows how to fix this?

    Hello, DuFF1

    You can have only one default device.

    It is not possible to put two devices by default, nor is it possible to configure the output in default Media Center device. You can try searching for additional Media Center change the audio device by default or continue editing the device default manually before watching TV on the Internet.

    You can leave your comments on the following link:http://mymfe.microsoft.com/Windows%207/Feedback.aspx?formID=195

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for