>
> Is there a way to move the user (immediately) to a (a) blank page, then
> to the thankyou.a4d page after the processing is done, or (b) blank
> page with the words 'processing...' written on it or.... (whatever
> gives the user the impression that things are being done and not
> stalled).
If you needed to give immediate feedback to the user and are willing to use
javascript then you might have some luck using the "onSubmit" event to hide
the current page contents.
At the same time that you hide the old page contents you can then display
some new contents (in your case, the 'processing...' message).
I use this this sort of technique for displaying "tab pages" on the web.
> Is there a generic way to do this so that I could use the
> technique every time there might be a delay between pressing the button
> and bring back the response?
I don't know how generic it is and I haven't tested it, but one way to do
this would go along these lines...
<html>
<head>
<script language=Javascript>
<!--
// Determine Browser
ns4 = (document.layers) ? true:false
ie4 = (document.all) ? true:false
ng5 = (document.getElementById) ? true:false
// Swap Layers Function
function SwapLayers() {
if (ng5)
{
document.getElementById('BeforeSubmitClicked').style.visibility = "hidden"
document.getElementById('AfterSubmitClicked').style.visibility = "visible"
}
else if (ns4)
{
document.BeforeSubmitClicked.visibility = "hide"
document.AfterSubmitClicked.visibility = "show"
}
else if (ie4)
{
BeforeSubmitClicked.style.visibility ="hidden"
AfterSubmitClicked.style.visibility ="visible"
}
//--></script>
</head>
<body>
<div id="BeforeSubmitClicked" style='position:absolute; top:1;'>
(HTML that you normally display with the following addition to your form
tag)...
onSubmit="SwapLayers()"
</div>
<div id="AfterSubmitClicked" style='position:absolute; top:1;'>
(HTML for message informing user request is being processed)
</div>
</body>
</html>
Hope this helps,
-Kevin Williams
_______________________________________________
Active4d-dev mailing list
[EMAIL PROTECTED]
http://aparajitaworld.com/mailman/listinfo/active4d-dev