Commit d4196c6e authored by sbade's avatar sbade

added code to remove frame container if exists in html page


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98566 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c489188c
...@@ -62,6 +62,13 @@ function createFusionChart(jsonObj, containerId, chartContainer,width,height,ima ...@@ -62,6 +62,13 @@ function createFusionChart(jsonObj, containerId, chartContainer,width,height,ima
/* Add 3 function for create dyanamic div for compliance Dashboard By Dhanendra On 28MAy2015 */ /* Add 3 function for create dyanamic div for compliance Dashboard By Dhanendra On 28MAy2015 */
function outerDiv(outerDivId,type, cssName) function outerDiv(outerDivId,type, cssName)
{ {
/*added code to remove frame container if exists on change of view by SWATI on 26 Aug 2015*/
var elem = document.getElementById("frameContainer");
if(elem!==null)
{
elem.parentNode.removeChild(elem);
}
/*Ended code to remove frame container if exists on change of view by SWATI on 26 Aug 2015*/
var outerDiv = document.createElement('div'); var outerDiv = document.createElement('div');
outerDiv.id = outerDivId+"Div"; outerDiv.id = outerDivId+"Div";
if(cssName == null) if(cssName == null)
...@@ -543,3 +550,15 @@ function createGaugeChart(jsonObj, chartContainer, height, width) { ...@@ -543,3 +550,15 @@ function createGaugeChart(jsonObj, chartContainer, height, width) {
} }
/* End Added function createGaugeChart by sachin for Gauge Chart on 28 Aug 15 */ /* End Added function createGaugeChart by sachin for Gauge Chart on 28 Aug 15 */
/*Added new method to call js function on link for bar by swati 18 Aug 2015*/
function linkFunction(metadataName, cellValue, propertyStr, urlStr, parameterListString, status)
{
createFrameContainer();
document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='99%' height='280' frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&FLAG=N'></iframe>";
}
/*Ended new method to call js function on link for bar by swati 18 Aug 2015*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment