了解是否启用了Javascript [英] Find out if Javascript is enabled

查看:58
本文介绍了了解是否启用了Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式找出Javascript是否支持/启用浏览器中的
?通过以编程方式我的意思是在Java

servlet方面。


TIA


Alex Molochnikov

格式塔公司

Is there any way to find out programmatically if Javascript is
supported/enabled in a browser? By "programmatically" I mean on the Java
servlet side.

TIA

Alex Molochnikov
Gestalt Corporation

推荐答案

Alex Molochnikov写道:
Alex Molochnikov wrote:
有没有办法以编程方式找出Javascript是否
在浏览器中支持/启用?通过以编程方式我的意思是在Java
servlet方面。

TIA

Alex Molochnikov
格式塔公司
Is there any way to find out programmatically if Javascript is
supported/enabled in a browser? By "programmatically" I mean on the Java
servlet side.

TIA

Alex Molochnikov
Gestalt Corporation



Java与Javascript无关,所以请考虑一下: - 在你自己的
PC上,你能运行一个Algol程序来查看ADA是否正常工作吗?

课程没有。


Java has nothing to do with Javascript, so consider this:- On your own
PC, could you run an Algol program to find out if ADA was working?
Course not.


Mark,
Mark,
Java与Javascript无关


我输了多少次我向新手们提出了这个建议,他们错误地徘徊在Java NG中并询问有关Javascript的问题。但问题是关于Java servlets _discovering_ Javascript的状态。


Java servlet能够确定是否在
$上启用了cookie b $ b客户端的浏览器。浏览器还能够向servlet发送参数化的

请求,并传递任何信息。事实上,如果我的问题是关于

发现_thing_而不是Javascript,我会使用Javascript

来获取信息并将其传递给servlet。不幸的是,在这个具体的情况下,我不能这样做。

在你自己的电脑上,你可以运行一个Algol程序,看看ADA是否是
工作?当然不是。
Java has nothing to do with Javascript
I lost count how many times I gave this very advice to the newbies who
mistakenly wandered into Java NGs and asked questions about Javascript. But
the question was about Java servlets _discovering_ the status of Javascript.

Java servlets are capable of determining if cookies are enabled on the
client''s browser. The browser is also capable of sending a parameterized
request to the servlet, passing any info. In fact, if my question was about
discovering something _other_ than Javascript, I would have used Javascript
to get the info and pass it to the servlet. Unfortunately, in this
particular case, I cannot do so for the obvious reason.
On your own PC, could you run an Algol program to find out if ADA was working? Course not.




这个问题与Javascriptwork无关。这是关于在_browser_中启用或禁用的Javascript

选项,以及Java servlet

找到它。


也许,你的回答应该是:我不知道,但是你可以

只是忽略了帖子。


AM



The question was not about Javascript "working". It was about the Javascript
option being enabled or disabled in the _browser_, and the Java servlet
finding it out.

Perhaps, your answer should have been: "I don''t know", but then you could
have simply ignored the post.

AM


" Alex Molochnikov" < NO **** @ NOSPAM.COM>在消息中写道

news:wiuJd.169482
"Alex Molochnikov" <NO****@NOSPAM.COM> wrote in message
news:wiuJd.169482


这篇关于了解是否启用了Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆