-
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
-
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
-
Replies: 1
Last Post: 10-07-2005, 01:54 AM
-
By Allen Pitts in forum XML
Replies: 0
Last Post: 10-31-2002, 04:02 PM
-
Replies: 0
Last Post: 10-25-2001, 04:29 PM
-
Replies: 3
Last Post: 08-30-2001, 11:45 AM
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|