Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to display the "Loading message" while loading the page

    Hi,

    I want to show the loading message while loading the page.

    I am using the below code to load the page..

    isc.HTMLPane.create({
    width:"100%",
    contentsURL:pagePath,
    contentsType: 'page',
    overflow:"auto",
    styleName:"defaultBorder"
    })

    PagePath: Jsp URL.

    If I don't use the contentsType: 'page', My page is not loading.
    So, I wanted to use contentsType as page and I need to display Loading message whileb loading any page.

    Thanks,
    Bhaskar

    #2
    Make sure you've read all the warnings in the docs about iframes and loading entire pages. It very rarely makes sense to do this, usually only for something like a help system. It is never ever correct to load a page that contains SmartClient components via an iframe (htmlFlow.contentsType:"page").

    That all said, there's no general purpose way to determine that an iframe has finished loading. You can either:

    1. embed the loading message in the page itself, similar to how the SmartGWT Showcase shows a loading message (just some simple HTML right in the page itself).

    2. add code to the page to call out to the parent frame and invoke a method to tell the parent frame that the page is loaded.

    Comment

    Working...
    X