As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a beginner in Javascript and would like to know procedures and starting codes to connect client side and server side using JS and websockets.
Try socket.io: http://socket.io/#how-to-use
Easier is if you have nodejs on server side
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I’ve heard the statement that Python would be too slow to be of any use in browsers.
I reckon Javascript is only superior in this aspect because of companies like Google who need it fast (and made it fast) because they need it to survive, but I could be wrong.
Are there any differences in how Python and JS are designed that have an impact on how they (would) perform in browsers?
There is a project named Brython designed to replace JavaScript as the scripting language for the web.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
The situation as it stands is:
We're using our own services API for all the application logic to save data and validate it
We're using localstorage instead of cookies for the few variables we need to keep track of (authentication token, etc)
The presentation layer of the app is currently written in vanilla javascript with some Jquery for basic stuff.
Would it make sense to switch to Backbone - and if so, what code would need to be refactored?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I plan to create a chat on the site for users, and was wondering if there is already open source javascript library that I can use.
You might want to have a look at node.js / jquery. Here's a tutorial on a chat (which supports web socket).
If you are using Dojo Toolkit there's something called Cometd to implement a chat room too.
Or you could use this (but no websocket).
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm building a stress testing framework for node.js services using node.js.
Do you know relevant projects which I can use / look at?
node.js projects that you've used and worked good? (latency, throughput etc..)
Any best practices on that matter?
Thanks!
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can anyone show me an example of how to connect to mysql database in phonegap or if its even possible ?
I agree with cgwyllie you should write a webservice which will act as an API to your database with methods returning JSON (or XML).
The webservice methods can then be called from your PhoneGap project (I would recommend having a look at the jquery ajax api http://api.jquery.com/jQuery.ajax/).
I would just write the webservice in PHP or whatever language you are familiar with.