jQuery ajax with liferay 6.0.5
<portlet:actionURL var="ajaxURL" name="add" windowState="< %= LiferayWindowState.EXCLUSIVE.toString()%>" />
<form action="" name="fm" id="fm" method="post">
<a href="#" onclick="submitForm();">confirm < /a>
</form>
<script type="text/javascript" >
function submitForm(){
jQuery.ajax({
type: 'POST',
url: '<%= ajaxURL % >',
success: function(data){
jQuery('#p_p_id<portlet:namespace/ > .portlet-content').html(data);
}
});
}
</script >
1 comment :
how to send data or parameter...plz reply me
Post a Comment