idusty
asked on
How to close ajax requested page
Hi Experts,
I have an ajax request in order to load a php file, which essentially displays a pop-up. I use the code below:
It works great, but how could I close it in the same elegant way as I open it? Maybe something like the following?
Thanks in advance.
I have an ajax request in order to load a php file, which essentially displays a pop-up. I use the code below:
$('input[name="rsrvButton"]').click(function() {
mygetrequest.open("GET", "includes/content/bs/b_popup-reserve.php?bookingData=" + $(this).attr('id'), true);
mygetrequest.send(null);
e.preventDefault();
});
It works great, but how could I close it in the same elegant way as I open it? Maybe something like the following?
mygetrequest.close()
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.