How to display a message while your GWT app loads

The Problem

When a GWT application loads, nothing is actually displayed by your application until all the generated JavaScript has been downloaded by the browser. I was looking for way to display a loading screen while my GWT application was loading, and then remove it once the GWT application is loaded.

The Solution

Since every GWT application has to be embedded in an HTML Host Page, an easy way to display a loading message is to place the loading message in a
in the HTML Host Page. Once all the GWT application JavaScript is done loading, we can have the GWT application remove the loading message by doing some DOM manipulation on the HTML Host Page.

Here is a sample HTML Host Page. The loading message, along with a loading animation image is contained in a
named “Loading-Message”.

   1: <html>
   2:  
   3: <head>
   4:   <title>GWT Applicationtitle>
   5:   <link rel="stylesheet" href="style.css">
   6: head>
   7:  
   8: <body>
   9:  
  10: <script type="text/javascript" language="javascript" src="gwtapp.nocache.js">script>
  11:  
  12:   <h2>GWT Applicationh2>
  13:  
  14:   
  15:   <div id="Loading-Message">
  16:     <img src="loading-animation.gif"  alt="loading"> Loading GWT Application, please wait... 
  17:   div>
  18:  
  19:   
  20:   
  21:   <div id="GWT-Application-Panel">
  22:   div>
  23:  
  24: body>
  25:  
  26: html>


The “Loading-Message” can be removed from the HTML Host Page using the following line of Java Code:

DOM.setInnerHTML(RootPanel.get("Loading-Message").getElement(), "");

Where would you put this line of code? You can put it anywhere in your GWT application. However, a good place to put it would be in your GWT application EntryPoint class’s onModuleLoad method. You can place it either before or after your application loads the UI elements. Here is an example onModuleLoad
method:
   1: public void onModuleLoad() {
   2:   // Remove the loading message
   3:   DOM.setInnerHTML(RootPanel.get(“Loading-Message”).getElement(), “”);
   4:  
   5:   // Get the Application Container div from the DOM
   6:   mainPanel = RootPanel.get(“GWT-Application_Panel”);
   7:   
   8:   // Add GWT UI components
   9:   addWidgetsTo(mainPanel);
  10: }

Now start using gmail when you are offline

Web-based email is great because you can check it from any computer, but there's one little catch: it's inherently limited by your internet connection. From public WiFi to smartphones equipped with 3G, from mobile broadband cards to fledgling in-flight wireless on airplanes, Internet access is becoming more and more ubiquitous -- but there are still times when you can't access your webmail because of an unreliable or unavailable connection.

Today we're starting to roll out an experimental feature in Gmail Labs that should help fill in those gaps: offline Gmail. So even if you're offline, you can open your web browser, go to gmail.com, and get to your mail just like you're used to.

Once you turn on this feature, Gmail uses Gears to download a local cache of your mail. As long as you're connected to the network, that cache is synchronized with Gmail's servers. When you lose your connection, Gmail automatically switches to offline mode, and uses the data stored on your computer's hard drive instead of the information sent across the network. You can read messages, star and label them, and do all of the things you're used to doing while reading your webmail online. Any messages you send while offline will be placed in your outbox and automatically sent the next time Gmail detects a connection. And if you're on an unreliable or slow connection (like when you're "borrowing" your neighbor's wireless), you can choose to use "flaky connection mode," which is somewhere in between: it uses the local cache as if you were disconnected, but still synchronizes your mail with the server in the background. Our goal is to provide nearly the same browser-based Gmail experience whether you're using the data cached on your computer or talking directly to the server.




Offline Gmail is still an early experimental feature, so don't be surprised if you run into some kinks that haven't been completely ironed out yet. We've been using offline Gmail internally at Google for quite a while (I've read thousands of messages and answered hundreds en route to visit my son and my daughter). And it's saved me more than once when my home network connection ran into issues (we have squirrels at home that love to chew through outside cable wires). Now we're ready to have a larger set of people try it out, so we're making it available in Gmail Labs for those of you who want to test out Gmail's latest and greatest and send us your feedback.

We're making offline Gmail available to everyone who uses Gmail in US or UK English over the next couple of days, so if you don't see it under the Labs tab
yet, it should be there soon. Once you see it, just follow these steps to get started:
  1. Click Settings and click the Labs tab.
  2. Select Enable next to Offline Gmail.
  3. Click Save Changes.
  4. After your browser reloads, you'll see a new "Offline0.1" link in the upper righthand corner of your account, next to your username. Click this link to start the offline set up process and download Gears if you don't already have it.

Watch video's in Gmail Chat box

See this new feature from Google Gmail Team.Now you can see the videos in your chat box when u pass some video links of youtube as well as google videos.

If you receive (or send) a link to a video in a chat message, you'll see a preview of the video right in your chat window.



Click the preview, and the video will play right there. Just remember to say something every once in a while or your friends will probably catch on that you're enjoying the dramatic chipmunk more than their conversation...

MySpace Layouts, Designs and Backgrounds are the Internet's hottest trend

Premade MySpace layouts are an exceptional way to tune your profile. If you are looking to put up a little area of your own on the network, then possibly you may desire to consider MySpace. As these layouts are wonderful resources to have fun with our own personal profile. These templates will be able to customize in numerous dissimilar ways to turn out millions of different MySpace web pages. There are also MySpace code layout generators moreover basic templates for those who like to have a hand in customizing their individual layouts. You can Show off your MySpace Layouts and showcase your innovative skills.

A person in MySpace is better known by his or her MySpace layout. You can make your own brand and get self recognition. These MySpace layouts catch the attention of new people to your space and boost your network. And may tend improve your friends to the MySpace Pimp Level. These layouts are what make your profile exclusive. And these layouts will always have a heading where you can add all the titles about yourself. It can also help you in getting business proposals and you can also get huge traffic for your website from MySpace.

Myspace Layouts are used to customize MySpace profiles as well as blogs. These layouts are very easy to set up as they are custom designs and they help you to resemble ones character, hobby or personality. Myspace Layouts with backgrounds are capable of cover a whole array of themes. There are various websites out there that want you to prefer from one of their many thousands of MySpace backgrounds. MySpace flash layouts comprise flash animation with functionalities like div layouts. You can make a collection of logos and ad-graphics and offer to the designer for customizing the MySpace layout.

Magic Trick With Google

Here’s a magic trick to surprise friends with; go to the flash-based fake Google homepage by Dark Arts Media. Ask someone casually to watch the Google logo; don’t announce you’re about to perform a magic trick. Now click anywhere on the page while pointing at the logo with the other hand, and then move two of your fingers to completely cover the the “o"s in the Google logo. When you remove the fingers, hopefully to much surprise, the letters “o” will be missing from the logo.

Now ask the visitor to move her fingers over the missing “o"s, and click on the page again. After your friend removes the fingers, the logo will be complete again.

The trick here? Whenever you click on the page, the letters will disappear after five seconds. Clicking again will make them reappear after five seconds. (A third click, by the way, will change the page to an actual Google homepage so you can perform searches then.) If you successfully perform this trick, let us know!