Thanks for your reply.

 

I'm glad to hear that it worked for you. However, I'm having a bit of 
difficulty in figuring out how to get this app to work as a web app.

 

I tried searching into the source code of the OrientDB Studio web app and 
was able to notice that they use the orientdb JavaScript API along with 
some AngularJS, which looks very fascinating, but then I tried on my side 
by creating a simple web page that imported the orientdb-api.js and the 
jquery library, and it did not work.

 

I've enclosed my web file.

 

I'm using localhost in my JS, but it just seems to me that it does not make 
sense to access my orientdb database on the server from the client. I think 
I'm missing something, but still I'd really like to use the JS API for 
OrientDB. Should I use something like Node.js or is the standalone JS file 
sufficient?

 

I get this error message when I run the JS code in the enclosed HTML file.

 

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the 
remote resource at http://localhost:2480/database/GratefulDeadConcerts. 
This can be fixed by moving the resource to the same domain or enabling 
CORS.

 

Any help, advice, or resources would be greatly appreciated.

 

Regards,

Jeremie
 
On Wednesday, December 17, 2014 10:15:20 AM UTC-5, Curtis Mosters wrote:
>
> Well I just created one project. HTML, JS and jQuery were used. Worked 
> well with ajax calls.
>
> To the security. Just setup a user with lowest rights that can access 
> functions should work, well. WDYT?
>
> But overall yeah I asked myself the same question. How can I tell a user 
> has no access to special functionalies or special function. Is that 
> possible Luca?
>
> Am Mittwoch, 17. Dezember 2014 15:16:35 UTC+1 schrieb jeremies:
>>
>>  Hello,
>>
>>  
>>
>> I've been using OrientDB in university research projects since a few 
>> months, and I'm very pleased with what it can offer. I know I did not yet 
>> have the occasion to scratch the surface of what OrientDB really is.
>>
>>  
>>
>> At this point I need to build an application that will use OrientDB to 
>> store information about research publications. 
>>
>>  
>>
>> I plan to build a web app using HTML5 techniques (i.e. HTML5, JS, AJAX, 
>> PHP).
>>
>>  
>>
>> I've used OrientDB with Java, but now I'd like to extend the use of 
>> OrientDB to my HTML5 web app.
>>
>>  
>>
>> What solution would be best?
>>
>>  
>>
>> I have read about the following two methods:
>>
>>  
>>
>>    1. Using the PHP libraries for connecting to OrientDB on the server 
>>    2. Using the JavaScript API to connect to OrientDB using server-side 
>>    scripting. 
>>
>>  
>>
>> I would prefer the 2nd option (server-side JS) since this is what, I 
>> think is used by the OrientDB Studio and it seems more complete, though I'm 
>> ready to also use the PHP option. 
>>
>>  
>>
>> My question is: can I use JS with OrientDB to query the dbs and run 
>> insert / update operations on it in a web app? I'm worried about security 
>> here. If the web app is running on my server and the OrientDB is on the 
>> same server as the web app, then is it possible to do that JS scripting 
>> without the end-users being able to execute arbitrary commands and damage 
>> the OrientDB server?
>>
>>  
>>
>> Would you please advise on the best option?
>>
>>  
>>
>> Any help is always greatly appreciated!
>>
>> Jeremie
>>  
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to