使用JQuery执行客户端可执行文件 [英] Execute a Client side executable using JQuery

查看:88
本文介绍了使用JQuery执行客户端可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阅读注册表并在客户端从服务器运行可执行文件。有没有办法实现这个???



我有服务器端内容管理在每个客户端的浏览器中运行PHP的应用程序。当它在客户端上运行时从同一个浏览器,我想直接从浏览器启动我们的应用程序。







先谢谢

I want to read registry and run an executable on client side from server.Is there a way of achieving this ???

I have Server side content management application running on PHP in a browser of every client.From the same browser when it runs on client, I want launch our application directly from browser.



Thanks in Advance

推荐答案

简短回答是:你做不到。 Web应用程序无法访问客户端系统,并且不允许通过明显的安全原因来执行此类操作。而且你不应该这样做。



浏览器中有一个通过JavaScript使用的脏处理ActiveX控件。我最好的建议是:永远不要这样。无论如何,所有浏览器和系统都不支持ActiveX使用。更重要的是,它会打破我上面提到的安全功能。实际上,许多精通计算机的用户如果得知您使用了这些肮脏的技巧,就永远不会使用您的网站。这意味着你忽略了非常基本的安全考虑。



-SA
Short answer is: you cannot. Web applications don't have access to client-side system and are not allowed to do such things, by obvious security reasons. And you should not do it.

There is one dirty work-around, ActiveX control used in browser via JavaScript. My best advice would be: never go this way. Anyway, ActiveX use is not supported by all browsers and systems. More importantly, it would break security feature which I mentioned above. Actually, many computer-savvy users will never use your site if they learn that you use such dirty tricks. It would mean that you ignore very basic security considerations.

—SA


这是解决方案..



我正在做的是当我点击启动应用程序时,我在服务器上的数据库中设置了一个标志和IP。



在客户端运行的进程线程。它不断检查数据库表的标志,如果标志设置为true则启动应用程序,然后删除表中的条目。所以用户实际上可以多次启动。
Here is the solution..

What I am doing is when I click to launch an application , am setting a flag and IP in the DB residing on the server.

A process thread running in the client.It continuously checks the DB table for flag and launches the application if the flag is set to true and then also deletes the entry in the table.So that the user can actually launch the multiple times.


这就是我所解释的。我们为客户开发了一个应用程序。它是一个内联网网络,因此排除了恶意。现在我们已经为客户开发了内容管理解决方案,在内容创建结束时,用户应该启动dekstop应用程序。



现在我已经非常安全地解决了它。最后,用户将在表中创建数据库条目,在客户端上运行的进程将检查数据库条目并自动启动客户端应用程序。



问题解决安全地使用干净整洁的方法。



正如我所说,没有Active X ..我们正在通过数据库标志和进程线程处理它。它是一个内部网,其中两个浏览器,正在推出的应用程序是我们根据客户的要求设计的.Thankyou ...所有的宝贵意见...



任何人都想知道我可以分享更多信息。
Thats what I have explained.We have developed an application for a client.Its an intranet network so the malicious intent is ruled out. Now we have developed content management solution for the client and at the end of content creation user is supposed to launch a dekstop application.

Now I have solved it myself very safely. At the end of it user will create a DB entry in a table and process running on client would check for the DB entry and automatically launches the client application.

Problem solved safely in a neat and clean method.

As I said there no Active X..we are handling it through database flag and process thread.Its a intranet where both the browser , application being launched are designed by us as per the requirement of the customer.Thankyou...all for your valuable inputs...

anyone wants to know i can share more info on this.


这篇关于使用JQuery执行客户端可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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