lleroy Posted May 4, 2013 Share Posted May 4, 2013 I have a PHP script which takes 3-4 seconds to load and display output. The output gets displayed in a iframe with this code: <iframe src="output1.php" name="output1" id="output1" frameborder="0" scrolling="no" marginheight="0" height="20"></iframe> <a href="output1.php?ip=10.0.0.14" target="output1">Run</a> When I load the page, the iframe loads output1.php for the first time. I then have a button, where I can run it with a parameter. I would like it to display "loading..." in between script loads. I know there are ways to do this in javascript, but I have very little knowledge about JS, so I would prefer to do this with html or possibly php. Any easy way to do this? Link to comment Share on other sites More sharing options...
niche Posted May 5, 2013 Share Posted May 5, 2013 (edited) A simple JS popup onload would be the easiest.. http://www.w3schools.com/jsref/event_onload.asp Edited May 5, 2013 by niche Link to comment Share on other sites More sharing options...
lleroy Posted May 5, 2013 Author Share Posted May 5, 2013 A simple JS popup onload would be the easiest.. http://www.w3schools...vent_onload.asp yeah, but if I use onload, the loading indicater will only show at initial page load. I also have a 'refresh'-like button which runs the same script again, but when using that, the loading indicator don't show. Any other ideas? Link to comment Share on other sites More sharing options...
niche Posted May 6, 2013 Share Posted May 6, 2013 Then I'd use php to display a non js popup Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now