4 Replies Latest reply on Sep 18, 2008 9:44 AM by Wesley Hales

    Render ONLY portlet content

    Bryan Cantwell Newbie

      I have an ajax portlet in struts. It works on other portals that have a windowState of exclusive or solo. Jboss does not seem to have such a state and since my portlet will be deployed on many different JBoss portals, I do not have the luxury of customizing each one with this windowState customization.

      How can I have the following code return ONLY the result of this detail.jsp (the target of this url), so that it may be inserted into the div referenced ? :

      function refreshMe<portlet:namespace/>() {
       jQuery('body').css({cursor: "wait"});
       var url = "<portlet:renderURL><portlet:param name="_spage" value="detail" /></portlet:renderURL>";
       jQuery('div#<portlet:namespace/>targetDiv').load(url,{},
       function()
       {
       jQuery('body').css({cursor: "auto"})
       }
       );
       }