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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:54:00+00:00 2026-05-26T23:54:00+00:00

In my stream page, I have one current song script, but it doesn’t update…

  • 0

In my stream page, I have one current song script, but it doesn’t update… The user needs to refresh the page.

the script is:

<script name="whasong" id="whasongid" src="http://xxxx.xxxx.net/js/song/u4:2134" type="text/javascript">
You appear to have javascript turned off.
</script>

src=”http://xxxx.xxxx.net/js/song/u4:2134&#8243; code:

document.write('SONG NAME');

Is it possible to autoupdate just this script without refreshing the whole 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-05-26T23:54:00+00:00Added an answer on May 26, 2026 at 11:54 pm

    You might be in need of Ajax functionality. Do you mean that, at the end of a song playing, you want to modify the page content to reflect the song change? If it is so, you might gain a lot by looking into a JavaScript framework like jQuery or Backbone.js and bind some behavior to the state change in question. So you will want the song change (for example) to trigger a certain function you will have prepared, which will use jQuery to query the server via Ajax to update the page, and change the DOM accordingly.

    EDIT: If instead of waiting for an explicit state change in your web page, you wanted to update it periodically, you might be looking for such a strategy :

    function updatePage(/* arguments */) {
      // Call the server to get some data ...
      // Update the page accordingly ...
      if (/* continue updating the page? */) setTimeout(60000 /* 60 seconds */, updatePage);
    }
    

    If you were using jQuery for your Ajax needs for instance, that function could look like so :

    function updatePage(/* arguments */) {
      jQuery.get("/your/url", {foo: "bar"}, function(data) {
        // Update the page accordingly ...
        if (/* continue updating the page? */) setTimeout(60000 /* 60 seconds */, updatePage);
      });
    }
    

    If you want some more specific help, don’t hesitate to be more precise as to what your issue is.

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

Sidebar

Related Questions

I have one page that generates png images on the fly,project is not over
I have an asp.net image control in one ASP.NET page and have a Memory
I have a data stream that may contain \r, \n, \r\n, \n\r or any
I have a incoming stream of bytes (unsigned char) from either a file or
I have a byte stream I need parsed into a struct, and I also
I'm looking to stream some audio files I have on my server to an
I have one huge XML document. I have set of XSL representing each node
I have an ASP.NET 2.0 page with many repeating blocks, including a third-party server-side
I have to get response text from a resourceindex page as JSON object. When
I need to monitor one single page and all related activities. This is the

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.