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
Expand all | Collapse all

Object variable in JavaScript

  • 1.  Object variable in JavaScript

    Posted Fri July 15, 2011 12:54 PM

    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 functions 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();
    }

    Any help would go a long way!


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


  • 2.  RE: Object variable in JavaScript

    Posted Mon July 18, 2011 04:49 PM

    Hmm, this might be tricky. Do you have to do full window refreshes?


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