Link to home
Start Free TrialLog in
Avatar of idusty
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:
$('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();
});

Open in new window


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()

Open in new window


Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial