Web 2.0 & JavaScript Framework - javascript-framework

We are designing an ASP.NET website. The client asked us to have the website with Web 2.0 features.
Would you please provide any good reference material links to achieve this Web 2.0?
I need one more clarification please. May I know out of JQuery / Prototype / Other which one is the latest JavaScript framework that designers are using in designing websites?

See Web 2.0 Reference Center
Comparison of JavaScript frameworks
I prefer using jQuery because of
Huge user base
Plenty of plugins
Good documentation

I'm using MooTools and I love it, though if I hadn't known any JS library syntax, I'll go ahead and start with JQuery. At the end they all seem to give the same features, but JQuery I believe is more popular and for example, even here you can get more answers to your questions.
Regarding web 2.0:
http://oreilly.com/web2/archive/what-is-web-20.html
and famous 2.0 websites can be found here:
http://www.digitaltrends.com/how-to/the-best-of-web-20/

Related

Capuccino alternative with a comparable looking UI?

I'm looking for a set of Javascript based UI components for a web app I'm building and have found that many of the best looking web apps were built with the Capuccino framework; see http://www.getflow.com/, http://www.picsengine.com/home/ and http://timetableapp.com/ for examples.
However, I'm not a Cocoa developer and have no interest in learning Objective-J. Ideally, I'd find a set of components that provide the visual end result of Capuccino apps without the underlying weight of the framework.
I have seen the Aristo jQuery UI them (http://taitems.tumblr.com/post/482577430/introducing-aristo-a-jquery-ui-theme), but jQuery UI just doesn't seem to have the depth of components available in Capuccino.
I realize this may be a long shot, but I figured it can't hurt to ask. :)
Thanks.
As another option, there is jQuery UI: nice if you are already familiar with jQuery, with the plus side of not being too heavyweight, but may not have all the components you need pre-defined. A nice thing is that it encourages to write the HTML in a way that degrades gracefully when your application in older browsers.
Maybe sproutcore is an alternative for you, although it requires you to hand-code everything in javascript from scratch. It offers most basic components and is easily adjustable to your personal design goals. Sproutcore is used in Apples Mobile Me and in some other big projects.
Another possibility might by vaadin which offers a rich set of prebuild controls and is based on Googles GWT javascript compiler. But it only makes sense if you are developing in a java environment.

AjaxControlToolkit - Extenders - Whats the "current" approach?

Currently, I have a ASP.net 3.5 web application for which I currently am working on the UI.I have been out of touch of doing web ui's for a while.
When i last did UI related work (way back in 2007), i used the Ajax Control Toolkit - specially the extenders like MaskedEdit Extender etc for implementing a lot of the UI functionality i.e restricting the user from entering incorrect data / formatting etc.
Question 1:-
Is there a newer / better / easier way of implementing the functionality similar to the extenders provided by AjaxToolkit that someone would recommend?
Question 2
Also, my current application needs to support multiple cultures in terms of the number / date formatting. In my experience with Ajax extenders, for eg in MaskedEditExtender, I would have to specify the Mask explicitly which defeats the whole purpose of it being able to switch formats depending on the currently selected culture. Is anyone aware of the latest / greatest way in terms of controls etc that I can achieve this?
Note: I am open to lightweight 3rd party controls that could help me do this but would prefer not to touch heavycontrols like infragistics / telerik kinds mainly due to their learning curve / cost.
I currently use Devexpress in the office and at home i use jQuery. Microsoft suggest instead of using the AJAX Toolkit that you use jQuery. This seems to be the best way to go.
jQuery Toolkit for ASP.net is supposed to be quite easy but i find that jQuery UI does everything that you need it to do and doesn't have too much of a learning curve. Using jQuery is much more straightforward than neat javascript and is a useful skill in today's climate.
A combination of:
web services (asmx or mvc)
jQuery ajax
jQuery UI
Along with the plethora of jQuery plug-ins available would be my recommendation for both light weight, and a good abundance of supporting help as well as plug-ins and very active development.
IF you need a bit more you should look a the http://www.obout.com/ controls as an option.

Curriculum for developing with ASP.NET MVC 3

I want to write a web site using ASP.NET MVC 3.0 and Microsoft technologies. I'm studying it now, and enjoying it.
The web site is experimental, and will be used by me and my son in house, but of course I will want to grow it and let other people use it. It will be in Hebrew.
What other technologies do I need to study? One I'm sure of is C# 4.0 (and LINQ). But I'm not sure about ASP.Net 4.0 - Do I also need to study it? How about Html 5? Javascript? Entity framework? Ajax?
Well here's my $0.02 worth of advice. I guess if your are going to expand this site at some point in the future you would have to add Enfity Framework 4 as well in terms of how you do your data access and JQuery since it comes out of the box with your MVC projects. Since you are developing it now you might as well add HTML5 to the list. With respect to ASP.NET 4 you might not need to if you're only doing this for your site. It's a pity that there aren't any mvc3 books our yet but you could either refer to blogs for newer material or if you don't mind use MVC2 books to help you along with u

Asp.net with ajax vs. Silverlight (or.. learn ajax or Ssilverlight)

I already know Asp.net and C#. I want to build web site, and I need to choose between learning Silverlight or learning Ajax.
The site will be (visual) with nice tables and a little graphics, and with hard work with db.
My question is what is the recommended way for me, and the reasons.
Thank u and sorry for my English.
Microsoft's current position would indicate that you should go with Asp.Net + HTML + CSS + jQuery (I would use MVC as it gives you much better control as to what gets rendered in the page, but that's just a recommendation).
http://mashable.com/2010/10/29/microsoft-silverlgiht-html/
Even if we ignore all the news regarding this shift from SilverLight to what's commonly being called "HTML5", learning & using jQuery + HTML + CSS has several advantages:
From a personal standpoint, all the knowledge you'll get will be useful for C# and for any other languages you need to use in the future for developing web apps.
Using Silverlight (or flash) you are basically telling search engines to ignore you. Ok, maybe it's not so radical, but you'll have a hard time trying to make your page climb positions in Google & Bing, if you intend to do so.
Silverlight makes you depend on a browser plugin. Your page won't work in any OS or browser that doesn't have the plugin installed.
You'll find much more information and documentation for jQuery + HTML than for Silverlight, as jQuery is used not only with C#, but also with PHP, Java...
As a benefit of using Silverlight, however, you will gain the ability to stream DRM'd content (it's actually Silverlight's and Flash's main strength right now). How useful that will be to you, I don't know.
The question promotes somewhat subjective answers, so please understand that the answers will vary from person to person.
I would prefer AJAX in this instance. If you need to do a lot of animation then silverlight is probably your best bet. However, if you're looking just to display tabular data (with some graphics), the most commonly used approach (by my observation) is to use AJAX to populate tabular data.
The most common use I see for Silverlight these days is media streaming and proof of concepts.

What is the best AJAX library for Django? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Which AJAX library is the best for django and why?
Looking for one with a large database of tutorials, books and detailed documentation.
Which one is the easiest to work with?
Which one is in early development but shows great promise for the future?
Regards,
chriss
I highly recommend jQuery. There are several tutorials on how to implement it.
http://lethain.com/entry/2007/dec/11/two-faced-django-part-5-jquery-ajax/
http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/
http://vincentxu.net/minimal-ajax-in-django-with-jquery-post
NOTE: Microsoft also announced a while ago that jQuery would be the official client-side framework for ASP.NET MVC, so its good to know regardless of what server side framework you're using.
I think this may be what you're looking for: django-dajax
Pretty well documented. Simple api. Very clean and nice. I plan on using it more in some of my projects. It's JS library agnostic, and works well with jQuery if that's your thing.
UPDATE:
Other solutions similar to dajaxice, but not standard dajax.
https://github.com/joestump/django-ajax - Joe Stump's solution that makes it dead simple to create restful endpoints from your models.
https://bitbucket.org/jespern/django-piston/wiki/Home - Similar idea, but a bit more robust. You can define the data format for your endpoints (xml vs json etc).
https://github.com/toastdriven/django-tastypie - Similar to piston, but I've had better luck with tastypie.
In the end they mostly work the same.
Define/include some predefined URL routes.
Register models/views/functions that will be used as data sources.
Enjoy.
UDATE2:
This advice is super old. Should probably research other solutions.
There's nothing about Django that makes any of the libraries easier or work better with the framework. Just use the one that fits your brain the best.
Having said that, my sense is that jQuery is more popular in the Django world and is what I personally use. Most notably, many of the apps in Pinax require jQuery. Some other shared apps and code snippets for Django:
http://www.djangosnippets.org/tags/jquery/
http://code.google.com/p/django-ajax-validation/
http://code.google.com/p/django-todo/
http://code.google.com/p/donita/
Also keep in mind that the newest Django books (Python Web Development with Django, Learning Website Dev with Django) use jQuery in their tutorials.
Checkout Dajax:
Dajax Project
Easy to use AJAX libraries for Django
Fast, easy and lightweight libraries
to implement AJAX inside your django
projects. Ready to use in 5 minutes.
Dajax is a powerful tool to easily and
super-fastly develop asynchronous
presentation logic in web applications
using python and almost no lines of JS
source code.
It supports up to four of the most
popular JS frameworks: Prototype,
jQuery, Dojo and mootols.
I've successfully used jquery, YUI and Dojo on different django projects. There's nothing about any of those that made it better to use with django specifically. I agree with jpartogy that mochikit may fit django more than any other just because of the "pythonic" (twisted-like) API. It really depends on what you are looking for in an ajax framework.
Personally I like what jQuery can do with given amounts of code but the greatest challenge in writing jQuery code is making it readable.
YUI is much more verbose than other frameworks because it sets a convention for using namespaces, but there are shortcuts to write less code and it avoids trying to make javascript look like something else.
Dojo tries to make javascript look like Java and from my experience is pretty slow. It has some nice widgets and a javascript implementation of the django templating language (which is pretty useful even outside of django projects).
I personally avoid prototype and mootools because they can break other javascript code (or vice versa).
If you are new to javascript and ajax I'd recommend jQuery because it's the easiest to start with. But I don't expect any js framework to be integrated with django mostly because there's really no need for that.
+1 to Soviut and Daniel for good answers. Jquery is a nice framework. Besides Pinax a couple other "big" Django applications use it: Satchmo and Review Board (which switched from another framework... mootools IIRC).
Also popular is rolling your own Javascript without using any framework, for example the Django admin.
The only other suggestion I might make is that, if you are a very experienced Pythonhead, then you might like mochikit which comes under some criticism for being too 'pythonic'.
It seems to be the framework of choice for Turbogears but I personally haven't seen any Django projects using it.
Okay this might be subjective because the definition of 'best' can mean different to each individual. But since you are working with Django, that means you will get your hands down with Python syntax. One notable Javascript library that doesn't get exposed too much is Mochikit. The good thing about it is it has syntax that is familiar to Python programmer (because the creator is a Python programmer). It has quite nicely written down documentation as well. TurboGears out-of-the-box supports Mochikit.
If you need to work with AJAX in your django projects with very little setup and simple to use, my offer is:
django-ajax (Github, Pypi)
Fast, flexible and easy to use AJAX libraries for django projects. Contains ajax decorator, ajax middleware, shortcuts and more.
The phrase "Best AJAX Library" is highly subjective and depends on personal preferences, existing know how, requirements of the work etc. etc.
While I prefer jQuery for (almost) everything, I know some people whio swear by Dojo or ExtJS. There might be case where you want to use jQuery but requirements might be dictate that you use ExtJS.
All said. Use jQuery. jQuery rocks ;)
Django doesn't really tie in with the client side. Use whatever you're comfortable with. Django plays well with everything in that area, because you just write it in the templates.

Resources