473,395 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

web server exe and js

Please forgive me if this question is not readable for you. I
definitely want to get in-depth on this. I am in front of a web
application. On the server side, it has the main exe under
http://virtualdir/bin, and other javascript files under c:/virtualdir.
They all work for the same web link. One scenario is, on client side,
user accesses the link, click on one button, such button is processed
thru the javascripts, and then some native commands are executed. I
think such command execution got processed by the main exe mentioned
above. I want to know how the javascript communicats with that main
exe.. Any examples, high-level architecture illustration, any valuable
reference web link will be highly appreciated. ...........i googled on
some of that topic......i guess the exe itself could be written in
java also...and it can have some way to invoke some prepared jar files
to execute the native command (which can be manually executed on dos
command line).

regards.
Thanks in advance.

Richmond
Jul 23 '05 #1
4 1793
richmond wrote:
Please forgive me if this question is not readable for you. I
definitely want to get in-depth on this. I am in front of a web
application. On the server side, it has the main exe under
http://virtualdir/bin, and other javascript files under c:/virtualdir.
They all work for the same web link.
The structure and location of the server-side resources is irrelevant as
long as they are reachable on the Web server using http://
One scenario is, on client side,
user accesses the link, click on one button, such button is processed
thru the javascripts, and then some native commands are executed. I
think such command execution got processed by the main exe mentioned
above. I want to know how the javascript communicats with that main
exe..
There are a couple of ways for client-side JavaScript to communicate with
a server-side resource:

1) the client-side JavaScript can request the resource via a GET, passing
the values to the server in the form of a query string, using
top.frames['someHiddenFrame'].location.href = 'page.cgi?variable=value';
or (new Image()).src = 'page.cgi?variable=value'; This type of activity is
fairly well supported in version 4+ browsers (Netscape 4+, IE 4+, etc).
The downside to this approach is it can be difficult to retrieve
information returned by the server in response to the initial client-side
GET <url: http://jibbering.com/faq/#FAQ4_34 />

2) the client-side JavaScript can use the HTTPRequest object to perform
direct GET or POST requests. This is only supported in relatively modern
browsers, but it can make retrieving data returned by the server much
easier. Documentation on using the HTTPRequest object at <url:
http://jibbering.com/2002/4/httprequest.html />
Any examples, high-level architecture illustration, any valuable
reference web link will be highly appreciated. ...........i googled on
some of that topic......i guess the exe itself could be written in
java also...and it can have some way to invoke some prepared jar files
to execute the native command (which can be manually executed on dos
command line).


It does not matter what technology is used to create the server-side
resource. If you are using client-side JavaScript, you are interacting
with it as an HTTP resource. As far as the browser is concerned, it is
"just another Web page".

I hope that provides the information you were looking for.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
Thanks a lot for your reply.

The application in front of me does use a web.exe to bring up the
central page.
How does this web.exe communicate with the javascripts?
Could you please give some examples of different implementations on
that?
Could that web.exe be compiled from java sources?

I do know that web.exe receiving some parameters from the javascripts
and then running some command line utilities.

Thanks

Grant Wagner <gw*****@agricoreunited.com> wrote in message news:<41**************@agricoreunited.com>...
richmond wrote:
Please forgive me if this question is not readable for you. I
definitely want to get in-depth on this. I am in front of a web
application. On the server side, it has the main exe under
http://virtualdir/bin, and other javascript files under c:/virtualdir.
They all work for the same web link.


The structure and location of the server-side resources is irrelevant as
long as they are reachable on the Web server using http://
One scenario is, on client side,
user accesses the link, click on one button, such button is processed
thru the javascripts, and then some native commands are executed. I
think such command execution got processed by the main exe mentioned
above. I want to know how the javascript communicats with that main
exe..


There are a couple of ways for client-side JavaScript to communicate with
a server-side resource:

1) the client-side JavaScript can request the resource via a GET, passing
the values to the server in the form of a query string, using
top.frames['someHiddenFrame'].location.href = 'page.cgi?variable=value';
or (new Image()).src = 'page.cgi?variable=value'; This type of activity is
fairly well supported in version 4+ browsers (Netscape 4+, IE 4+, etc).
The downside to this approach is it can be difficult to retrieve
information returned by the server in response to the initial client-side
GET <url: http://jibbering.com/faq/#FAQ4_34 />

2) the client-side JavaScript can use the HTTPRequest object to perform
direct GET or POST requests. This is only supported in relatively modern
browsers, but it can make retrieving data returned by the server much
easier. Documentation on using the HTTPRequest object at <url:
http://jibbering.com/2002/4/httprequest.html />
Any examples, high-level architecture illustration, any valuable
reference web link will be highly appreciated. ...........i googled on
some of that topic......i guess the exe itself could be written in
java also...and it can have some way to invoke some prepared jar files
to execute the native command (which can be manually executed on dos
command line).


It does not matter what technology is used to create the server-side
resource. If you are using client-side JavaScript, you are interacting
with it as an HTTP resource. As far as the browser is concerned, it is
"just another Web page".

I hope that provides the information you were looking for.

Jul 23 '05 #3
richmond wrote:
Thanks a lot for your reply.

The application in front of me does use a web.exe to bring up the
central page.
How does this web.exe communicate with the javascripts?
I have no idea.
Could you please give some examples of different implementations on
that?
I already provided examples. GET the content into a hidden frame and parse it using client-side code, or
GET/POST the resource using the XML HTTP Request object.
Could that web.exe be compiled from java sources?
As I said, it does not matter. It is an http resource. If you can GET/POST it, you can interact with it from
at least some client-side JavaScript implementations.
I do know that web.exe receiving some parameters from the javascripts
and then running some command line utilities.


I could replicate that behaviour with client-side JavaScript as simple line as:

- window.open('http://server/web.exe?parameter=value'); or
- window.location.href = 'http://server/web.exe?parameter=value'; or
- (new Image()).src = 'http://server/web.exe?parameter=value';

or static HTML as simple as:

<a href="http://server/web.exe?parameter=value">Start</a>

It depends entirely on what you are trying to accomplish.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4
cx*****@fastmail.fm (richmond) wrote in message news:<bc**************************@posting.google. com>...
Thanks a lot for your reply.

The application in front of me does use a web.exe to bring up the
central page.


The Internet works on a client and server model. The client can be
any web browser working from an HTML file with Javascript as the
programming language. The Server can be any OS running any server
program.

While it is posible for Windows applications to interact with IE from
an exe file, we don't normal discuss that posiblity in this form.
These programs are really using IE as a window manager. They can do
anything. Hence, it is difficult to know what and how they are doing
things.

In this forum, we are concerned with client programming that can be
run from any browser on any OS. By talking about an exe, you are
saying it isn't cross platform and this isn't the right forum to
discuss it.

Folks are more than will to discuss how you can implement an Internet
application.

I hope this helps and I am only generalizing what people discuss in
this forum since they can discuss whatever they wish.
Robert
Jul 23 '05 #5

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

Similar topics

2
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.