Why use ASP.NET MVC 4 over just HttpHandlers with JQuery Ajax?

1 Answer

Answer :

answer:I’m not familiar with asp.net, so I’m not sure what it gives you, but a common problem with a single-page app using a lot of jQuery is that it can quickly become unmanageable, especially if you are trying to coordinate lots of elements of a page (or worse if you are storing state/information in the DOM). A popular approach, and what I’d recommend, is to use a client-side javascript framework like backbone (although there are a lot of options out there, knockoutjs seems to be pretty popular with microsoft developers). It give just enough structure to keep things reasonable. To answer you other questions, I’m a fan of using only as much as you need and your approach sounds fine.

Related questions

Description : What and the Difference Between ASP.NET and MVC?

Last Answer : Asp.net system is a part of a .net platform for building, deploying and running web applications. We can build up a web application by using both Asp.Net Web Form and Asp.Net MVC. In ... of the differences in more detail. Difference between Asp.Net MVC and Web Forms:Our Company: Binary Informatics

Description : Which is better between PHP and ASP.net?

Last Answer : answer:I prefer PHP. It is well documented and very portable. ASP is non starter for me since I refuse to use IIS. I like Ruby and Python too. But when I have to start a project from scratch I use PHP and CodeIgniter.

Description : Telerik ASP.NET RadControls, anyone have experience styling these things?

Last Answer : Telerik has a tool, called Visual Style Builder, which will help you style their ASP.NET controls: http://www.telerik.com/products/aspnet-ajax/visual-style-builder.aspx The tool can be run ... check the documentation for instructions: http://www.telerik.com/help/aspnet-ajax/ajxajax.html Good luck!

Description : How do you have Ajax requests fade in with jQuery?

Last Answer : I’m not entirely sure how you would do this in jQuery since I use Prototype, but my usual method is: 1) Load the content into a hidden container 2) onSuccess, fade in the hidden container housing the content I’m sure there’s a similar method in jQuery.

Description : Dojo vs. JQuery?

Last Answer : I use both at work. I prefer jquery for it’s speed, succinctness, and consistency. However, if you are interested in UI/widgets/etc. I would recommend dojo. In my experience, dijit (the widgets built on top of dojo) are superior to jquery-ui.

Description : Is JQuery much slower than pure JavaScript ?

Last Answer : answer:You might be correct, there can potentially be more abstraction in JQuery with what you are doing when compared to pure JavaScript. But do note, JavaScript is client side based so it depends on your ... But if you are OK with the delay then keep using JQuery, if not, back to pure JavaScript.

Description : How, in javascript/jquery, can I change what "this" refers to in an event handling function?

Last Answer : By using the call and apply prototype methods of Functions. For example: function example () { console.log(this); } example.call(window); this will be the window variable. example.call( a string'); this will ... 2'); Hope this helps. If you need any more help with this, feel free to just ask.

Description : How can I add HTML markup to this ajax result?

Last Answer : Need Answer

Description : Executing JavaScript in a page retrieved using AJAX?

Last Answer : Would assigning the scripts in page B to an “onload” event handler not work? (I’m new to this, but that seems possible. Forgive my kneejerk response.)

Description : What is the best way to learn AJAX?

Last Answer : If you're planning on learning AJAX for creating a websites (like this one), you should probably look into AJAX Libraries... which not only make AJAX easier to approach, but are also a great way to get started, because many have tutorials and documentation.

Description : What is the best platform for buildinga socail site; Python, ROR, or ASP.Net?

Last Answer : I would probably go with Django if you are down with Python. I hate RoR with a passion. Have you looked at any of the PHP based MVC frameworks? I’m fond of CakePHP myself. And I know lots of people like to hate on PHP, but it is fast and it works.

Description : Is there a BitTorrent Tracker written in ASP.NET (C#)?

Last Answer : I haven't seen one. I think you'd also have slightly more luck searching for an asp.net vbs version. I prefer c# as well, but I think we're the minority.

Description : Asp.net or php?

Last Answer : PHP, or if you’re really ambitious try out Python and/or Ruby on Rails. I would stay oooooooh so far away from http://Asp.net though…it’s tied to MS and thus HAS to (by default of course) be evil.

Description : Are ASP.NET and ASP.NET Core the Same?

Last Answer : .NET Framework is built for Windows only where as .NET Core is both open source and cross-platform. It further comes with several new features to simplify development and testing of desktop, ... . Side-by-side app versioning when targeting .NET Core. Tooling that simplifies modern web development.

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger. 

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger.

Description : What is the last stage of the Web forms life cycle in ASP.Net?  A) Page_Load B) Page_Unload C) Page_Init D) Validate

Last Answer : What is the last stage of the Web forms life cycle in ASP.Net?  Page_Unload

Description : What data types do the RangeValidator control support in ASP.Net?  A) Integer, String and date B) Integer, String and float C) Integer, String and bool D) Integer, unshort and date

Last Answer : What data types do the RangeValidator control support in ASP.Net?  Integer, String and date

Description : What ASP.NET object encapsulates the state of the client and the browser?  (1) Application object. (2) Session object. (3) Response object. (4) Request object. 

Last Answer : Session object.

Description : Will using .NET 3.5 server side for a web site place any notable restrictions on what web browers can use the site?

Last Answer : .NET 3.5 VSTS feature won’t restrict you on any navigation features.VSTS is solely browser independent.You could publish your site on any browser, but you need to do some customization while using firefox.Some addin features are needed to make your Server side setup function properly.

Description : What replaces the System.Data.OracleClient in .NET Framework 4.0?

Last Answer : Hmm. Unfortunately I am not familiar with System.Data.OracleClient, but I would guess that Oracle supplies a .NET connector that you can use in your code. I say this becaues MySQL provides one that ... on their site. Just do some Googling for access oracle database C# or something like that.

Description : Do I have to give up my source code to a .NET DLL I wrote?

Last Answer : It depends on the contract that you had with the client. You might want to check Free Lance Switch. It’s a community of Freelance designers/coders. They might be able to help you out more.

Description : Does anyone know which is a good Grid control to get for .NET?

Last Answer : Of the ones that I’ve used in the past, i always found the Infragistic controls to be top class. Having said that though, I always found the Janus grids the prettiest. So for functionality I’d go with Infragistics, for appearance, Janus.

Description : Why are content management frameworks like Drupal so much more popular than MVC framework like CakePHP, but so much less fun to develop with?

Last Answer : I’m not sure what your question is. It’s the responsibility of an experienced developer to pick the framework that best suits the site he’s trying to build. There are many options because there are many types of sites, and there’s no single best solution for all problems.

Last Answer : MVC - Maha Vir Chakra

Description : Which MVC is struts2 based on ?

Last Answer : Ans. MVC2

Description : Is there a website that shows all the English words, idioms, etc ever invented, including archaic, unofficial, and newest words that have just been invented?

Last Answer : The problem with such a lexicon would be that there have been a lot of slang, dialect, idioms, and unofficial words that 99% of people have never heard of. Besides that, the English language is ... pretty good vocabulary. Hopefully, someone will recommend some. I am unable to do this at the moment.

Description : What was the name of the Albert Einstein episode that just aired?

Last Answer : Could it have been Einstein’s Big Idea on Nova?

Description : How do you get the "Loading..." or "Buffering..." images over videos that are played on video websites like youtube

Last Answer : answer:If you’re looking for a static image, you can just take a screenshot when the “Loading…” or “Buffering…” frame appears. If you’re looking for a spinner image, you can build a customized one here.

Description : How would you form an if statement in a jQuery function, then call that function using a .click() handler?

Last Answer : Can you show us what your current code looks like? Perhaps you could paste it to http://jsfiddle.net/ or https://gist.github.com/ and give us a link? It’s easier answer if we’re referencing the same things.

Description : How do I make my jQuery slideshow resize to window?

Last Answer : http://www.buildinternet.com/project/supersized/

Description : Does Jquery Hide content from Search?

Last Answer : It should as long as the content is in the page and not called as a XMLHttpRequest. AKA as AJAX.

Description : How can I write Jquery codes to select a certain element?

Last Answer : Try $(‘div.FatherDiv div.Common:first-child’)

Description : Make a whole blog with jQuery, is it possible?

Last Answer : I would get started with HTML. It seems you fundamentally don’t understand what jQuery is—it’s a library for a language called Javascript which is a client-side scripting language that is used in addition to HTML. I would highly recommend using http://www.w3schools.com/.

Description : Is there a simple flash or jquery code that can do this?

Last Answer : try searching for jquery lightbox I haven’t used a lot of them, but thickbox is pretty good. Here’s another list.

Description : Why is jQuery so much more popular than Prototype and Scriptaculous?

Last Answer : Some reasons off of the top of my head: 1. It is smaller 2. It is faster 3. It is easy to extend (plugins and such) 4. It is true to javascript. Prototype is like a ruby-ized javascript

Description : JQuery: wait for other event to finish?

Last Answer : JQuery uses callbacks as an argument to nearly every animation function.. It works by passing a reference to the function you wish to call in the same manner you are passing a new function with the a.click ... #photoViewer').fadeIn(250); }); // close fadeOut() callback }); // close click() callback

Description : MooTools or JQuery?

Last Answer : I looked at both MooTools and JQuery, but ended up choosing Prototype. I prefer the syntax. Check out The Bungee Book.

Description : JQuery plugin to give a really large table a scollbar?

Last Answer : this isnt so much a Javascript problem, but a CSS problem. However, tables are known to be finicky about CSS at the best of times, and scroll bars are probably the worst thing to try and do :/ ... possible to do, but its going to be buggy and maybe even broken completely in browsers such as IE6.

Description : jQuery or Mootools?

Last Answer : DOMAssistant ;-) Seriously, though, it's pretty much impossible to answer your question unless you tell us more. Specifically, what is/are your use case(s)? What are you trying to do that you want ... What do you value in a library (e.g., comprehensiveness? smallest possible download? ease of use?)?

Description : Could I use ASP,PHP,JSP all in one website?

Last Answer : i use my psp at work all the time.

Description : Do I need to trim asp radius that has seeded or part that looks like skinny bush

Last Answer : Need Answer

Last Answer : ASP - Active Server Pages

Description : How long is the online course that offers ASP training and does it offer certification?

Last Answer : There are different online courses available for ASP (Active Server Pages) training. The online ASP training courses tend to average around six weeks in length, and some do offer Web certification after ... get you a better grade. You can also continue you ASP training as new technologies devellop.

Description : One round of Edman degradation of the peptide: H2N- Gly-Arg-Lys-Phe- Asp- COOH would result in which of the following structures or their phenyl isothiocyanate derivatives? (A) H2N-Gly-Arg-COOH + H2N-Lys- Phe- Asp- ... C) H2N-Arg-Lys-Phe-Asp-COOH + Gly (D) H2N-Gly-Arg-Lys-COOH + H2N-Phe -Asp-COOH

Last Answer : Answer : C

Description : Min and Max cash balance for each SO will be fixed by a) Head post master b) Inspector/ ASP of the Sub division c) PMG d) Divisional Supdt.

Last Answer : d) Divisional Supdt.

Description : The ______RMS must inspect every ______at intervals of about ____such offices and sections in his sub division as are assigned to him by the ______ a) ASP, twelve months six months, Head of the Circle ... c) Sub divisional Inspector, twelve months six months, Head of the Circle d) None of these

Last Answer : c) Sub divisional Inspector, twelve months six months, Head of the Circle

Description : Due mail and sorting list a particular PO is issued by a) The PM of the concerned PO b) Sub divisional Inspector c) The supdt of Post office concerned d) ASP

Last Answer : c) The supdt of Post office concerned

Description : What automates business processes? a. Workflow b. ASP c. Workflow system d. EIP

Last Answer : c. Workflow system

Description : The language which was used to build Internet Pages in the beginning of Internet Technology is (1) XML (2) HTML (3) DHTML (4) ASP

Last Answer : HTML