At the moment it is just an intellectual excercise for I do not have time to invest in this, but I am interested if anyone has any experience entirely replacing jQuery with another javascript framework like Dojo Toolkit or Google Closure.
How much of the jQuery is actually baked in to the MVC framework or is it all implemented in an unobtrusive manner so that at least in theory, it all can be replaced…
What would be involved in replacing entire javascript framework?
There is nothing baked up into jQuery, it’s all about the developer, if you want to use it, it will use jQuery, if you want to use ASP.NET Ajax Library it will use that, if you want to use anything else … same answer.
When you have a
Modelwith some validation, the only thing that the .NET Framework does is adddata-attributes to the input form, from this you can elaborate your own version to do client validations.For example:
and then
will translate into
From here you can create your own Client Side validation. The code above was taken from the default project and it has no jQuery integration…
If you want jQuery integration, then all you need to do is append those 2 files:
as well jQuery Library off course, so as you can see, you, has in all .NET Framework, are the one that tells the Framework what to do, not the other way around 😉