is there any possibility to access and retrieve data from MongoDB directly over JavaScript form browser without backend processing?
MongoDB natively does not has a fully usable REST interface. You will need either Python based Sleepy Mongoose or Node.js based MongoDB Rest Please see http://www.mongodb.org/display/DOCS/Http+Interface for more information. Mongo's inbuilt REST interface is very basic & read only. |
|||||
|
Connections to MongoDB occur over a socket; browsers communicate via http. That said, it's not difficult to write a back-end app that gives you pretty transparent access to MongoDB via JavaScript / REST / HTTP. That's essentially what's happening with Try Mongo (http://mongo.kylebanker.com). People have also started building some generic back-ends for this purpose. Here's one example: http://github.com/djsun/sinatra_resource |
|||
|
Not in the standard security context. If you have a situation where you have elevated security rights (such as inside a custom browser extension) then it may become possible. |
|||