Jump to content


New Members
  • Posts

  • Joined

  • Last visited

ColeenChaos's Achievements


Newbie (1/5)



  1. I figured it out: <script type="text/javascript"> function loadlink(){ $('#track').load('tracktime.php',function () { $(this).unwrap(); } ); } function changePageTitle() { newPageTitle = 'New Page Title'; $.get("tit.php", function(data){ document.title = data;}); } loadlink(); // This will run on page load setInterval(function(){ loadlink(); // this will run after every 5 seconds changePageTitle(); }, 5000); </script>
  2. requinix. Yes. How do I form that ajax statement?
  3. ...snip... function myFunction(){ newPageTitle="New Title"; document.title = newPageTitle; } next... title.php I have a small php script that runs a local command and outputs a simple text string. next... I run myFunction every 5 seconds. setInterval(function(){ changePageTitle(); }, 5000); The question: rather than the above function setting the page title to "New Title", how do I set it to the output of title.php? Thanks.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.