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 | | 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.
|
|