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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:34:37+00:00 2026-06-15T03:34:37+00:00

I have a page that uses ajax to show users their current assignments. Instead

  • 0

I have a page that uses ajax to show users their current assignments. Instead of having to refresh the page to see if there are any updates, I’m using ajax to update the data every 4 seconds. It’s been requested that I change the document title to show something like “Number of Tasks: 4” and have that update as well when the user either completes a new task, or gets assigned another one. I tried using a simple “setInterval” javascript function, but since PHP is server side, the variable piece doesn’t update…

I’ve also tried setting “document.title” from within the ajax code, but that just plain didn’t work.

Is there a simple way to update the document title to show the number of tasks assigned to the user viewing the page?

  • 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-15T03:34:38+00:00Added an answer on June 15, 2026 at 3:34 am

    Return the value from the $_SESSION in the data sent with the AJAX response to the client Javascript code. Once you have it on the client side set whatever you need to it with javascript.

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

Sidebar

Related Questions

So I have a page that uses both Prototype and Mootools AJAX scripts. There
I have an HTML page that uses AJAX to retrieve messages from a server.
I have a web page that uses jquery ajax to grab the table markup
I have an ASP.NET page that uses the ASP.NET Ajax Control Toolkit TabContainer .
I have a page that uses the following to submit a AJAX request: function
I have a page that uses an AJAX request (using Prototype's Ajax.Request()) to validate
I have a page operation that uses something like: $('#thetable tbody').replaceWith(newtbody); in an ajax
I have a page which uses jquery's ajax functions to send some messages. There
I have a page which uses jquery's ajax functions to send some messages. There
I have a page that uses an iframe to do an ajax style file

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.