Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2012, 10:22 AM
Registered User
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read Access database in Javascript

Hi all,
I'm currently learning ASP.Net/C# and Javascript.

In Javascript, i just know how to create a class and an object.

I just want to learn or to execute a query from MS Access in Javascript:
Example "SELECT Name, Firstname FROM Employees;".

After that, i want to know how to display those datas in an array (or a list) in Javascript.

Thanks for your attention.

Greetings.

Phil
 
Old February 10th, 2012, 07:57 PM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default javascript object

Hi my friend.

In the current versions of JavaScript objects and classes are the same. but upcoming version (JavaScript2.0) supports class definition.

var p = new object();
p.firstname = "Reza"; // =====> or =====> p["firstname"] = "Reza";
p.lastname = "Baiat"; // =====> or =====> p["lastname"] = "Baiat";

or

var p = {firstname: "Reza", lastname: "Baiat"};


------------
JavaScript does not work with Access or other databases (at least in current versions). you can access to MS Access by ActiveX. but this is only supported by IE.
you can store data in 'window.localStorage' like a database (up to 'available-space!!') in HTML5. or you can call Server Side pages by XMLHttpRequest object (Ajax's core object).
__________________
happy every time, happy every where

Reza Baiat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Access Database Query panuvin Javascript How-To 28 May 9th, 2008 01:53 PM
How to read/write to Access database from Visual C mmakrzem Access 1 July 30th, 2005 01:57 AM
Access Database from Javascript with rds nosreg Access 2 February 3rd, 2005 07:19 PM
How to read/write Access Database jmmendes Access VBA 0 November 18th, 2003 01:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.