Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
sairam nemani
how to make disappear messages like "Your Request Processed Successfully"
October 19, 2011 5:32 AM
Answer

sairam nemani

Rank: New Member

Posts: 11

Join Date: October 19, 2011

Recent Posts

Hi, i am using Liferay 6.x, when i create new user with proper input fileds and save it, it will give a message like "Your Request Processed Successfully"
but this same message is still remained on the top even though i navigate to password or user roles ...etc links provided on the right side of control panel.. how can i make that message diappaer once i navigate to another link. if i refresh the page it will go off but with out page refresh we need to disappear that is my requirement.
Any suggestion would be higly appreciated.
Ravi Kumar Gupta
RE: how to make disappear messages like "Your Request Processed Successfull
October 19, 2011 6:04 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

Thats not disappearing because all links provided on right side are just acting as anchor not a link to another page/location. You can modify this behavior using javascript.
Inspect that page you will find that you need to hide a "portlet-msg-success" classed element in division with id "portlet-wrapper-125" when a link is clicked in "menu-group" classed element.

So if in jQuery I was going to do that would write code like
1
2$(".menu-group a").click(function(){
3        $("#portlet-wrapper-125 portlet-msg-success").hide(); //this will hide only in user portlet. To remove globally use any of the classes .portlet, .portlet-content etc
4});

HTH
sairam nemani
RE: how to make disappear messages like "Your Request Processed Successfull
October 24, 2011 6:34 AM
Answer

sairam nemani

Rank: New Member

Posts: 11

Join Date: October 19, 2011

Recent Posts

Thank you Ravi.