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
|