Welcome Guest, Not a member yet? Register   Sign In
How to print a image from a php function with AJAX?
#3

[eluser]InsiteFX[/eluser]
Code:
<div id="loading" class="center">
    &lt;?php echo '<img src="'.image_url().'loading/loading.gif" alt="" />'; ?&gt;
<br />Working please wait...
</div>

// css file
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -100px;
}

#loading {
    background-color: white;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -100px;
    display: none;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 3px;
    z-index: 10001;
}

See the display:none in the css file loading id? remove the display:none then when finish put it back.




Messages In This Thread
How to print a image from a php function with AJAX? - by El Forum - 02-25-2012, 11:22 AM
How to print a image from a php function with AJAX? - by El Forum - 02-25-2012, 12:27 PM
How to print a image from a php function with AJAX? - by El Forum - 02-25-2012, 12:28 PM
How to print a image from a php function with AJAX? - by El Forum - 02-25-2012, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB