IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Object variable in script block

  • 1.  Object variable in script block

    Posted Fri July 15, 2011 07:57 AM

    I have a search popup window that opens when the user enters some search criteria on the main window in our application. I need to access some funtions on the popup from the main window. I am unable to do so since the variable which holds the object returned by ‘window.open’ is cleared every time the main window refreshes although the pop up is still open. How do I get the object in the main window to remain available to me for later use?
    Below is the JavaScript present in the main window:
    var leftPanelLookup;
    function fnSecSearch(url)
    {

    leftPanelLookup = window.open(url, “Left Panel”);
    leftPanelLookup.focus();
    }

    function mainShowPopup()
    {

    leftPanelLookup.focus();
    }


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine