Jump to content
heli_doc

Best Design options for client side database access

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...