JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
read/write data in ms access or ms excel Posted by nimitbheda on 14 Aug 2004 at 1:27 AM
hi ALL!
does any 1 know how to read /write data from ms access or ms excel using javascript.
KIndly advice for the same.
Report
Re: read/write data in ms access or ms excel Posted by Weirdofreak on 14 Aug 2004 at 4:12 AM
Without knowing how they store the data, it can't be done. And they aren't likely to store the data in any sort of way that makes it at all easy to read/write manually.

Even if you do know, while not entirely impossible (ActiveX will let you write, and you can probably read by putting the files in an object tag and reading that) it is highly infeasible. Like making a jpeg in Notepad, only harder.

There are probably fairly easy ways to do it in several server-side languages, but Javascript is completely the wrong tool.
Report
Re: read/write data in ms access or ms excel Posted by jfaulkenberry on 21 Apr 2009 at 11:59 AM
You are able to connect to Microsoft Access using JavaScript when the HTML file is run locally and the Access .mdb file is accessible to the file system it does not work remotely due to the obvious security issues.

I had a situation where this functionality was actually useful, so I wrote a JavaScript library to simplify the process. This library allows you to execute SQL queries in a single command with the option of selecting the output format of the result-set from choices including JSON, XML, and HTML.

I had a great deal of difficulty finding information or examples of how to connect to Access, so I decided to share my code with the world...

The library is called ACCESSdb and you can get it here: http://www.accessdb.org/

Report
This post has been deleted. Posted by jfaulkenberry on 21 Apr 2009 at 12:00 PM
This post has been deleted.
Report
This post has been deleted. Posted by jfaulkenberry on 21 Apr 2009 at 12:00 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.