Hi,
I found this site quite useful for generating the images and general
ideas for kinds of loaders.
http://www.ajaxload.info/
Anyway - since you are using GWT you might as well do it the GWT way
rather than writing native javascript.
So for example in the clickhandler method on a button that initiates
the loading image, I add a loading image to a panel and then remove it
once I've made the RPC call which will contain the results.
blastBtn.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent sender){
blastBtn.setEnabled(false);
// Add Image here.
Image blastLoading = new
Image("IMAGES/blue-loader.gif");
setWidget(rowcount, 4, blastLoading);
// Do some stuff
//replace the widget in that cell.
Hope that makes sense.
On Oct 20, 8:19 am, Manfred <[email protected]> wrote:
> Hi!
>
> I want to display an animated gif, while my programm loads differnt
> things from the database. I have looked around and found a java-script
> (http://www.reconn.us/content/view/37/47/), but it does not work for
> me!
>
> Can anyone help me?
>
> Thanks
> Manfred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---