简体   繁体   中英

How to connect to pointbase database from javascript?

I am working on a project in which I need to connect to pointbase database from javascript. I do not have much knowledge about java script. Is it possible to connect to pointbase from java script? Please help me with a sample code.

Thank you in advance.

javascript is not only a front end scripting language. It can be used by any javascript engine though the typical usage is for front end code in a web browser. Java/.net/php are more natural fits for server side processing. There are server side engines that can run javascript:

http://en.wikipedia.org/wiki/Comparison_of_server-side_JavaScript_solutions

JavaScript is for client side programming. If you mean you have a web interface you wish to connect to a server side database you need to use Server Side scripting (perl,php,asp...), you can then use JavaScript and AJAX to work with the remote database.

Is it possible to connect to pointbase from java script

Javascript is not Java Script.

Javascript is a client side language for manipulating webpages. It has almost no access to files (or databases).

You need a server side language, like Java for connecting to the database. You may want use JDBC (You would need the drivers for the Pointbase database.

You can "call" this server side program from javascript. How you do depends on your architecture. Do you already have a Java web app (a Java EE app) running?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM