Please Wait While Processing Page Help

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Please Wait While Processing Page Help

Jennifer Davis
Good Afternoon,

I know this topic has come up several times in the Talk List. I have
reviewed as many as I can find. I see developers make suggestions but I am
clueless with JavaScripting and need a more straight forward and beginners
response. I have been pointed to the following code on a web site. However,
I am unable to get this to successfully work with my existing Lasso code.

In my existing code, my submit page has a lot of parameters. This page is
dealing with 30+ records and two fields per record. The response page is
processing the data and updating the database and this page is taking 16
plus seconds to process.

Can someone tell me if the code below can be used with Lasso and then tell
me how to add this code in? I have tested the code below by adding it to the
response page that is processing. I can see the "Please Wait" window flash
very quickly after the 16 second process. I am not sure if I placed the code
in the right spots on my response page. I would appreciate some guidance and
useable examples.

Thank you for your time.

----Begin Code----

<%
Response.Buffer = True
%>
<HTML>
<HEAD>
    <TITLE>Splash Screen Sample</TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
// This script is intended for use with a minimum of Netscape 4 or IE 4.
if(document.getElementById) {
    var upLevel = true;
    }
else if(document.layers) {
    var ns4 = true;
    }
else if(document.all) {
    var ie4 = true;
    }

function showObject(obj) {
    if (ns4) obj.visibility = "show";
    else if (ie4 || upLevel) obj.style.visibility = "visible";
    }
function hideObject(obj) {
    if (ns4) {
        obj.visibility = "hide";
        }
    if (ie4 || upLevel) {
        obj.style.visibility = "hidden";
        }
    }

</SCRIPT>
<BODY BGCOLOR="#FFFFFF">
        <DIV ID="splashScreen"
STYLE="position:absolute;z-index:5;top:30%;left:35%;">
            <TABLE BGCOLOR="#000000" BORDER=1 BORDERCOLOR="#000000"
CELLPADDING=0 CELLSPACING=0 HEIGHT=200 WIDTH=300>
                <TR>
                    <TD WIDTH="100%" HEIGHT="100%" BGCOLOR="#CCCCCC"
ALIGN="CENTER" VALIGN="MIDDLE">
                        <BR><BR> &nbsp; &nbsp;
                        <FONT FACE="Helvetica,Verdana,Arial" SIZE=3
COLOR="#000066"><B>Page Loading.  Please wait...</B></FONT>
                        &nbsp; &nbsp; <BR>
                        <IMG SRC="wait.gif" BORDER=1 WIDTH=75
HEIGHT=15><BR><BR>
                    </TD>
                </TR>
            </TABLE>
        </DIV>
<%Response.Flush%>


All processing and content here...


<%Response.Flush%>
<SCRIPT LANGUAGE="JavaScript">
if(upLevel) {
    var splash = document.getElementById("splashScreen");
    }
else if(ns4) {
    var splash = document.splashScreen;
    }
else if(ie4) {
    var splash = document.all.splashScreen;
    }
hideObject(splash);
</SCRIPT>
</BODY>
</HTML>

----End Code----


Jennifer Davis
Nicely Done Solutions, Inc.
510-526-3744
510-525-5513 Fax
[hidden email]
http://www.nicelydone.com


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Please Wait While Processing Page Help

Marc Vos-3
Hi Jennifer,

Lasso outputs any HTML when it is done processing, not while it is
processing. So you'll have to put something between the submit and the
processing so that Lasso can process your form in the background while the
users looks at something else. I solved the 'please wait' issue like this:

- Separate the processing of the form from the input of the form. You'll
have two .lasso files.
- create a Lasso page with the 'please wait' gif animation or so and use in
that Lasso file the following META-tag:

            <meta http-equiv="refresh"
content="1;URL=process-form.lasso?your-form-parameters-go-here">

-Have the submit button on the form point to this new Lasso file
-Make sure the 'process-form.lasso' does not output anytyhing and that it
uses 'redirect_url' to your input form, or another file, at the end.

You'll have [form]-->[please wait]-->[processing]-->[back to form]

Very easy, no complicated programming involved, works with JavaScript
switched off too.

Hope this helps a bit,

-Marc Vos
* * * * * * * * * * * * * * * * * * * * * * * *
Goodyear Dunlop Tires Germany GmbH
Private:  http://marc.vos.net/
* * * * * * * * * * * * * * * * * * * * * * * *


On 01-06-2005 00:00, "Jennifer Davis" <[hidden email]> wrote:

> Good Afternoon,
>
> I know this topic has come up several times in the Talk List. I have
> reviewed as many as I can find. I see developers make suggestions but I am
> clueless with JavaScripting and need a more straight forward and beginners
> response. I have been pointed to the following code on a web site. However,
> I am unable to get this to successfully work with my existing Lasso code.
>
> In my existing code, my submit page has a lot of parameters. This page is
> dealing with 30+ records and two fields per record. The response page is
> processing the data and updating the database and this page is taking 16
> plus seconds to process.
>
> Can someone tell me if the code below can be used with Lasso and then tell
> me how to add this code in? I have tested the code below by adding it to the
> response page that is processing. I can see the "Please Wait" window flash
> very quickly after the 16 second process. I am not sure if I placed the code
> in the right spots on my response page. I would appreciate some guidance and
> useable examples.
>
> Thank you for your time.
>
> ----Begin Code----
>
> <%
> Response.Buffer = True
> %>
> <HTML>
> <HEAD>
>     <TITLE>Splash Screen Sample</TITLE>
> </HEAD>
> <SCRIPT LANGUAGE="JavaScript">
> // This script is intended for use with a minimum of Netscape 4 or IE 4.
> if(document.getElementById) {
>     var upLevel = true;
>     }
> else if(document.layers) {
>     var ns4 = true;
>     }
> else if(document.all) {
>     var ie4 = true;
>     }
>
> function showObject(obj) {
>     if (ns4) obj.visibility = "show";
>     else if (ie4 || upLevel) obj.style.visibility = "visible";
>     }
> function hideObject(obj) {
>     if (ns4) {
>         obj.visibility = "hide";
>         }
>     if (ie4 || upLevel) {
>         obj.style.visibility = "hidden";
>         }
>     }
>
> </SCRIPT>
> <BODY BGCOLOR="#FFFFFF">
>         <DIV ID="splashScreen"
> STYLE="position:absolute;z-index:5;top:30%;left:35%;">
>             <TABLE BGCOLOR="#000000" BORDER=1 BORDERCOLOR="#000000"
> CELLPADDING=0 CELLSPACING=0 HEIGHT=200 WIDTH=300>
>                 <TR>
>                     <TD WIDTH="100%" HEIGHT="100%" BGCOLOR="#CCCCCC"
> ALIGN="CENTER" VALIGN="MIDDLE">
>                         <BR><BR> &nbsp; &nbsp;
>                         <FONT FACE="Helvetica,Verdana,Arial" SIZE=3
> COLOR="#000066"><B>Page Loading.  Please wait...</B></FONT>
>                         &nbsp; &nbsp; <BR>
>                         <IMG SRC="wait.gif" BORDER=1 WIDTH=75
> HEIGHT=15><BR><BR>
>                     </TD>
>                 </TR>
>             </TABLE>
>         </DIV>
> <%Response.Flush%>
>
>
> All processing and content here...
>
>
> <%Response.Flush%>
> <SCRIPT LANGUAGE="JavaScript">
> if(upLevel) {
>     var splash = document.getElementById("splashScreen");
>     }
> else if(ns4) {
>     var splash = document.splashScreen;
>     }
> else if(ie4) {
>     var splash = document.all.splashScreen;
>     }
> hideObject(splash);
> </SCRIPT>
> </BODY>
> </HTML>
>
> ----End Code----
>
>
> Jennifer Davis
> Nicely Done Solutions, Inc.
> 510-526-3744
> 510-525-5513 Fax
> [hidden email]
> http://www.nicelydone.com
>



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Please Wait While Processing Page Help

Mark Palmer
In reply to this post by Jennifer Davis
Hi,

This Tip of the Week might be interesting for you:

http://www.omnipilot.com/index.html?section=Products%2fLasso%2fSupport%2fTip
%20of%20the%20Week&id=8296&skip=10&-session=thisSession:26596956A357D32C3F62
1638E34867F9


on 31/5/05 23:00, Jennifer Davis at [hidden email] wrote:

> Good Afternoon,
>
> I know this topic has come up several times in the Talk List. I have
> reviewed as many as I can find. I see developers make suggestions but I am
> clueless with JavaScripting and need a more straight forward and beginners
> response. I have been pointed to the following code on a web site. However,
> I am unable to get this to successfully work with my existing Lasso code.
>
> In my existing code, my submit page has a lot of parameters. This page is
> dealing with 30+ records and two fields per record. The response page is
> processing the data and updating the database and this page is taking 16
> plus seconds to process.
>
> Can someone tell me if the code below can be used with Lasso and then tell
> me how to add this code in? I have tested the code below by adding it to the
> response page that is processing. I can see the "Please Wait" window flash
> very quickly after the 16 second process. I am not sure if I placed the code
> in the right spots on my response page. I would appreciate some guidance and
> useable examples.
>
> Thank you for your time.
>
> ----Begin Code----
>
> <%
> Response.Buffer = True
> %>
> <HTML>
> <HEAD>
>     <TITLE>Splash Screen Sample</TITLE>
> </HEAD>
> <SCRIPT LANGUAGE="JavaScript">
> // This script is intended for use with a minimum of Netscape 4 or IE 4.
> if(document.getElementById) {
>     var upLevel = true;
>     }
> else if(document.layers) {
>     var ns4 = true;
>     }
> else if(document.all) {
>     var ie4 = true;
>     }
>
> function showObject(obj) {
>     if (ns4) obj.visibility = "show";
>     else if (ie4 || upLevel) obj.style.visibility = "visible";
>     }
> function hideObject(obj) {
>     if (ns4) {
>         obj.visibility = "hide";
>         }
>     if (ie4 || upLevel) {
>         obj.style.visibility = "hidden";
>         }
>     }
>
> </SCRIPT>
> <BODY BGCOLOR="#FFFFFF">
>         <DIV ID="splashScreen"
> STYLE="position:absolute;z-index:5;top:30%;left:35%;">
>             <TABLE BGCOLOR="#000000" BORDER=1 BORDERCOLOR="#000000"
> CELLPADDING=0 CELLSPACING=0 HEIGHT=200 WIDTH=300>
>                 <TR>
>                     <TD WIDTH="100%" HEIGHT="100%" BGCOLOR="#CCCCCC"
> ALIGN="CENTER" VALIGN="MIDDLE">
>                         <BR><BR> &nbsp; &nbsp;
>                         <FONT FACE="Helvetica,Verdana,Arial" SIZE=3
> COLOR="#000066"><B>Page Loading.  Please wait...</B></FONT>
>                         &nbsp; &nbsp; <BR>
>                         <IMG SRC="wait.gif" BORDER=1 WIDTH=75
> HEIGHT=15><BR><BR>
>                     </TD>
>                 </TR>
>             </TABLE>
>         </DIV>
> <%Response.Flush%>
>
>
> All processing and content here...
>
>
> <%Response.Flush%>
> <SCRIPT LANGUAGE="JavaScript">
> if(upLevel) {
>     var splash = document.getElementById("splashScreen");
>     }
> else if(ns4) {
>     var splash = document.splashScreen;
>     }
> else if(ie4) {
>     var splash = document.all.splashScreen;
>     }
> hideObject(splash);
> </SCRIPT>
> </BODY>
> </HTML>
>
> ----End Code----
>
>
> Jennifer Davis
> Nicely Done Solutions, Inc.
> 510-526-3744
> 510-525-5513 Fax
> [hidden email]
> http://www.nicelydone.com
>


Regards


Mark Palmer, Pageworks

T: 01902 620500            F: 01902 620440
E: [hidden email]    W: www.pageworks.co.uk



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage