2 Replies Latest reply on Aug 24, 2010 10:08 AM by MacLeod7222

    How to call Flex app from Javascript in portal question

    MacLeod7222

      I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.

       

      <script language="JavaScript" type="text/javascript">

       

              AC_FL_RunContent(
                          "src", "<%= srcPath %>",
                          "id", "<%= (String)request.getAttribute("portlet_name") %>",
                          "name", "<%= (String)request.getAttribute("portlet_name") %>", 
                          "width", "<%= request.getAttribute("width") %>",
                          "height", "<%= request.getAttribute("height") %>",
                          "align", "middle",
                          "quality", "high",
                          "FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
                          "allowScriptAccess","sameDomain",
                          "type", "application/x-shockwave-flash",
                          "pluginspage", "http://www.adobe.com/go/getflashplayer");         
      </script>