Topic: 用javascript怎么做才能与数据库连接呢

  Print this page

1.用javascript怎么做才能与数据库连接呢 Copy to clipboard
Posted by: nykey
Posted on: 2005-03-01 14:31

好像javascript是不能直接连接数据库的
有看到相关的文章说需要用asp等服务器端脚本来实现
但是其并没有具体说明应该怎么做
不知道哪位大侠会的话麻烦指导一下
谢谢!

2.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: floater
Posted on: 2005-03-01 22:33

1. don't cross post!

2. No, you can't do it.

3.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: chengbd
Posted on: 2005-03-01 22:43

javascript中的数据如何定义,JS中可以使用数组吧?
好,把需要的数据取出来,用JSP(ASP)写成js的数组定义的方式。
这就是JS与数据库交互的方式,当然只适合小数据量的情况。

4.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: YuLimin
Posted on: 2005-03-02 19:57

JavaScript + Applet <==> Servlet来实现吧

5.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: lihongtao
Posted on: 2005-03-03 08:57

javascript + xmlhttp + servlet ......

6.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: wenbin151
Posted on: 2005-03-04 10:16

javascript+jsp 页面开始声明全局变量!

7.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: floater
Posted on: 2005-03-07 10:27

js or jsp are presentations, don't mix them with db layer directly.

8.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: jianghuren
Posted on: 2005-03-11 19:40

javascript代码在客户端可以看到的,如果能连接,还有什么安全性啊

9.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: chengbd
Posted on: 2005-03-11 20:10

不是一般意思上的“连接”

10.Re:用javascript怎么做才能与数据库连接呢 [Re: nykey] Copy to clipboard
Posted by: xuelian0715
Posted on: 2005-03-14 09:45

一般用JSP语句连接。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923