Help me Do it Wrong
February 21, 2011 4:37 PM Subscribe
Ok, here's a stupid-sounding idea: can someone point me to a guide to how to manipulate an Access database client-side on a web page?
I've got an application that clearly needs a database and not a ginormous multi-user shared excel spreadsheet (which, in typical office-worker fashion, it is.) I've managed to mock this up over the weekend on my mac at home using MySQL, Apache, and php. Works beautifully. Really, I did it as a self-learning project, since that's the kind of guy I am, not because I have to, but now I can't help thinking: this would be handy in real life, too.
Here's the problem.
Work is strictly a locked-down MS Office house. No web server I have access to. I can make and use an Access database. I can write a .html page and look at it in IE. But php, asp, any server-side whatever is a no-go.
I could do the whole thing in crappy MS Access forms, I guess. Yuck.
The question is, is there a way to write my html page, using JavaScript, that could manipulate the database to generate dynamic content, when all I get to do is use IE in file-open mode, without a http server?
I'd say my technical competence is 'marginally familiar with all the technologies, quick learner, but not much hands-on experience." I could probably teach myself all the JavaScript I need to know, but I'll need more hand-holding than a pointer to an esoteric developer news-group.
posted by ctmf to computers & internet (14 answers total) 2 users marked this as a favorite
That said, if I understand your problem you're basically hosting an Access database somewhere, and want to offer a html file/package that lets people use the Access database without requiring a web server, since you can't host one (even on your desktop). This isn't a technological limit, it's a policy limit, yes? After all, just hosting your WAMP mock-up would be doable on your own machine, but it sounds like that's restricted. Where does the Access database live?
So to answer your question, yes this is totally doable, even though the idea makes me a bit nauseous; the server-side code in classic asp is just vbscript or javascript that has some server-side objects exposed to it, but you can use the ADODB object to connect directly to a database and do... whatever. You can also look into script encoding as part of the Windows scripting host, which offers the most minimal of protections for the casual user to see your script contents and any passwords you embed. It is NOT secure, but isn't horrible for basic end users. You'd create your script encoding, maybe even wrap the whole thing up in an mhtml, and hand that out to users.
Also, this fellow posted on kuro5hin.org in 2005 with pretty much your exact problem: He then goes on to describe in great detail how he did it, and has code snippets as well.
posted by hincandenza at 5:04 PM on February 21, 2011 [1 favorite]