由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - javascript question
相关主题
[合集] pure javascript solution for carrying values to another pagProblem on ANT,JAVA,JSP,JSPPrecompiler
jsp里,大家的submit button,是指向一个servlet,还是一个javascript function?Re: Problem on ANT,JAVA,JSP,JSPPrecompil
please help: pass values to jsp from jshow to make file search case insensitive by default in Ecli
J2EE: why is my .jsp not refreshed?如何去掉编译Java代码的汉字提示,回到英文提示
compiling problem怎么样的面试问题算刁钻?
实实在在受不了了,还是来这里求教!对 spring 的 exception 处理方式真是不适应
Eclipse 3.1.1.1在ubuntu710下古怪现象Eclipse的文件搜索
classpath含一个jar file,但是cannot resolve symbol今天笔试时候有一两个地方没答上来,有些不爽
相关话题的讨论汇总
话题: javascript话题: checkbox话题: request话题: checked话题: question
进入Java版参与讨论
1 (共1页)
m****r
发帖数: 6639
1
hi,
i need a checkbox, when checked, the page looks one way, when unchecked, the
page looks another way.
any sample code for this kind of thing?
3x
c**g
发帖数: 274
2
google: javascript checkbox onclick

【在 m****r 的大作中提到】
: hi,
: i need a checkbox, when checked, the page looks one way, when unchecked, the
: page looks another way.
: any sample code for this kind of thing?
: 3x

c*y
发帖数: 137
3
For example, if you want to display an alert window when a checkbox is
checked,


【在 m****r 的大作中提到】
: hi,
: i need a checkbox, when checked, the page looks one way, when unchecked, the
: page looks another way.
: any sample code for this kind of thing?
: 3x

w******t
发帖数: 1422
4
well, not exact - but, is there a way at server side to check if client
browser has javascript enabled/disabled - such as check it in jsp etc
thanks
o***e
发帖数: 30
5
not impossible, but it's normally checked on client side.

【在 w******t 的大作中提到】
: well, not exact - but, is there a way at server side to check if client
: browser has javascript enabled/disabled - such as check it in jsp etc
: thanks

g*s
发帖数: 2277
6
得第二次REQUEST才能知道吧?放个HIDDEN变量用JAVASCRIPT改,再REQUEST应该
就可以知道了,用AUTO-REFRESH可以让用户觉得就一次REQUEST.

【在 w******t 的大作中提到】
: well, not exact - but, is there a way at server side to check if client
: browser has javascript enabled/disabled - such as check it in jsp etc
: thanks

m******t
发帖数: 2416
7
Hmm, I didn't think it through so take my words with some salt - you
can probably do it in the first request. Just have a piece of javascript
setting an image url. If this image url is requested, the javascript
worked, otherwise not.
That said, I don't see much the server side can do with the first
request even after it has determined the client javascript availability.

【在 g*s 的大作中提到】
: 得第二次REQUEST才能知道吧?放个HIDDEN变量用JAVASCRIPT改,再REQUEST应该
: 就可以知道了,用AUTO-REFRESH可以让用户觉得就一次REQUEST.

o***e
发帖数: 30
8
that image is a second request.

【在 m******t 的大作中提到】
: Hmm, I didn't think it through so take my words with some salt - you
: can probably do it in the first request. Just have a piece of javascript
: setting an image url. If this image url is requested, the javascript
: worked, otherwise not.
: That said, I don't see much the server side can do with the first
: request even after it has determined the client javascript availability.

m******t
发帖数: 2416
9

Yes, but you don't need to refresh the whole page. That's what counts -
from a user experience standpoint, at least.

【在 o***e 的大作中提到】
: that image is a second request.
1 (共1页)
进入Java版参与讨论
相关主题
今天笔试时候有一两个地方没答上来,有些不爽compiling problem
请教:使用javascript制作online database的方法实实在在受不了了,还是来这里求教!
Re: JDBC, Java vs. JavascriptEclipse 3.1.1.1在ubuntu710下古怪现象
[转载] Question 1: refresh view of database?classpath含一个jar file,但是cannot resolve symbol
[合集] pure javascript solution for carrying values to another pagProblem on ANT,JAVA,JSP,JSPPrecompiler
jsp里,大家的submit button,是指向一个servlet,还是一个javascript function?Re: Problem on ANT,JAVA,JSP,JSPPrecompil
please help: pass values to jsp from jshow to make file search case insensitive by default in Ecli
J2EE: why is my .jsp not refreshed?如何去掉编译Java代码的汉字提示,回到英文提示
相关话题的讨论汇总
话题: javascript话题: checkbox话题: request话题: checked话题: question