Results 1 to 6 of 6

Thread: waiting....

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    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

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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!!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    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

  4. #4
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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!!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446
    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

  6. #6
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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
  •  



Click Here to Expand Forum to Full Width