Calling all brains!
I have a PayPal 'Buy Now' button in a radwindow. On clicking this button the radwindow closes, and the parent page redirects to PayPal. This all works fine.
My concern is how to deal with the delay between the radwindow closing, and the parent page processing its redirect. To the user it seems nothing is happening for a few seconds. It might not be possible but has anyone a good idea on how to show a "please wait" type message on the parent?
I am using an empty label "lblJavaScript" on the parent and
I have a PayPal 'Buy Now' button in a radwindow. On clicking this button the radwindow closes, and the parent page redirects to PayPal. This all works fine.
My concern is how to deal with the delay between the radwindow closing, and the parent page processing its redirect. To the user it seems nothing is happening for a few seconds. It might not be possible but has anyone a good idea on how to show a "please wait" type message on the parent?
I am using an empty label "lblJavaScript" on the parent and
lblJavaScript.Text =
"<script type='text/javascript'>top.location.href='" & sPayPal & "';GetRadWindow().Close();</script>"
...in the radwindow (where sPayPal = the URL to redirect to).
This works fine.
If I had two <div> on the parent page, one for the content to see before the radwindow pop-up, and one to show when it closes, is there any way to change my javascript above to show the new div as well as redirect the page and close the window?
Sorry to be so dumb. I don't think you can do this, but if you never ask cleverer people you never know!
thanks so much folks