Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database access

Status
Not open for further replies.

apffal

Technical User
Apr 10, 2004
97
0
0
PT
Can I use javascript to access and querying database tables, (such as in sql format), in different operating systems (windows, linux, mac os) ?
If yes, how to get information about it ?
 
You cannot access a database from client-side.

You'd need to send a request to the server and get the results back from there.

Cheers,

Dian
 
And what about getting results from text files, like in XML ?
 
JavaScript is a client-side language, as Diancecht pointed out. That means it runs in the client, which for web-development means the browser, and only has access to the object model of the client, which means the DOM (Document Object Model) of the web page.

To access external files, you'll need to work with a server-side language, such as PHP.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top