Jump to content

Best Design options for client side database access


heli_doc

Recommended Posts

I'd like to access a database that is on the client side via Javascript and was wondering how to best go about this. I was thinking it may work to use Ajax to call a C# data application, but wondered if that would be most efficient. I suppose PHP would be another alternative, but I prefer working in C# if I can. Thanks!

  • Like 1
Link to comment
Share on other sites

You won't be able to use ajax to send a request to the user's filesystem without changing browser settings. You can set up a web server on the client and send ajax requests to that but you'll need to change security settings to allow your browser to send cross-domain ajax requests.

  • Like 1
Link to comment
Share on other sites

Please excuse me. I missed that "client side" ref. What kind of info is supposed to be the user's database?

Edited by niche
Link to comment
Share on other sites

I'm guessing you are talking about a standard MSSQL Server or MySQL database on the client side. You may know that HTML5 offers a client-side SQL database API but this has no connection to standard databases. You might look into using a signed Java Applet. HTML5 can also talk to local files so maybe it could use files to communicate with a desktop program.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...