开发者

web sockets with mysql

I am trying to build a dynamic page that updates its contents dynamically without using Javascript.

A friend of mine sugested me Websockets. and when I checked it it was awesome.

Now I can build a Websocket that can be accessed from command prompt. Now my problem is ho开发者_运维百科w can I access it with a webpage and also how can I update a page with database values when ever any new value is added.

I checked Google and there was nothing useful.

Please tell me how i can do it. Any help will be highly appreciated!


To use websockets you will indeed need to use JavaScript. WebSockets is part of the HTML5 draft (you can check more here: http://onepixelahead.com/2010/04/30/html5-web-sockets-example/)

Whenever you're trying to access a server from a website, you will either use JavaScript or a third party plugin (like Flash and Silverlight).

I don't really know why you're trying to avoid JavaScript... It would help if you gave reasons for that.

Also, websockets is not well supported at the moment. An important security issue was found in the protocol and only Chrome/ium works with it at the moment (I believe nightly builds of Safari also work).

I would recommend you checking comet servers (such as Socket.IO, although that one is 100% javascript) if you really want something like this, or just go with flash/silverlight.


I think you wouln't come arount javascript. But there are a few nice project which may could be usefull for you. e.g. ape-project or nodejs


Maybe you can avoid JavaScript using Google's NativeClient. I don't think there is WebSocket support yet though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜