是否可以用js调用vbs文件? [英] is it possible to call vbs file with js?

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

问题描述

我正在尝试让服务器端的vbscript在firefox中执行:


< / script>

< script type ="文本/ VBScript的" src =" VBFile.vbs">

< / script>


有什么方法可以用javascript来调用vbs文件,或者有没有

任何其他方法让服务器端vbscript在
firefox中执行?

i''m trying to get server side vbscript to execute in firefox:

</script>
<script type="text/VBScript" src="VBFile.vbs">
</script>

is there any way i can use javascript to call the vbs file, or is there
any other method for getting server side vbscript to execute within
firefox?

推荐答案



rgintexas写道:

rgintexas wrote:
我试图让服务器端的vbscript在firefox中执行:

< / script>
< script type =" text / VBScript" src =" VBFile.vbs">
< / script>

有什么办法我可以使用javascript来调用vbs文件,或者是否
任何其他获取服务器端vbscript在firefox中执行的方法?
i''m trying to get server side vbscript to execute in firefox:

</script>
<script type="text/VBScript" src="VBFile.vbs">
</script>

is there any way i can use javascript to call the vbs file, or is there
any other method for getting server side vbscript to execute within
firefox?




Firefox不支持VBScript(也不支持IE以外的任何其他浏览器)。你

可以使用ajaxoid作为常规URI来解决你的服务器端脚本

并获得执行结果作为回应:

... 。

xmlhttp.open(''GET'',''myServerSide.asp'',true);

....



Firefox doesn''t support VBScript (nor any other browser except IE). You
can use an ajaxoid to address your server side script as a regular URI
and get the execution results in response:
....
xmlhttp.open(''GET'',''myServerSide.asp'',true);
....


VK在2006年5月19日上午2:32发表以下内容:
VK said the following on 5/19/2006 2:32 AM:
rgintexas写道:
rgintexas wrote:
我正在尝试让服务器端vbscript在firefox中执行:

< / script>
< script type =" text / VBScript" src =" VBFile.vbs">
< / script>

有什么办法我可以使用javascript来调用vbs文件,或者是否
任何其他让服务器端vbscript在firefox中执行的方法?
Firefox不支持VBScript(除IE之外的任何其他浏览器)。
i''m trying to get server side vbscript to execute in firefox:

</script>
<script type="text/VBScript" src="VBFile.vbs">
</script>

is there any way i can use javascript to call the vbs file, or is there
any other method for getting server side vbscript to execute within
firefox?
Firefox doesn''t support VBScript (nor any other browser except IE).




你错过了问题的重要部分。 获取服务器

在Firefox中执行的脚本脚本答案很简单。

服务器端代码将永远不会在浏览器中执行。没关系

它是什么语言。


如果VBFile.vbs生成JS代码,你可以简单地将type属性更改为

text / javascript


< script type =" text / javascript" src =" VBFile.vbs">

您可以使用ajaxoid将服务器端脚本作为常规URI来解决,并获取执行结果作为响应:



You missed the important part of the question though. "getting server
side script to execute in firefox" and the answer is quite simple.
Server side code will *never* execute in the browser. It doesn''t matter
what language it is.

If VBFile.vbs generates JS code, you simple change the type attribute to
text/javascript:

<script type="text/javascript" src="VBFile.vbs">
You can use an ajaxoid to address your server side script as a regular URI
and get the execution results in response:




我会问你的想法是什么?ajaxoid是你的解释

可能让我头疼。


-

兰迪

comp .lang.javascript常见问题解答 - http://jibbering.com/faq &新闻组每周

Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /



I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/




Randy Webb写道:

Randy Webb wrote:
我会问你是什么认为ajaxoid但是你的解释可能会让我头疼。
I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.




" ajaxoid"是AJAX之间的词汇折衷。 (因此请使用愚蠢的商业词汇和IXMLHTTPRequest / XMLHttpRequest解决方案来敲打

)b $ b(通过输入我的指尖上的皮肤松弛)。


如果你有更好的变体,我愿意接受建议。 :-)



"ajaxoid" is a lexical compromise between "AJAX" (so be beat down for
using "stupid bizwords") and "IXMLHTTPRequest/XMLHttpRequest solution"
(so loosing skin on my finger tips by typing it).

If you have a better variant, I''m open for proposals. :-)


这篇关于是否可以用js调用vbs文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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