خرید بک لینک

Vote count: 0

I have a php page to create an excel file and save it to a folder. I start from a page where user click on a button to start the script. My goal is to perform the following steps:

  1. run the script in another window (I am now using a small popup);
  2. when the script ends close the popup and in the main window display an alert to say that execution is ok;
  3. on alert close refresh the file list displayed in the main window.

I know how to do all these stuffs but one: how can i trigger any event (popup close and alert) when in the popup the script ends?

My actual code for the popup is the following:

$('#elabora').click(function(e){
    e.preventDefault();
    var data = $('#data_rif').val();
    if (data=='') {
        $("#spnmsg").fadeTo(200,0.1,function(){
            $(this).removeClass().addClass('spn_error').html("Inserisci una data di riferimento per l'elaborazione").fadeTo(900,1);
        });
    }else{
        window.open('sofferenze/trxls.php?data='+data, "popupWindow", "width=10,height=10");
//here is where I want to trigger that when trxls.php ends the alert should be displayed.
    }
});

asked 2 mins ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 26 بهمن 1394 ساعت: 21:34

صفحه بندی