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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:44:32+00:00 2026-05-18T08:44:32+00:00

I have an application using Jquery’s UI Tabs for an overall menu, and they’re

  • 0

I have an application using Jquery’s UI Tabs for an overall menu, and they’re great. However, I’ve come to a strategy question when implementing the new format.

First, the concept:

  1. An index.php file includes several class files (also PHP) and calls the tabs
  2. Each tab pulls in one file per page via the script’s “ajax loading” feature (As described here)
  3. Each tab’s page contains a combination of static text, content loaded server-side at display, and content that’s dynamically updated via jQuery’s Ajax.

Now, the challenge:
Everything is working as expected except that pages that are pulled into the tabs don’t have access to the aforementioned included php files on the index page. I’m able to use that content if I do a separate includes on each of the ajax included pages, but that could get out of hand in a hurry. So, I’m seeking a strategy to get one set of included files to persist across all my pages.

Any ideas for a graceful solution to this challenge?

  • 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-18T08:44:33+00:00Added an answer on May 18, 2026 at 8:44 am

    PHP (well, the entire web) is stateless, meaning once the PHP interpreter has parsed a file, it spits it out and is done with it. There is no way for it to persist includes parsed in one instance to another instance.

    The only way for the pages to gain access to files included in the “main” page is to include those files themselves. Like you said though, that could get out of hand and be pain-staking to maintain, which is why a lot of people resort to a registry file. Your registry file loads the includes you need, and you only need to include the registry file on all of your pages.

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

Sidebar

Related Questions

We have a simple mobile web application using jQuery. The application is working good
I'm developing an web application using asp.net MVC and jQuery. I have in my
I have developed an ajax application framework using php/jQuery etc. I would like to
I have a web application using ASP.NET 2.0 and I want to know if
I have a Php application using stream_socket_client(), to get data through tcp from a
I have a control application - using asp.net webservices. I have a timer which
I have a web application using JPA and JTA with Spring. I would like
I have a WPF application using Aero Glass. When using the application under a
I have a simple application using netbeans for developing and maven for building et
We currently have developed an application using WCF. Our clients make connections to different

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.