I have found an issue while searching the data.
I have one file (search.php
) that is input data from the user and submit the form data the other PHP file (results.php
).
In the Results.php
file I wrote a jQuery function :
<script>
function loader(new_val){
console.log(new_val);
}
</script>
I include multiple file in results.php
like :
<?php
include('demo1.php');
include('demo2.php');
include('demo3.php');
?>
Now I need to call the jQuery function :
After "demo1.php" included call jquery loader(4);
After "demo2.php" included call jquery loader(8);
After "demo3.php" included call jquery loader(12);
For example:
include('demo1.php');
echo "<script>loader(4);</script>";
include('demo2.php');
echo "<script>loader(8);</script>";
Like this but when I perform this kind of operation it's not working so I can't update the progress bar value.
It updates the value after whole PHP file executes so would you please let me know how can I call jQuery function loader() after include the file one by one.
Thanks