Close popover
Abhijit Saha (Abhijit_Saha)
Synechron Inc.
Lead Technology
Synechron Inc.
Abhijit_Saha Member since 2011 9 posts
Synechron Inc.
Posted: May 3, 2017
Last activity: August 23, 2017

How to View External Application in IFRAME Through HTTP POST in Pega

In our Application we have to show an External Application through HTTP POST and it would be in IFRAME. Is there a way to achieve this?

For POC Puspose, we used this below code. It doesn't bring anything in Pega; but in Stand Alone execution (save the code into .html file and open it in Browser) it populates result.


<html xmlns="">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='application/javascript'>
   function loadGraph() {
      var frm = document.getElementById("post_form");
      if (frm) {

 <body >
<form  action='' method='POST' id='post_form' target="output_frame">
      <input type='hidden' name='cht' value='lc'/>
      <input type='hidden' name='chtt' value='This is | my chart'/>
      <input type='hidden' name='chs' value='300x200'/>
      <input type='hidden' name='chxt' value='x'/>
      <input type='hidden' name='chd' value='t:40,20,50,20,100'/>
   <iframe   name="output_frame"  width="500" height="290" onload="loadGraph()">


Stand Alone Execution Result:

Pega Embeded Result:

In the Images Tab, we have used a Section with the HTML Code and onclick of that Tab, Code needs to be executed and the Result will be Populated as Chart.

Any advise please.

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.