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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:56:29+00:00 2026-05-20T22:56:29+00:00

I have a page, videos.php, that loads a video feed through Ajax. On the

  • 0

I have a page, videos.php, that loads a video feed through Ajax. On the php ajax page, video_feed_ajax.php, it looks through an array creating a object for each video. However, the current way I have the JS written, it only displays the video_feed_ajax.php when its completley loaded (when its looped through the entire array).
->Is there a way to display the video_feed_ajax.php each time it goes through the loop, so the videos are shown as it loops through instead of just at the end?

The portions of my JS that apply:

xmlhttp.onreadystatechange=stateChangedUsersAddVideoFeed;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

function stateChangedUsersAddVideoFeed()
{
    document.getElementById("add_video_feed").innerHTML=xmlhttp.responseText;
    document.getElementById('add_video_feed_load_img').style.display='none'; 
}
  • 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-20T22:56:30+00:00Added an answer on May 20, 2026 at 10:56 pm

    You could call the flush function inside your loop in PHP to immediately send the echoed mark-up.

    But if your loop is taking long enough to be a nuisance there must be something wrong with it – unless you just want the visual effect of progressive loading, in which case you should simply animate that after receiving the whole response. There is no point in streaming just a few kbs.

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

Sidebar

Related Questions

I have a PHP/jQuery scraper function that essentially looks for web page content. One
in my application i have the playvideo page where video will play, below that
I have page where I load different videos.I use jw player as player if
I have a page of several videos. One can click a thumbnail to play
So I have simple video tag on HTML 5 page playing OGG video. I
I have a video element on a page which has an mp4, ogg, and
I have written some code to display a YouTube video on my page but
I have a video, and I need to play it in my ASP.NET page's
I am developing a page in which i have to show video with its
I have page named page--news.tpl.php, which i created for my news page. But after

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.