Re: is it possible to call vbs file with js?
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Sat, 20 May 2006 13:27:30 -0400
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.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- Follow-Ups:
- Re: is it possible to call vbs file with js?
- From: Roman Ziak
- Re: is it possible to call vbs file with js?
- References:
- is it possible to call vbs file with js?
- From: rgintexas
- Re: is it possible to call vbs file with js?
- From: VK
- Re: is it possible to call vbs file with js?
- From: Randy Webb
- Re: is it possible to call vbs file with js?
- From: Roman Ziak
- is it possible to call vbs file with js?
- Prev by Date: Re: indices into an array
- Next by Date: Re: indices into an array
- Previous by thread: Re: is it possible to call vbs file with js?
- Next by thread: Re: is it possible to call vbs file with js?
- Index(es):
Relevant Pages
|