how to display Loading message or loading image like Gmail ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to display Loading message or loading image like Gmail ?

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    how to display Loading message or loading image like Gmail ?

    Hi all,
    I am new to ajax.I would like to know how to display loading message or loading image like gmail in jsp?Any help will be highly appreciated.


    Thanks a million.

    Asif

  2. #2
    Join Date
    Apr 2007
    Location
    Sunny Adelaide
    Posts
    13
    Hi Asif,

    Are you sure you mean JSP? 'JSP' stands for Java Server Pages, which is a server-side technology.

    If you mean loading indicators in JavaScript (like GMail), check out these two pages for AJAX Activity Indicators:
    http://napyfab.com/ajax-indicators/
    http://mentalized.net/activity-indicators/

    You can use document.createElement() to make an img element, and appendChild() to add it to an existing DOM element.

    Code:
    var img = document.createElement('img');
    img.src = 'images/loading.gif';
    myelement.appendChild(img);
    Use some CSS to position the image.

    Regards,

    - P
    Brevitywit

Similar Threads

  1. Replies: 1
    Last Post: 10-07-2005, 01:54 AM
  2. Display XML element attributes in CSS or XSL
    By Allen Pitts in forum XML
    Replies: 0
    Last Post: 10-31-2002, 03:02 PM
  3. Replies: 0
    Last Post: 10-25-2001, 04:29 PM
  4. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  5. "Please wait...program loading.." message
    By Abdel K. Belkasri in forum ASP.NET
    Replies: 4
    Last Post: 06-16-2000, 08:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center