Closed Thread Icon

Preserved Topic: Windows API trough JS? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7872" title="Pages that link to Preserved Topic: Windows API trough JS? (Page 1 of 1)" rel="nofollow" >Preserved Topic: Windows API trough JS? <span class="small">(Page 1 of 1)</span>\

 
StereoType
Bipolar (III) Inmate

From: the plushdjungle
Insane since: Oct 2001

posted posted 10-05-2001 21:33

I asked this question over at the Guru network, but it's pretty dead there, so I'll ask it here also...
Is it possible to get Windows API using javascript instead of using VB? I know it's possible in many programs but I don't know 'bout Windows...
If it's possible, can somebody please give me a link to a site where the functions are written and described.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 10-05-2001 21:47

You'll probably find the answer to your question on Microsoft Developer Network ...

Now, on a side note - why do you need to use functions from Windows API? JavaScript is meant to be client-side language that can't access anything on your local computer (anything outside web browser, only page that it is on).

StereoType
Bipolar (III) Inmate

From: the plushdjungle
Insane since: Oct 2001

posted posted 10-05-2001 22:24

well, I am playing around whith a "startpage" on my desktop, where I have shortcuts to my favorite internet and computer files. I also have a function to search the net with Google. I wonder if it is possible to for example; search the computer, shut down the computer and so on trough JS. I have previosly done some cool things in a programs API with JS.

I have tried to search on the msdn before, but when I search for anything with API in it, it always returns 100+ results...

BillyBoy
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2001

posted posted 10-05-2001 23:07

If by windows api you mean getting to the system as opposed to certain dlls like file upload, i guess
the answer in no. i mean think of the security implications. You said VB? Yep, that's the way to do it.

I think you could use js as part of or in conjunction with an activeX control (MSIE) or plug-in (NS) but that's about it. I doubt you could make it cross-browser.

BTW, Have you tried Sleuthhound! Pro for searching your computer? And WSH will easily allow you to create scripts
to shut down your computer although I keep mine off to keep worms out.

If you do find a way to do it please let me know, so i can disable JS in my browser!



[This message has been edited by BillyBoy (edited 10-05-2001).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-06-2001 01:51

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-06-2001 02:42

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-06-2001 02:43

you could of course set the box up as a server, install your favorite scripting language and then actually "serve" the page for your desktop and control the box from there using the language of your choice.


Done inproperly though it becomes a HUGE security risk. HUGE.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-06-2001 12:31

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

BillyBoy
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2001

posted posted 10-06-2001 16:13

InI

You seem to be an expert in this area. When you say standalone, do you mean that
it is possible to dynamically access a database table (say an .mdb) through a browser without server
software installed? (by standalone i mean local application, no Internet, no Intranet, no ASP etc.)

If this is the case I would love to know more. I had stopped investigating this months ago
because I could not have a personal server (ex. IIS) installed for such an application.

Ideally I would have liked to connect to an Access 2000 table through the browser using
whatever scripting/prog language (vbscript, javascript, hopefully not java) and ADO (or DAO which I find faster).

My understanding was that this was impossible using Data Access Pages without a server (static is possible, dynamic no). Do you have a workaround. It was not clear from your examples if IIS or ActiveX was being used
although you did mention standalone!

I would love to see your application posted. Also, could you provide the link for NS, although IE is much more common these days.

thanks dude.



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-06-2001 16:59

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-06-2001 17:18

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

StereoType
Bipolar (III) Inmate

From: the plushdjungle
Insane since: Oct 2001

posted posted 10-06-2001 17:35

Oh, I must have forgotten to mention that I used activeX...

this is a simple code wich I used for opening a program with specefied width and height and file to open...

code:
<html>
<head>
<title>Open program</title>
<script language="JavaScript">
function RunScript()
{
var theApp;
var hojd = document.katten.alban.value;
var bredd = document.katten.dr.value;
var title = document.katten.thetitle.value;
var file = document.katten.filletare.value;

theApp = new ActiveXObject("THEPROGRAM.Application");
theApp.Open (file);
theApp.Width = bredd;
theApp.Height = hojd;
theApp.Caption = title;
theApp.Visible=true;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<tr>
<td>
<div align="left"><br>
<br>
<form name="katten">
Width: <input type="text" name="dr" maxlength="3" value="200"> px. <br>
Height: <input type="text" name="alban" maxlength="3" value="300"> px.<br>
Tiltle: <input type="text" name="thetitle" maxlength="30" value="Tiltle of the program"><br>
File to open: <input type="file" name="filletare" value=""></form>
<br><br>
<button id=btnGo onClick="RunScript();">Open the program</button>
<br>
</td>
</tr>
</body>
</html>

BillyBoy
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2001

posted posted 10-07-2001 00:25

Thanks for your posts Ini but I wasn't able to find anything on MSDN nor on Access' home nor on Usenet nor on a google search...and I searched extensively months ago. I didn't look too long at DevEdge as I am just curious about NS that is I am looking for a solution for IE not NS, since most clients use IE.

Your last post stated that it is possible to connect to Access without a server. Yes, i know that.
What perhaps wasn't clear in my first post is what I mean by dynamically.

Specifically, I want to be able to recreate a MS Access 2000 form in HTML with full functionality: to do dynamic queries and/or updates to the local database.

I have done this using Personal Web Servers and Data Access Pages. I have not found a single link or source saying that this is possible without a Personal Web Server. Returning static pages is easy, it's the dynamic part
that is seemingly impossible.

For example I would love to be able to populate a dropdown in html from information stored in an Access database thru SQL and DAO or ADO but without having to install a web server. Similarly, I would be able to query
the data tables thru HTML and return the data to HTML without ASP.

If you still feel this can be done or if you KNOW that it can be done, i would be truly grateful for a link.
And thank you for your help so far.

BillyBoy
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2001

posted posted 10-09-2001 19:03

Not sure if there's any interest left regarding this thread, but I thought I'd close
at least my section concerning querying an Access database from MSIE without
a server.

The answer is Yes. InI was right, but the method i've found is 100% native
to Access 2000. You create a DAP from Access, you save it to HTML, and you
can now use MSIE 5.5. to play with it. I will investigate this further but I have
a feeling I am the audience of one, at least on this one.

InI, once again thanks for your help. Once I finish with IE, i'll check out solutions
using JS or JAVA for NS.

Very very powerful shit.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-09-2001 19:12

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

BillyBoy
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2001

posted posted 10-09-2001 19:26

InI:
I develop applications in Excel for a living.

I am currently working on automation projets (what used to be called OLE is now called automation as I'm
sure you are aware).

Specifically, I am writing Excel front-ends to Access (or other) database backends.
Because I am a closet design freak, I thought it would be great to move from Excel to the browser because the browser is much easier to customize than excel (sure, you can run the web browser active X control from excel..but that's not very efficient)

The problem has been, and i've just started along this path, that many clients in large corporations have very
strict I.T. policies which prohibit installing any new software without tons of red tap...a Personal Web Server would
sadly fall into that category. So plan B was to research, time permitting, doing it without a PWS.

I looked here and there, read some books, but this is a niche application. Web developers build for intranets or internet....while i was looking for a 100% local solution.

The next steps are basic form elements (dropdowns etc). If that goes smoothly I move to Flash, JS, and all the other rich media tools available.

BTW, i frequently launch other apps from Office apps, but had not even thought of doing it in a browser
other than linking directly to the .exe.

Looking forward to seeing your site.


« BackwardsOnwards »

Show Forum Drop Down Menu