• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MVC in AJAX

 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kris,

I heard from some one that we can achieve MVC in client side using AJAX. are these is covered in your book? can you explain us some thing about this?

Thanks in Advance.
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Prabhu Venkatachalam:
Kris,

I heard from some one that we can achieve MVC in client side using AJAX. are these is covered in your book? can you explain us some thing about this?

Thanks in Advance.



I think, Ajax is not just client side technique. It requires server and client both to do magic...

Typical MVC is possible in Ajax also, sending all the Ajax request to single servlet (controller) and that controller will then decide which model to invoke... but view will be the same as we need to update the page which invoked the action...

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are not sure, Please let other people answer it.

Have a LOOK at this.

My question is how to achive MVC using AJAX and JavaScript? whatever you told is typical MVC we follow in JSP/Servlet.

I'm working on AJAX for past one year and I know how AJAX works.

Thanks for your reply.
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Web application that was originally developed without AJAX, but has been improved to use some AJAX for updating pages without reloading. The application uses MVC (via the Maverick MVC) framework for AJAX and non-AJAX. A request comes in to the controller, which puts together the model and forwards it to the view. The view renders HTML for non-AJAX requests, and XML for AJAX requests. Actually, one or two AJAX views are just plain text, because they return only tiny data for which the overhead of XML is not worth it.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic