I'm using AJAX and Lightbox to load a page. I will not post the whole code but the link I use to enable Lightbox and load the AJAX page is enabled like this:
<a class="lightbox" href="#" onclick="abrirPag('editandomi.php?I_POST=<?php echo $posts['ID'] ?>');">
TEXTO OU IMAGEM QUE TERÁ O LINK
</div>
The page editandomi.php
captures GET
o id
of that content and displays detailed information, however I want to improve this ... I want to type in Facebook when clicking image or video, a Lightbox opens, and the URL changes to:
https://www.facebook.com/
For something like:
https://www.facebook.com/photo.php?fbid=516159178490002&set=a.409523075820280.1073741826.100002877744748&type=1&theater
Clicking to close this Lightbox returns the URL to
https://www.facebook.com/
How to do this type of loading via AJAX?