检测启用JS /能力的浏览器 [英] Detecting JS enabled/capable browser

查看:64
本文介绍了检测启用JS /能力的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个收集Web应用程序使用统计信息的项目。什么

是推荐的方法来检测浏览器是否是启用了j / b
和/或能力?显然我可以编写一个脚本来调用服务器上的某些内容,如果它有效,那么它可以工作。有没有更好的办法?我是

从网络应用程序中寻找最不具侵入性的方式

的观点。即我希望能够将其放入现有的

应用程序中,而无需更改任何已存在的内容。如果

只有一个JavaScript-Enabled,那就太好了。 HTTP标题。

I''m working on a project to collect web application usage statistics. What
are the recommended ways of detecting whether a browser is JavaScript
enabled and/or capable? Obviously I can write a script to invoke something
on the server, and if it works, then it works. Is there a better way? I''m
looking for the least intrusive way of doing it, from a web application
point of view. i.e. I''d like to be able to drop this into an existing
application without altering anything already there. It would be nice if
there were just a "JavaScript-Enabled" HTTP header.

推荐答案

2004年12月24日星期五14:04:23 -0600,Ryan Stewart

< zz ******** @ gSPAMo.com>写道:
On Fri, 24 Dec 2004 14:04:23 -0600, "Ryan Stewart"
<zz********@gSPAMo.com> wrote:
我正在开发一个收集Web应用程序使用统计信息的项目。什么是建议的方法来检测浏览器是否启用了JavaScript和/或能够使用?显然我可以编写一个脚本来调用服务器上的东西
,如果它有效,那么它可以工作。有没有更好的办法?从网络应用程序的角度来看,我正在寻找最不具侵入性的方法。即,我希望能够将其放入现有的
应用程序中,而无需更改已存在的任何内容。如果
只有一个启用JavaScript的话会很好。 HTTP标题。
I''m working on a project to collect web application usage statistics. What
are the recommended ways of detecting whether a browser is JavaScript
enabled and/or capable? Obviously I can write a script to invoke something
on the server, and if it works, then it works. Is there a better way? I''m
looking for the least intrusive way of doing it, from a web application
point of view. i.e. I''d like to be able to drop this into an existing
application without altering anything already there. It would be nice if
there were just a "JavaScript-Enabled" HTTP header.




启用的总统计javascript几乎完全没有意义

要收集的东西,因为它告诉你关于脚本的能力如何

引擎是,NN2有脚本支持,你真的想知道它是否启用了b $ b脚本?你的应用程序是否适用它?


Jim。



The gross statistic javascript enabled is almost completely pointless
thing to collect, as it tells you nothing about how capable the script
engine is, NN2 had script support, do you really want to know if it''s
script enabled? Does your application work with it?

Jim.


" Jim Ley" < ji*@jibbering.com>在消息中写道

news:41 ************** @ news.individual.net ...
"Jim Ley" <ji*@jibbering.com> wrote in message
news:41**************@news.individual.net...
12月24日星期五2004 14:04:23 -0600,Ryan Stewart
< zz ******** @ gSPAMo.com>写道:
On Fri, 24 Dec 2004 14:04:23 -0600, "Ryan Stewart"
<zz********@gSPAMo.com> wrote:
我正在开发一个收集Web应用程序使用统计信息的项目。什么是建议的方法来检测浏览器是否启用了JavaScript和/或能够使用?显然我可以编写一个脚本来调用服务器上的东西
,如果它有效,那么它可以工作。有没有更好的办法?从网络应用程序的角度来看,我正在寻找最不具侵入性的方法。即,我希望能够将其放入现有的
应用程序中,而无需更改已存在的任何内容。如果
只有一个启用JavaScript的话会很好。 HTTP标题。
I''m working on a project to collect web application usage statistics. What
are the recommended ways of detecting whether a browser is JavaScript
enabled and/or capable? Obviously I can write a script to invoke something
on the server, and if it works, then it works. Is there a better way? I''m
looking for the least intrusive way of doing it, from a web application
point of view. i.e. I''d like to be able to drop this into an existing
application without altering anything already there. It would be nice if
there were just a "JavaScript-Enabled" HTTP header.



启用的统计javascript几乎完全没有意义收集,因为它没有告诉你脚本
引擎的功能,NN2有脚本支持,你真的想知道它是否启用了脚本?你的应用程序是否适用它?



The gross statistic javascript enabled is almost completely pointless
thing to collect, as it tells you nothing about how capable the script
engine is, NN2 had script support, do you really want to know if it''s
script enabled? Does your application work with it?



这也是我收集浏览器统计数据的原因,除了许多其他的b
之外。 JavaScript部分是与此新闻组相关的唯一部分。

你知道怎么做吗?


That''s why I''m collecting browser statistics, too, in addition to many other
things. The JavaScript portion is the only part related to this newsgroup.
Do you know how to do it or not?


一小块js在客户端上创建图像并将其

源设置为您选择的URL? (将记录的信息与您的其他

浏览器统计信息进行匹配)


如果这是针对涉及登录的应用程序,则可选择

可以在登录页面上有一些js填充隐藏的表单元素

(然后希望用户在使用

应用程序时不启用/禁用.... )


既不区分js-incapable和js-disabled ....


Tim。

瑞安斯图尔特 < ZZ ******** @ gSPAMo.com>在留言中写道

news:kf ******************** @ texas.net ...
A small piece of js on the client to create an image and set its
source to a url of your choice? (Match up logged info with your other
browser stats)

If this is for an application involving login then alternatively you
could have some js on the login page populate a hidden form element
(and then hope the user doesn''t enable/disable while using the
application....)

Neither distinguish between js-incapable and js-disabled though....

Tim.
"Ryan Stewart" <zz********@gSPAMo.com> wrote in message
news:kf********************@texas.net...
I我正在开发一个收集Web应用程序使用情况的项目统计数据。检测
浏览器是否支持JavaScript和/或能力的推荐方法是什么?显然我可以写一个脚本来调用服务器上的东西,如果它有效,那么它就可以工作了。有没有更好的办法?从Web应用程序的角度来看,我正在寻找最不具侵入性的方法。即,我希望
能够将其放入现有的应用程序中,而无需改变已存在的任何内容。如果只有一个启用JavaScript的话会很好。 HTTP标头。
I''m working on a project to collect web application usage
statistics. What are the recommended ways of detecting whether a
browser is JavaScript enabled and/or capable? Obviously I can write
a script to invoke something on the server, and if it works, then it
works. Is there a better way? I''m looking for the least intrusive
way of doing it, from a web application point of view. i.e. I''d like
to be able to drop this into an existing application without
altering anything already there. It would be nice if there were just
a "JavaScript-Enabled" HTTP header.



这篇关于检测启用JS /能力的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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