How to close ajax requested page

idusty
idusty used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2004
Commented:
You do not need to close anything. Once the file is received, the connection between you and the external page is closed.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial