admin管理员组

文章数量:1415100

I am using an SP.UI.ModalDialog in my code in order to open a modal dialogbox in a sharepoint 2010 application.

Wanted to know how to display the message "please wait while the content loads" while the content is loading instead of showing a blank screen in the modal window (just like sharepoint does).

I am using an SP.UI.ModalDialog in my code in order to open a modal dialogbox in a sharepoint 2010 application.

Wanted to know how to display the message "please wait while the content loads" while the content is loading instead of showing a blank screen in the modal window (just like sharepoint does).

Share Improve this question edited Dec 8, 2010 at 18:37 Marcel Korpel 21.8k6 gold badges62 silver badges80 bronze badges asked Nov 30, 2010 at 14:30 Zee99Zee99 1,2342 gold badges25 silver badges46 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

Remove width and height parameters. I had same problem and removing those solved it.

Here's the function that I use to open modal dialogs:

function OpenModalDialog(urlToOpen)
{
    var options = {
        url: urlToOpen ,
        allowMaximize: false,
        showClose: true,
        dialogReturnValueCallback: CloseCallback
    };

    SP.UI.ModalDialog.showModalDialog(options);
}

本文标签: cSPUIModalDialog (Please wait message)Stack Overflow