Jump to content

Recommended Posts

I have been searching for something like this, but am unable to find a good solution. I have a page that has 3 tables. Each table uses CURL to pull json info and fill the tables, one by one. Each table is located in a different php file on the index.php page. The page loads in order of the files, and sometimes can take a while depending on the amount of data it is pulling....I would like to put a loading image or if possible a progress bar over the top of each table while/until they load fully...The only solutions I have been successful with is using JavaScript and a loading image for the whole page....I need each section separate....Here's an example of my structure.

<?php // index.php
include 'table_1.php'; // loads json into table
include 'table_2.php'; // loads json into table
include 'table_3.php'; // loads json into table
?>
Edited by stoggafu

The solution that comes to mind is to have three separate <div>s. Each would initially display a loading icon or message. Separate AJAX calls for each div would repopulate them with the results on completion,

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.