10/10/2018, 10:07

Java Script và Cơ Sở Dữ Liệu

Hiện nay mình đang làm một site để dạy học .
Trong web của mình, khi user log on-> họ sử dụng tên của họ, họ được cấp một tài khoản. Khi họ làm các bài kiểm tra, site sẽ ghi nhớ lại điểm của họ-> và hiển nhiên các điểm số này sẽ được sử lý cho các công đoạn khác..

Nhưng ! các bạn hiểu cho, mình sử dụng Java Script , nhớ là Script nhé.

Muốn nhúng Cơ Sở Dữ Liệu vào thì làm như thế nào? Nhất là đối với Java Script , ngôn ngữ này có thể có chức năng tương tự PHP là sử dụng chung với một Cơ Sở Dữ Liệu nào đó không ?

Mình đang rất thắc mắc nhưng ..
gate2vn viết 12:13 ngày 10/10/2018
tôi có thể sai, kiến thức chưa được cập nhật nhưng theo tôi, javascript là ngôn ngữ client-side, được xử lý tại browser. trong khi đó, yêu cầu của bạn dùng xử lý CSDL, yêu cầu phải các ngôn ngữ server-side. do đó, câu trả lời cho câu hỏi của bạn là không có chức năng đó.
antonio17420 viết 12:11 ngày 10/10/2018
tui nghĩ nên tìm hiểu về postnuke, nghe nói cũng dể cập nhật thông tin lắm pác nào biết cho em chút ít kinh nghiệm
pfiev viết 12:21 ngày 10/10/2018
javascript vẫn có server side.Tôi có 1 file tên là ServerSide JS 1.2 preference.pdf (3 413KB) nhưng ngại upload quá. Bạn tìm trên net có lẽ có.
Sau khi có reference rồi thì muốn làm gì chả được
pfiev viết 12:10 ngày 10/10/2018
post lên 1 đoạn trích để dễ tìm
Where to Find JavaScript Information
The server-side JavaScript documentation includes the following books:
• The Server-Side JavaScript Guide provides information about the JavaScript
language and its objects. This book contains information for both core and
server-side JavaScript. Some core language features work differently on the
client than on the server; these differences are discussed in this book.
• The Server-Side JavaScript Reference (this book) provides reference material
for the JavaScript language, including both core and server-side JavaScript.
If you are new to JavaScript, start with the Server-Side JavaScript Guide. Once
you have a firm grasp of the fundamentals, you can use the Server-Side
JavaScript Reference to get more details on individual objects and statements.
Use the material in the server-side books to familiarize yourself with core and
server-side JavaScript. Use the Client-Side JavaScript Guide and Client-Side
JavaScript Reference for information on scripting HTML pages.
The Netscape Enterprise Server Programmer’s Bookshelf summarizes the
different programming interfaces available with the 3.x versions of Netscape
web servers. Use this guide as a roadmap or starting point for exploring the
Enterprise Server documentation for developers.
The Netscape web site contains information that can be useful when you’re
working with JavaScript. The following URLs are of particular interest:
• http://home.netscape.com/one_stop/in...pps/index.html
The Netscape AppFoundry Online home page is a source for starter
applications, technical information, tools, and expert forums for quickly
building and dynamically deploying open intranet applications. This site
also includes troubleshooting information in the resources section and extra
help on setting up your JavaScript environment.
• http://help.netscape.com/products/tools/livewire/
Netscape’s technical support page for information on the LiveWire Database
Service contains many useful pointers to information on using LiveWire in
JavaScript applications.
Document Conventions
16 Server-Side JavaScript Reference
• http://developer.netscape.com/tech/javascript/ssjs/
index.html
Netscape’s support page for server-side JavaScript contains news and
resources related to server-side JavaScript. For quick access to this URL,
click the Documentation link on the Netscape Enterprise Server Application
Manager.
• http://developer.netscape.com/viewsource/index.html
View Source Magazine, Netscape’s online technical magazine for
developers, is updated every other week and frequently contains articles of
interest to JavaScript developers.
gate2vn viết 12:23 ngày 10/10/2018
chết toi tôi rùi lại phải đọc thêm vậy, sorry organism nha'

để xem có connect với database thế nào. Còn về document mà pfiev nói, các bạn có thể download tại đây http://developer.netscape.com/docs/manuals/ssjs.html

thank you, pfiev.
organism viết 12:19 ngày 10/10/2018
Cảm ơn mọi người rất nhiêu nhe !

lúc đầu mình cũng tưởng là JS không có CSDL, nhưng khi thấy một cuốn sách ở nhà sách Phan Đình Phùng Q.PN có nói CSDL trong Js làm mình băn khoăn ( tại vì cuốn sách đó cũng mắc tiền lắm )

nhưng thôi ! chắc làm applet cho tiện...
dtt_vn viết 12:10 ngày 10/10/2018
Nè nè các bạn, cho mình hỏi, nếu dùng theo kiểu server side thì viết ở đâu? muốn chạy trên local thì cần cái gì? có bỏ chung vô php được hông?
Download sách này ở đâu vậy?
chicotroimoihieu viết 12:20 ngày 10/10/2018
Vậy dụng JS thuần vẫn connect được db á, không cần thêm third party hay component add-on nào à?? Ví dụ ajax thực ra cũng là js gọi server side chứ bản thân js đâu connect được db đâu, kiến thức mình có lỗ hỏng chổ này sao ta?? Dù sao cám ơn tài liệu của bạn...., hix
snoob_clo4 viết 12:15 ngày 10/10/2018
Được gửi bởi chicotroimoihieu
Vậy dụng JS thuần vẫn connect được db á, không cần thêm third party hay component add-on nào à?? Ví dụ ajax thực ra cũng là js gọi server side chứ bản thân js đâu connect được db đâu, kiến thức mình có lỗ hỏng chổ này sao ta?? Dù sao cám ơn tài liệu của bạn...., hix
Uh, một mình javascript mà connect được db thì em lại luôn. Nói gì thì javascript vẫn là client-side, ai nói nó là server-side thì trật 100%
Bài liên quan
0