Answer the question
In order to leave comments, you need to log in
How to load only part of html via ajax in fancybox 3?
There is an html file that contains blocks with pictures:
<html>
<head></head>
<body>
<img src="img/alie-parusa-bg-1.jpg" alt="" id="one">
<img src="img/construction-phase-bg-1.png" alt="" id="two">
<img src="img/img-for-slider-1.jpg" alt="" id="three">
</body>
</html>
<a" data-type="ajax" data-src="plan-floor-pop-up.html #one" data-filter="#one" data-fancybox href="javascript:;" class="fancybox.ajax select-apartment-table-section__floor-block">
Answer the question
In order to leave comments, you need to log in
Through AJAX, only the entire document is loaded from and to. This is technically impossible. Be it html, text, xml or json.
Usually they use, for example, get or post requests to get only certain data, and not all at once. You can try to get dirty in the backend and set up your own bridge, which will take data from the final site, filter it and give your script only what it needs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question