由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 问一下关于load image的servlet
相关主题
JAVA 面世题.哎,现在client-side,server-side都要我来写。
How to read/load a .tif image?纯ajax网站和sevlet优劣是啥
Gif animation stops when clicking a link.疯了!J2EE应该到哪里找工作?
Eclipse load更改过的class file的问题请问Java阵营最新潮的web development stack是什么?
JSP tag file and EL warnings求推荐Java developer summer intern position
How to invalidate a session?Re: [转载] create gif/png image in C or ja
组里招java程序员jsp里,大家的submit button,是指向一个servlet,还是一个javascript function?
play有啥好处?Re: how to dynamically load a tooltip
相关话题的讨论汇总
话题: image话题: load话题: servlet话题: ajax话题: javascript
进入Java版参与讨论
1 (共1页)
S*******t
发帖数: 97
1
我有个servlet专门load image.不过通常这些image
都很大。我不希望用户一直等。如何在load image
的时候在页面上显示loading。。。然后load完了
以后直接转成image? thanks.
g*****g
发帖数: 34805
2
Simple one is to have a hidden div with this "loading",
and you show this div immediately after you click the load button
in javascript. Then when the request returns, the page will
be refreshed to show the image.
For better user experience, you have to go with AJAX.

【在 S*******t 的大作中提到】
: 我有个servlet专门load image.不过通常这些image
: 都很大。我不希望用户一直等。如何在load image
: 的时候在页面上显示loading。。。然后load完了
: 以后直接转成image? thanks.

S*******t
发帖数: 97
3
能给一下有关AJAX这方面的link吗?
倒是写过一些AJAX authentication的东西

【在 g*****g 的大作中提到】
: Simple one is to have a hidden div with this "loading",
: and you show this div immediately after you click the load button
: in javascript. Then when the request returns, the page will
: be refreshed to show the image.
: For better user experience, you have to go with AJAX.

b****u
发帖数: 1027
4
just use a animated gif
S*******t
发帖数: 97
5
how to switch to the real image after
say 5 seconds when it is done?
Can you show me an example javascript?

【在 b****u 的大作中提到】
: just use a animated gif
A**o
发帖数: 1550
6
google: javascript setTimeout() and setInterval()

【在 S*******t 的大作中提到】
: how to switch to the real image after
: say 5 seconds when it is done?
: Can you show me an example javascript?

1 (共1页)
进入Java版参与讨论
相关主题
Re: how to dynamically load a tooltipJSP tag file and EL warnings
Re: Help!: tomcat classloading problemHow to invalidate a session?
超级菜鸟问题:什末时候load class组里招java程序员
How can I organize Projects in Eclipseplay有啥好处?
JAVA 面世题.哎,现在client-side,server-side都要我来写。
How to read/load a .tif image?纯ajax网站和sevlet优劣是啥
Gif animation stops when clicking a link.疯了!J2EE应该到哪里找工作?
Eclipse load更改过的class file的问题请问Java阵营最新潮的web development stack是什么?
相关话题的讨论汇总
话题: image话题: load话题: servlet话题: ajax话题: javascript