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 7836111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:58:39+00:00 2026-06-02T13:58:39+00:00

I have several sites I’m working on that are loading sub-pages via lightbox. The

  • 0

I have several sites I’m working on that are loading sub-pages via lightbox. The actual content is being found by Google, but the pages are hideous as they aren’t meant to load all the headers and whatnot – this is content intended for lightbox delivery (ajax, fancybox).

In PHP, or javascript if necessary, how might I determine if the content is being viewed in a lightbox or not? Would be nice to throw up a “view the original page” link or something.

  • 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-02T13:58:40+00:00Added an answer on June 2, 2026 at 1:58 pm

    lightbox like every other similar lib use AJAX for pulling content … am not sure sure if you can detect if it is a standard jquery or moottools or lightbox because they all you the same technology

    What you can do is detect if your page is been called via AJAX

    function isAjax() {
        return (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=="XMLHttpRequest");
    }
    
    if(isAjax())
    {
        die("Don't Use AJAX");
    }
    else
    {
        echo "WELCOME" ;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several web pages on several different sites that I want to mirror
I have several sites that I want to link back to the main site
We have several sites that use Forms Based authentication (FBA) within SharePoint. Many of
I have several web sites that share common functionality - for example, address verification.
The situation is this: We have several (19) sites that are currently configured to
I have seen on several sites that drop list values can have offsets... For
I have created an API that is used on several sites. The client sites
I have a program that I use on several sites. It uses require('config.php'); to
I see that most sites that allow you to login with OpenID have several
I have created a webapplication that exists on several sites and if I want

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.