Javascript and MySQL

I want to create an entire web application using only Javascript and MYSQL. Does anyone know how I can do this, if possible. Thanks. R

+5
source share
8 answers

Try something like Jaxer , which allows you to execute JavaScript on a web server and query the database.

The following are examples and syntax examples:


Access database, file and socket from JavaScript

alt text http://jaxer.org/images/Picture+4_0.png


Easily create RESTful JSON data services

alt text http://jaxer.org/images/Picture+6.png


Directly call server functions from a browser

alt text http://jaxer.org/images/Picture+2_0.png


+10

javascript , - ( - , PHP ..). "connection string mysql", , mySQL ADO/ODBC. MySQL ODBC- MySQL.

( MySQL , -):

function connectDB()
{
   var connectStr = "DRIVER={MySQL ODBC 3.51 Driver}; " +
                    "SERVER=localhost; "                +
                    "PORT=[MySQL server port];"         +
                    "DATABASE=[your database]; "        +
                    "UID=[username];PWD=[password];"    +
                    "OPTION=3",
       conection  = Server.CreateObject("ADODB.Connection"); 

  //ERRID=>lib::connectDB::open
   try       {connection.Open(connectStr)             }
   catch(e)  {errAlert(e,'rs::connectDB','connection failed',1) }        
   return connection;
}

( errAlert )

+2

Jaxer. , . Phobos. Jaxer Aptana, Phobos Netbeans.

+2

JavaScript- AJAX/REST - - CloudKit ( CouchDB, HTTP- JSON). Dojo YUI -...

+1

-, javascript. , , , , .

- , . , .

javascript TiddlyWiki, , html. javascript html , USB- - .

0

triplify, json rdf. , , js , javascript, ajax json.

0

javascript . HTML 5 , (, firefox gears).

. . , . , sqlite.

0

Javascript MYSQL, - PHP , Javascript .

: , , , Javascript .

-3

All Articles