Friday, 15 June 2012

ASP.NET MVC Best Pratice for jQuery updates -



ASP.NET MVC Best Pratice for jQuery updates -

history

i created new asp.net mvc 4.0 project basic , didn't include jquery or other scripts intranet , net templates insert default. went add together scripts using nuget , installed latest version of jquery , related files installed mvc intranet , net templates.

when tried running application started receive errors. apparently there incompatibilities libraries/extensions written previous jquery 1.9. seemed after fixing issue i'd run another. gave , copied versions of js files have installed. resolved issues able utilize features such remote validation.

questions

since i'm new asp.mvc, i'd know best practice related jquery updates. assume need wait until libraries/extensions have caught up, need follow status of each library/extension determine when upgrade.

is improve wait , utilize versions installed mvc templates , not upgrade? , when next update mvc comes out, re-create libraries/extensions scripts folder updated templates use? i noticed mvc templates not install jquery nuget packages install files content , script folders. prevent developers upgrading , experiencing issues found using newer version of libraries/extensions? does microsoft time updates jquery.unobtrusive-ajax.js , related libraries updates asp.net mvc? if seem create sense hold off updating dependencies until asp.net mvc updated.

jquery deprecated .live() method in v1.9. can replaced .on(). broke jquery.unobtrusive-ajax.js. know experience when cursing update first pulled nuget.

there update jquery.validate out there, mentioned in this thread. have not validated yet, jquery 1.9.1 available well.

for questions...

i think practice maintain packages upto date, research deprecated functionality. using source save tools idea. revert breaking changes 1 or 2 mouse clicks.

even though there not \packages folder added virgin project (intra or internet). if open nuget bundle manager ui, updates still show up.

asp.net-mvc asp.net-mvc-4

No comments:

Post a Comment