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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:28:06+00:00 2026-05-16T05:28:06+00:00

When users want effects to happen between page loads (ie, old content fades out

  • 0

When users want effects to happen between page loads (ie, old content fades out then new content back in), I typically build the site as follows:

index.php, about.php, etc…

<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/header.php');}?>
<content>blah blah blah</content>
<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/footer.php');}?>

this way, if Javascript is enabled, I can dynamically load the content and do whatever effect is desired, but the page still function if the jscript is disabled.

When I do this, though, is it possible to dynamically load meta tags/titles as well? ie:

<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/header-top.php');}?>
<meta http-equiv='description' content='stufffffff'>
<title>Page | ABOUT</title>
<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/header-bottom.php');}?>
<content>blah blah blah</content>
<?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/footer.php');}?>

Is there any way to replace the title/meta tags with the jquery ‘load’ function? If I just want to replace .copy with the new .copy, I can do $(‘.copy’).load($url+’ .copy’), but is there any way to do this with the title and meta tags as well?

Also, if you have any suggestions on alternative methods here (if I’m going about this all wrong), please offer suggestions. Thanks!

  • 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-16T05:28:06+00:00Added an answer on May 16, 2026 at 5:28 am

    I have recently just completed the major work for a site that does much of what you’re trying to do.

    I use the HIJAX technique, which is similiar to what you are doing. The major SEO concern is that your site be accessible with full titles, and meta keys, WITHOUT JAVASCRIPT. That is the way web spiders (google, bing, yahoo, et al) will crawl your site.

    to make the site dynamic for visitors, I recommend embedding a hidden span inside of the content that is returned via ajax. Inside of this span, include the page title using PHP. then use javascript to get the content of that span, and set the document.title to it.

    Summary:

    1. make the site function without javascript
    2. Add ajax to hijax links
    3. insert a hidden dom node inside of the returned ajax contents
    4. Parse that hidden node for it’s title on ajax success, and set the document.title to it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want users#new and tasks#index to display as the root path URL, i.e. /
My page currently uses Slides I want to be able to add new slides
I have several workflows where the users want to set the number of days
i want users can log in my website throw FB connect ON MOBILE but
I want users to receive 'points' for completing various tasks in my application -
I want users to enter a comma-delimited list of logins on the form, to
I want users to be redirected to the posts index action upon login. But
I want users to be able to upload files via FTP to my site
Similar Stack Overflow Question I want users to be able to search through my
In my Rails app I want users to be able to input video links

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.