Jerry,
Rudy, what you are suggesting works in most browsers.Alas, that (small differences) is always a problem with browsers. :-\
But beware that it is browser dependent (including browser
version)
It's also dependent on the HTML being sent; i.e. aThats something I've seen too.
<table> without the matching </table> seems to fail to
display more than non <table> data.
But agreed, its something the OP should be aware of.
Regards,
Rudy Wieser
-- Origional message:
Jerry Stuckle <jstu...@attglobal.net> schreef in berichtnieuws np4nc0$oui$1...@jstuckle.eternal-september.org...
On 8/17/2016 2:30 AM, R.Wieser wrote:
apoorv(?),
I want to show a loading gif or a message that please wait andfile_get_contents.
when I get result I want to show that.
I know we cab do that when we submit a form with beforesend
function or show hide a gif but how would I do that with
beforeI'm not sure I understand the problem: you could place/echo some HTML
displayedexecuting the file_get_contents command, and that HTML should be
iton the clients webbrowser (it will display as much as it can, even when
hasn't encountered the "</BODY>" and or "</HTML>" tags yet).
<?php
echo "<h3>Loading data, please wait</h3>";
$contents = file_get_contents(....);
echo "<h3>Finished loading, now processing data</h3>";
// do something with $contents here
(untested, but should work)
Hope that helps.
Rudy Wieser
Rudy, what you are suggesting works in most browsers. But beware that
it is browser dependent (including browser version) and won't
necessarily work in all cases. It's also dependent on the HTML being
sent; i.e. a <table> without the matching </table> seems to fail to display more than non <table> data.
But it varies widely.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (2 / 14) |
Uptime: | 119:08:10 |
Calls: | 7,612 |
Files: | 12,787 |
Messages: | 5,684,029 |