Jump to content

Show temporary text while php script loads


lleroy

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...