function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
komathipriyakomathipriya 

calling script in parent page from the Child page

Hi,
i'm using YAHOO.widget.Panel with iframe to show a popup window.

below is the script used to do the same.

 

YAHOO.force.com.showComment = function() {     

 

  document.getElementById("cmdframe").setAttribute("src", "");            document.getElementById("mycomment").style.display = "block";            document.getElementById("cmdframe").setAttribute("src", "https://c.ap1.visual.force.com/apex/Sample");     

YAHOO.force.com.myDialogC.show();       

 }       

 

   YAHOO.force.com.hideComment = function() {       

    document.getElementById("cmdframe").setAttribute("src", "");     

      YAHOO.force.com.myDialogC.hide();   

    }


Now how to close the iframe from the popup window?if i click a Save button in the popup window, it should do some action and the iframe should closed, without refreshing the parent window.
i want to call YAHOO.force.com.hideComment to close the panel which is in the parent window.

 

 

Or is there any way to close the i frame from the loaded child page without referishing the parent page.