开发者

waiting screen while redirecting to other domain page

开发者 https://www.devze.com 2023-01-07 10:03 出处:网络
I have one page from which i have to redirect to a page which is in some other application or can say in other domain.I want waiting screen till the page is loaded.I want to do it b开发者_如何转开发y

I have one page from which i have to redirect to a page which is in some other application or can say in other domain.I want waiting screen till the page is loaded.I want to do it b开发者_如何转开发y jquery.Can any one help me-


blockUI would be an option

eg.

<html>
    <head>
        <meta http-equiv="refresh" content="3; URL=http://www.mydestination.com/">
        <!-- script include for jQuery and blockUI -->
    </head>
    <body>
        <script type="text/javascript">
            $(document).ready(function() {
                $.blockUI({
                    message: 'redirecting'
                });
            });
        </script>
    </body>
</html>

but if you want to keep the overlay on the redirected page while it is loaded, this would be only possible if you use eg. an iframe. but with that, you would have other problems eg. height, width of iframe

0

精彩评论

暂无评论...
验证码 换一张
取 消