<center>
<form id="f1">
<textarea name="textcontent" id="styled" cols="40" rows="4"></textarea>
<br>
<input onclick='JavaScript:xmlhttpPost("/cgi-bin/test.py")' type="button" value="Show" class="blue"/>
<br><br>
<div id="qList">
<img id="loading_image" src="ajax-loader.gif"/>
</div>
</form>
</center>
I want the image as shown in the code to appear when the Show
button is clicked and the image to be replaced by the content returned by the python file.
I know I can use this script onclick="$('#loading_image').show();"
, but how can I make them execute together, so that image is replaced by some other content ?