Want to show the response text message ajax success function on another view page

**$.ajax({
            type:"POST",
            url:"<?php echo site_url(); ?>/Barcodescanner/Prepare_Csv_File",
            data:{
                po_number : po_number 
            },
            success:function(response){
                // alert(response);
                if (confirm('Are you sure?')) {
                    window.location.href = '<?php echo base_url(); ?>Barcodescanner?PO_Number=<?php echo $po_number; ?>';
                    var success = '<div class="alert alert-success alert-dismissible"><p><b>Success: </b>Prepared file for PO Number, <a href="/public/log_files/Barcode_Scanner_Report_File/'+response+'">Download</a></p><a style="margin-right: 13px;font-weight: bold;" href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a></div>';
                        
                     $("#response_msg").html(success);
                }
                
            }
            });**

I want to show that response_msg on the redirect page. I know how to show response_msg on the same page, but how can I show it on another page? please help me on that thanks in advance



Read more here: https://stackoverflow.com/questions/64940077/want-to-show-the-response-text-message-ajax-success-function-on-another-view-pag

Content Attribution

This content was originally published by Aravindaswamy M at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: