Re: is it possible to call vbs file with js?
- From: Roman Ziak <news12@xxxxxxxx>
- Date: Wed, 24 May 2006 19:37:26 -0400
Randy Webb wrote:
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.
Example: server side script "prints" HTML into the network stream,
client side script "prints" the HTML into the document object. One could
abstract the "print()" function and use the same script to render
widgets in browser *or* on the server if browser does not run JS.
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.
That's right, cannot be the same block and client will not see the block
marked for the server. However, both blocks can include same external JS
file.
.
- 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
- Re: is it possible to call vbs file with js?
- From: Randy Webb
- is it possible to call vbs file with js?
- Prev by Date: Re: Problem with Setting the "src" of an "img" using javascript
- Next by Date: Re: AJAX hits being cached??
- Previous by thread: Re: is it possible to call vbs file with js?
- Next by thread: upload file with iframe - please help
- Index(es):
Relevant Pages
|