3 Replies Latest reply: May 2, 2014 9:33 AM by KarenH RSS

    help with closing a pop-up window (opened with Skillbuilder popup) AND passing back a value to parent window

    KarenH

      I am using apex 4.2 along with the skillbuilder pop-up window.   The parent window (p110) opens a child using skillbuilders 2.0 popup.  The popup window (p114) passes back a value from a report (#VESSEL_ID#) after confirming with the user.

       

      For some reason, and I am certain it is simple syntax that I am not catching, when the user selects the #VESSEL_ID#, the appropriate confirmation message will appear, but the window does not close or pass the value.

       

       

      The field #VESSE_ID# has a URL Link  :

      javascript: closeMe(pVessel, psupplierVesselId);

       

      which calls the function closeME:

       

      <script language="JavaScript">

       

      function closeMe (pVessel,psupplierVesselId)

      {

      //alert(psupplierVesselId);

       

      if (psupplierVesselId !== "999999" || (psupplierVesselId == "999999" && confirm ("Reminder for Federal Dealers: when reporting from shore do not select UNKNOWN vessel")))

      {

      window.parent.$(window.parent.document).apex_model_page('close',pVessel);

      }

      {

      </script>

       

       

      any help is appreciated!  thanks

       

      Karen