jQuery is to be used with Web Forms or HTML Forms? -
i studying asp.net , jquery, , found there several approaches creating forms in html.
being windows developer, find common methods following:
- html forms
- asp.net webforms
- asp.net mvc
- jquery
- ajax
now, understand little bit more differences. see html forms basic, can integrated jquery, asp.net webforms can integrated jquery.
a) can consider ajax useless simple webform (post-get of json) if use jquery?
b) can consider mvc simple webform?
c) 1 choose, , why?
thanks help, have read many websites i'm super confused!
edit--
more details: have backend provides jsons through rest calls, , need make pages (frontend) show result of calls (example: choose date in calendar, tell me if appointment available). server logic there, trying approach best way keeping sharp, cool , clean (and looking if possible!)
when right down it, there 2 ways create form , both use client side code.
- html
- javascript
in cases, using straight html better bet. (see progressive enhancement , unobtrusive javascript).
a form, however, useless without form handler, requires server side code. can use server side code generate client side code creates form itself.
asp.net group of server side technologies, of useful handling forms. there plenty of alternatives asp.net , i've used wide–ish selection of rather asp.net take following pinch of salt might little misinformed details.
webforms original asp.net way things. seek abstract of client side code away developer possible can create websites without understanding web standards. makes things quick , windows-like long don't stray outside lines, @ point becomes straitjacket.
asp.net mvc new (not new now) , shiny approach follows design pattern made popular in open source world ruby on rails (said pattern available in catalyst, django, cake, play!, , mojito (to name mvc framework 5 different languages)).
can consider ajax useless simple webform (post-get of json) if use jquery?
ajax term given sending http request, , processing response, using javascript , without leaving page. if want passing json , forth client have use ajax (any other approach raises question of "why json then?").
can consider mvc simple webform?
what's simple web form?
you need form of server side technology form on www. (javascript applications story).
which 1 choose, , why?
it's hard since "a web form" part of solution, not problem, , haven't said problem solving. in general though, use perl on server (since supported cpan) and, either use entirely handcrafted javascript, micro-library or two, or yui (depending on how complex problem was, , level of browser support needed). there lot of personal preference there though. selecting technologies based on skills have available better bet.
Comments
Post a Comment