473,387 Members | 1,897 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,387 software developers and data experts.

ADO best way for JScript to talk to Access?


All,
I am making a very simple application for my own personal use on my
Windows XP box. I want one that looks and feels like a web app. I don't
have too many languages to choose from on my home computer, and I don't
feel like installing a web server, and it already has Access on it, so I
was thinking HTA with JScript and Access. I see a way for JScript to
talk to Access is with ADO. Is this the best way, or is that the "old
way"? Sometimes net searches can bring up a lot of old crap. :)

TIA

--
--
~kaeli~
Those who get too big for their britches will be exposed in
the end.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #1
2 1892


kaeli wrote:
I am making a very simple application for my own personal use on my
Windows XP box. I want one that looks and feels like a web app. I don't
have too many languages to choose from on my home computer, and I don't
feel like installing a web server, and it already has Access on it, so I
was thinking HTA with JScript and Access. I see a way for JScript to
talk to Access is with ADO. Is this the best way, or is that the "old
way"? Sometimes net searches can bring up a lot of old crap. :)


No, the ADODB.whatever objects instantiated with new ActiveXObject are
the proper way, and Windows XP has the proper MDAC version so I don't
think you need to download anything.
There are however different ways of accessing the database/establishing
the connection, you shouldn't use ODBC/DSN as that is antiquated
compared to ADO with a OLEDB provider, see
http://www.aspfaq.com/show.asp?id=2126
for instance, it is part of the ASP FAQ (and uses VBScript) but of
course the connection strings are the same whether your script is
JScript or VBScript and runs in HTA or ASP.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
In article <40********@olaf.komtel.net>, ma*******@yahoo.de enlightened
us with...

No, the ADODB.whatever objects instantiated with new ActiveXObject are
the proper way, and Windows XP has the proper MDAC version so I don't
think you need to download anything.
There are however different ways of accessing the database/establishing
the connection, you shouldn't use ODBC/DSN as that is antiquated
Good to know. That's what I would have used. *g*
The last time I did anything with VB I used a DSN, so I would have just
done it again.
compared to ADO with a OLEDB provider, see
http://www.aspfaq.com/show.asp?id=2126
for instance, it is part of the ASP FAQ (and uses VBScript) but of
course the connection strings are the same whether your script is
JScript or VBScript and runs in HTA or ASP.


Either language is fine by me. I know enough VBScript to be dangerous.
;)
I was considering doing this little project in VB6, but figured I'd be
quicker using an HTA and JScript, since I know html and jscript a lot
better.

Thanks for the link!

--
--
~kaeli~
Reading while sunbathing makes you well red.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3

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

Similar topics

20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
2
by: Bootstrap Bill | last post by:
I want to create a Windows Form in C# that has a web browser componant on it. If I load a web page into the web browser containing jscript, can jscript call a C# function on my form?
3
by: Larry David | last post by:
Hi, I'm just trying to wrap my mind around the ASP.NET model. Let me walk you through a trivial scenario: Let's say I have a form containing a text box where the user enters his name. It also...
4
by: RFS666 | last post by:
Hello, I have the following problem: I have a web project where I display an activeX control that displays 2D-graphs on an aspx-page. I use jscript to access and modify the properties of the...
5
by: Maxwell2006 | last post by:
Hi, I have a requirement to develop an application component using only Server-Side Jscript (not Jscript.NET). What is Server-Side Jscript?
1
crownabhisek
by: crownabhisek | last post by:
I know some of you know the best book of JScript. Best book. What does it mean? The book which is the very easy to understand JScript with contents ranging from novice to professional. Thanks in...
6
by: Giulio Petrucci | last post by:
Hi there, as I need to share a .NET context with a JavaScript context and I can't re-write Rhino in C# ;-) I'trying to understand something about the Microsoft.JScript namespace, but - really -...
1
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
52
by: burgermeister01 | last post by:
First, let me say that this question is a rather general programming question, but the context is PHP, so I figured this group would have the most relevant insight. Anyways, this is also more of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.