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.
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 10 years ago.
I've got CSS and JavaScript on an ASP.NET server running .NET 4 with C#. How can I send minified CSS and JavaScript response to client?
you can use Microsoft Ajax Minifier
http://www.asp.net/ajaxlibrary/Download.ashx
I think you need a minifier, there are many online minify sites available you can use like JSCompress
You can use the Closure-tool. It also has a RESTful api which can be used easily.
We use http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher it's really easy and good to use. You can simply choose debug or production mode in your configuration file.
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
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 working on a Django project that will need jQuery, jQuery UI, and one or two more JavaScript libraries. What good tutorial or reference can be recommend on how to make JavaScript and Django talk with each other? (that is, handling XMLHTTPRequests, passing information from a Django model to a JavaScript function, etc.)
Using Ajax in Django is just like any other web request that comes to your Django application. You need to route the request to your controller which has to provide some HTML to jQuery's Ajax handler, that is, X function(data){}.
For more understanding, see Ajax in Django with jQuery.