473,581 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is it possible to call vbs file with js?

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?

May 19 '06 #1
11 8915
VK

rgintexas wrote:
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). You
can use an ajaxoid to address your server side script as a regular URI
and get the execution results in response:
....
xmlhttp.open('G ET','myServerSi de.asp',true);
....

May 19 '06 #2
VK said the following on 5/19/2006 2:32 AM:
rgintexas wrote:
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).


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:


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

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 19 '06 #3
VK

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


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

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

May 19 '06 #4
VK said the following on 5/19/2006 3:33 AM:
Randy Webb wrote:
I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.


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

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


"Unreliable technology pushed by boardroom pundits"

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 19 '06 #5
VK

Randy Webb wrote:
VK said the following on 5/19/2006 3:33 AM:
Randy Webb wrote:
I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.


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

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


"Unreliable technology pushed by boardroom pundits"


Only as an acronym then: UTPbBU, otherwise no better than
"IXMLHTTPReques t/XMLHttpRequest solution" :-)

May 19 '06 #6
Randy Webb wrote:
VK said the following on 5/19/2006 3:33 AM:
Randy Webb wrote:
I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.


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

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


"Unreliable technology pushed by boardroom pundits"


Hi Randy,

You just made me very curious: Why do you call AJAX unreliable?

I've just implemented a few AJAX-based solutions at some customers, which
work 100% so far, so your remark gives me the creeps. :-/

What is wrong with AJAX at the moment?
Regards,
Erwin Moller

May 19 '06 #7
Erwin Moller said the following on 5/19/2006 8:32 AM:
Randy Webb wrote:
VK said the following on 5/19/2006 3:33 AM:
Randy Webb wrote:
I would ask you what you think an "ajaxoid" is but your explanation
might give me a headache.
"ajaxoid" is a lexical compromise between "AJAX" (so be beat down for
using "stupid bizwords") and "IXMLHTTPReques t/XMLHttpRequest solution"
(so loosing skin on my finger tips by typing it).

If you have a better variant, I'm open for proposals. :-)
"Unreliable technology pushed by boardroom pundits"


Hi Randy,

You just made me very curious: Why do you call AJAX unreliable?


Lack of wide spread support. It is gaining support in MAC browsers but
it has a long way to go before I would consider it reliable enough for
an Internet site.
I've just implemented a few AJAX-based solutions at some customers, which
work 100% so far, so your remark gives me the creeps. :-/

What is wrong with AJAX at the moment?


Lack of wide spread support mostly. Especially when a more reliable
approach works.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 19 '06 #8
Randy Webb wrote:
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.


This is slightly off the original topic: if server-side was running
JavaScript (or other language supported by both sides), scripts could be
shared between server and client (e.g. parsers, validators, HTML forms
generators, etc). Only restriction would be that shared code would not
use environment specific features, e.g. server variables or window
object. Some specific features could be abstracted, e.g. the same script
could make HTTP requests either from server or from client and parsing
responses afterwards.

Roman
May 20 '06 #9
Roman Ziak said the following on 5/20/2006 7:53 AM:
Randy Webb wrote:
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.
This is slightly off the original topic: if server-side was running
JavaScript (or other language supported by both sides), scripts could be
shared between server and client (e.g. parsers, validators, HTML forms
generators, etc).


They can share the same code text, yes. But they won't share the same
script block.
Only restriction would be that shared code would not use environment
specific features, e.g. server variables or window object.
I don't see any benefit to that kind of generic code.
Some specific features could be abstracted, e.g. the same script
could make HTTP requests either from server or from client and parsing
responses afterwards.


It wouldn't be the same script block, it may be the same script text but
you can't have a script that executes in either place. If it is marked
to execute on the server, then the client shouldn't ever see it. If it
is marked for the client, then the server won't execute it.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2844
by: NickName | last post by:
Env: SQL Server 2000 on in WIN NT 5.x Job: import mutiple flat files into several tables daily. Catch: one or two of the several flat files might be empty. First thought/test: Use option for the import process. Problem, DTS can't complete (as a package). As an alternative, I could probably detect if a file is empty then decide what to...
10
4108
by: Frances Del Rio | last post by:
I'm doing a website in which in all html files I have an SSI directive, thus: <!--#include file="nav.html"--> but if I call same file from an html file in a sub-dir in webiste, thus: <!--#include file="../nav.html"--> it won't work, I get this error:
8
2522
by: Richard Arthur | last post by:
This is a weird problem. 1) I use MediaDet to save a bitmap in a temporary file. 2) I create a bitmap using that temporary file's name. 3) I use the bitmap. 4) I want to destroy the file when the process exits, but I am having trouble I have written a Finalizer on the object that actually generates the bitmaps, as well as implementing...
4
1444
by: Tony Cheng | last post by:
I want to know which account will be used when File.Exists are called in ASP.NET ? Thx
9
4312
by: Dino Buljubasic | last post by:
If I want to delete a file I can call File.Delete(filePath) but what happens if I am trying to delete the file that is open??? In java you would do someting like int status = fileExists(filePath) // return 0, 1, or 2 2 means file exists and it si open but VB returns boolean value telling file exist or not
5
10704
by: veg_all | last post by:
I have a script where a user can upload their csv file into a mysql database. The problem is sometimes a user will upload the raw excel or access file. How can I perform some simple checks to determine if the file is binary. I could do some regular expressions to check for unusual characters, but how would I read the file line by line?
0
1113
by: hastha23 | last post by:
Dear Friends, My oracle Version is 10g. I calling a function from sql select same time function body contain DML statement,that time is possible call function from sql? and again one, same function containing DML statement call other function or procedures is possible call other functions or procedures ?
8
2607
by: zaheer031 | last post by:
I am using the following code typedef struct A { int x; int y; int z; }; int main(void) {
0
1776
by: z1freeride | last post by:
My boss doesn't want me to install any kind of log analyzer (awstats) on our server. Is there anyway to transfer the logs to my local computer and run it through an analyzer? Are there any programs that do that? Thank you
0
7857
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8299
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8163
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6545
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3799
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1397
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.