|
-
Jun 27th, 2001, 07:56 AM
#1
Thread Starter
Hyperactive Member
waiting....
Hello All,
I have this function that gets results in a loop, when finished it returns true.
do
ret = returnFunction
loop while ret <> true
I would like to pop something on the screen like "Please wait or an animated gif" until the function retunrs true.
Many thanks
__________________
Music for the Millennium... who's buying all this boy band crap anyhow?
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
Jun 27th, 2001, 11:00 AM
#2
Frenzied Member
yes, i did this in asp!!
at the beginning of your page, just before you do
all your looping, show a layer with your gif or text,
do all your looping,
and after your looping is done,
hide your layer!!
if you need more info, just ask!!
-
Jun 27th, 2001, 11:10 AM
#3
Thread Starter
Hyperactive Member
LAYER
Abit of help please.... could you give an example... layer etc?
Cheers Gary
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
Jun 27th, 2001, 11:19 AM
#4
Frenzied Member
ok, here's your function to hide and show your layer
Code:
function show(object)
{
if(document.layers){
document.layers[object].visibility="hidden";
}
else if(document.all){
document.all[object].style.visibility = "hidden";
}
else if(document.getElementById){
document.getElementById(object).visibility="hidden";
}
lastMenuItem=menuItem;
}
function hide(object)
{
if(document.layers){
document.layers[object].visibility="hidden";
}
else if(document.all){
document.all[object].style.visibility = "hidden";
}
else if(document.getElementById){
document.getElementById(object).visibility="hidden";
}
}
so before your asp stuff, do:
put your layer :
<div id="layerName" style="position:absolute;width:175px;height:68px;left:0px;top:0px;visibility:visible;z-index:2">
<img src="images/radixh.gif" width="175" height="68" border="0">
</DIV>
and then show it
<script language="javascript">
show('layerName');
</script>
<%
do all you asp stuff heres
and after your asp looping
response.write "<script language=javascript>"
response.write "hide('layerName');"
response.write "</script>"
%>
if you need more, just ask!!
-
Jun 27th, 2001, 11:43 AM
#5
Thread Starter
Hyperactive Member
I know its a bit of an arse but could i have this in one file to test.... a bit of a novice you c
Many thanks Gary
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
Jun 27th, 2001, 11:54 AM
#6
Frenzied Member
i can show you the file, but it's all messy,
it's when i started,
if you really want it ok,
but it would be better if you post your code,
and i'll show you what to do!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|