To establish a connection to MySQL db using javascript , it is enough to do the following :
var conn = new ActiveXObject ("ADODB.Connection");
conn.Open("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=blah_blah_blah;User=foo;Password=bar;");
However , ActiveXObject is defined only in IE browser .
What about the other browsers