This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 1 year, 11 months ago.

Toastr on page load


  • erics121
    Participant

    Member Reply #5684

    Have never used toastr before so please excuse what may be a simple question. I want to use the toastr effect when a page is successfully saved.  Through PHP code upon saving, I have the code below being generated.  But still, I cannot get the toastr notification to show automatically.  Can you tell me what I am doing wrong here?  Thank you

    
    <script>
    jQuery(document).ready(function() {
    App.init(); // initlayout and core plugins
    Index.init();
    Index.initPeityElements();
    Index.initKnowElements();
    Tasks.initDashboardWidget();
    TableAdvanced.init();
    UIToastr.init();
    
    toastr.options = {
    "closeButton": true,
    "debug": false,
    "positionClass": "toast-top-center",
    "onclick": null,
    "showDuration": "1000",
    "hideDuration": "1000",
    "timeOut": "7500",
    "extendedTimeOut": "1000",
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
    };
    
    toastr.info("Information Successfully Updated","Form Data Saved");
    
    });
    </script>

     

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #7747

    Hi,

    Sorry for the late reply. Due to some issues seems we missed your reply here. If you need any further help please create a new topic or write to our support at support@keenthemes.com.

    ==================

    Just a friendly reminder: If you purchased Metronic 6 months ago then your included support subscription might be expired and to get any further support you will need to renew your support subscription. For further check please go to Metronic purchase page http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes.

    For more info please check:
    https://help.market.envato.com/hc/en-us/articles/208191263-What-is-Item-Support- or http://themeforest.net/page/item_support_policy

    Thanks.

Tagged: 

You must be logged in to reply to this topic.