What causes the browser to keep "Loading..." ?

118 views
Skip to first unread message

YUY0x7

unread,
Aug 18, 2006, 2:56:15 PM8/18/06
to Google Web Toolkit
Hi, I'm having a strange problem with both Firefox and IE.. When I use
a DeckPanel in the following code, and call ProjectManager.gotoHome(),
the browser does not keep "Loading...". But, if I replace it with a
FlowPanel (or any other panel for that matter), the browser keeps
"Loading..." forever. Am I doing something wrong here?

Btw, I'm only considering not using the DeckPanel because it seems to
produce weird results when used with widgets that have different
margins and sizes...

Any suggestions would be appreciated.
Thanks.

package com.fxl.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.*;

public class ProjectManager implements EntryPoint
{
private static ProjectManager self = null;

private VerticalPanel root = new VerticalPanel();
//private DeckPanel deck = new DeckPanel();
private FlowPanel deck = new FlowPanel();

private Login login = new Login();
private Home home = new Home();

private Widget current = null;

private Footer footer = new Footer();

public void onModuleLoad()
{
self = this;
RootPanel.get("fxl-Content").add(root);
RootPanel.get("fxl-Loading").setVisible(false);

root.setWidth("100%");
deck.setWidth("100%");

root.add(deck);
root.add(footer);

//deck.add(login);
//deck.add(home);

// the following is needed because
// the deckpanel sets it to 100%
//login.setWidth("auto");

if (!User.isLoggedIn())
gotoLogin();
else
gotoHome();
}

public static void setLoading(boolean b)
{
RootPanel.get("fxl-Loading").setVisible(b);
}

public static void gotoLogin()
{
self.changeTo(self.login);
}

public static void gotoHome()
{
self.home.init();
self.changeTo(self.home);
}

private void changeTo(Widget next)
{
//deck.showWidget(deck.getWidgetIndex(next));

if (current != null)
deck.remove(current);

if (next != null)
{
deck.add(next);
current = next;
}
}
}

YUY0x7

unread,
Aug 19, 2006, 9:48:40 AM8/19/06
to Google Web Toolkit
*bump*
i really need to fix this

Scott Blum

unread,
Aug 19, 2006, 12:14:13 PM8/19/06
to Google-We...@googlegroups.com
Hi YUY0x7,

I've entered a bug for this into our system. We'll reply back when we
know more.

Thanks,
Scott

YUY0x7

unread,
Aug 19, 2006, 8:11:33 PM8/19/06
to Google Web Toolkit
Ah, thanks a lot, Scott.

Btw, if this helps, I found a website where they seemed to be having
the same problem. Their solution was that they were missing a
"document.close()" call after document.write or document.innerHTML.The
site is:
http://www.webmasterworld.com/forum119/286.htm

Hope that helps.

Reply all
Reply to author
Forward
0 new messages