Quote:
Originally Posted by beih107
bila pekerja tu telah meminjam sebuah fail n then dalam masa yang sama pekerja lain jugak nak pinjam fail tersebut..so nk detect data yg dah available tu kena guna javascript atau coding biasa?
|
Need to use the server-side script to communicate with the database.
The client-side JavaScript can't communicate with the database server, except using AJAX (using JavaScript as an agent to remotely call the server-side script to communicate with database). The bottom line is that it still needs the server-side script.
Typically, the client-side JavaScript deals with the DOM (Document Object Model) that represents each single element in the client-side HTML as objects (properties: name and value). Its typical application is the form validation, changes due to event triggering (i.e. mouse cursor is over/out, timer) etc.