How to show html data using ajax on new window - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, June 29, 2023

How to show html data using ajax on new window

$.ajax({
    url: "url.php",
    type: "POST",
    data: { bid: z, mpid: x, pid: y, radio: b, quan: c },
    async:false,
    success: function (data) {
        if (data.status == 'success') {
            go_success = true;
        }
        else if (data.status == 'error') {
            alert("error");
        }
    },
    error: function () {
        alert("error");
    }
});

if (go_success) {  
    window.open(newurl.php);
}

want to open new pop like window on top on main page showing data being received using ajax.

pl help



source https://stackoverflow.com/questions/76575859/how-to-show-html-data-using-ajax-on-new-window

No comments:

Post a Comment