0
dynatree 노드의 노드 을 클릭하면 jsp 페이지 또는 innerHTML (HTML 컨텐츠를 추가 함)을 표시하려고합니다.Dynatree 노드의 노드에서 onClick을 클릭하는 방법
코드에 표시된대로 시도하고 있지만 작동하지 않습니다.
감사를 도와주세요!
// 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