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
Printable View
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.
Use some CSS to position the image.Code:var img = document.createElement('img');
img.src = 'images/loading.gif';
myelement.appendChild(img);
Regards,
- P