Portlet

i have used protlet

i want to delete a item displayed in the portlet

i call function in the controller class

i delete it

but how to refresh the page

i.e i want to refresh the widget only and not the whole page

can i do it

This is AJAX functionality.  You can do it, and the included JQuery library will make the job quite easy.  You should read up on JQuery’s AJAX functions.  http://docs.jquery.com/Tutorials

The action that you use with your AJAX call should return the new content that you want to put in your portlet.

cant i do it with only ajax??

do i need to use jquery

why need of jquery??

Quote

cant i do it with only ajax??

do i need to use jquery

why need of jquery??

You need jquery because you probably wanna use some library to support you with AJAX. If you are bored you can use your own javascript of course.

You can use jquery to do something like this

$('#element').load('/path/to/your/controller/action') which is gonna load the output of your specified controller action into the specified element. Read up on the jquery docs and you'll find it to be really, really easy to handle