json - Connect to OrientDB from Javascript -


i having trouble connecting database on orientdb javascript using orientdb-api.js.

my code in javascript is:

<!doctype html> <html> <head>     <title>conexion con orientdb</title>     <meta charset="utf-8">     <script src="orientdb-api.js"></script>     <script src="jquery-1.6.4.min.js"></script>     <script src="jquery.json-2.2.min.js"></script>     <script src="jquery.tools.min.js"></script> </head> <script>     function openserver() {         var orientserver = new odatabase('http://localhost:2480/gratefuldeadconcerts');         databaseinfo =orientserver.open('root','hello');         if (orientserver.geterrormessage() != null){             console.log(orientserver.geterrormessage());         }         queryresult = orientserver.query("select v");         var dbinfodata = json.parse(queryresult);         orientserver.close();     }  </script> <body>    <input type="button" value="conect orientdb" onclick="openserver()"> </body> </html> 

the error have is: "connect error: undefined" , "http/1.1 401 unauthorized" queries.

all files inside "www" folder inside "orientdb" folder.

i not expert. need retrieve data here create graph javascript library.

can me?

thanks in advance.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -