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.
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 have a question. Which control is better to use for file uploading (ASP.NET MVC3)? Wihtout page refresh of course. And it should work in old browsers like IE8.
Check out existing questions
asp.net mvc file upload ajax post
Asp.net mvc fileupload via ajax
http://www.fyneworks.com/jquery/multiple-file-upload/
I am using this plugin
In this link you can see a demo of the plugin and documentation
I have done it with asp.net pages, But the concept should be the same.
Here an example in MVC3
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.
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.
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.
If I'm developing a client side application with heavy load, what is the most appropriate choice of Ajax framework?
I'd recommend you the JQuery. It is not just an ajax framework, it is more than that.
Client side? jQuery. Server side? Depends on your environment. Also, AJAX is not a framework per definition, but there are various libraries like jQuery which will ease the pain when using AJAX.
AJAX exists just to send some data and recieve some data from your server or some other site without forcing you to do a whole page reload. That's all about it in the nutshell.
If you're looking for a technology that will automatically place widgets on your site that use AJAX, that's a whole different story...