File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC in AJAX

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • 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
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Peter Chase
Ranch Hand
Posts: 1970
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic