I want to recuperate variable "idl" in the function remote i have use window.var but that's not work. there is my code.
function stbStatus(stbInfo){
$.post(
        'indexFunctions.php',
        {
            stbInfo : stbInfo
        },
                    function(data){
                        $('#screenshot').html(data);
                        $('#refresh').click({param:status},screenshotRefresh);
                        $('form').click(function() {
                         window.idl = this.id;
                        ({param:status},remote);
                         });
                    }
                );
            }
        );
    },
    'json'
);}
Function Remote:
function remote(event){
    event.preventDefault();
    $('html').css('cursor','wait');
    var key = $("#"+window.idl).attr('class');
        $.get(
            'indexFunctions.php',
            {
                keyName: key
            },
            function(){
                if (key!="KEY_POWER" && key!="RESET")
                    screenshotRefresh(event);}
Please help me thank you in advance.
 
    