0
我想要顯示一個jsp頁面或innerHTML(它將添加HTML內容),點擊 dynatree節點的節點。如何在Portlet上加載頁面點擊Dynatree節點上的節點
我正在嘗試它在代碼中顯示,但它不工作。
請幫忙
謝謝!
// Ajax call
$.ajax({
url : TREE_NAV_SERVLET,
type: "GET",
data: "pName="+node.data.title,
dataType : 'text',
success : function(responseHTML) {
alert("ResponseText :: "+responseHTML);//This is working fine
//not able to load this even though path is correct
$("[id=content]").attr("src",'/Path/JspToBeLoaded.jsp');
// or The following
//This loads the portlet with the with new
//content and removes the dynatree which is not required both should be there
//$("#content").innerHTML(responseHTML);
}
});
//Div tag which is the point where I want to display the data/JSP
<div id="content"></div> //Response goes here