I am currently getting a snippet of the page and loading into bootstrap modal.
This section of the page includes jQuery needed to download Google Maps, but when the modal loads the content, all the scripts become fragmented so subsequently, the maps do not load.
Even if I directly paste the scripts inside the modal body class, they are still lost.
Is there a workaround for this?
What we are currently using to launch the modality is:
<a href="/stores .topclass" data-target="#StoresModal" data-toggle="modal">Launch demo modal</a>
I can provide additional code when used, if necessary, to respond accurately.
=== Edit: providing more code on request ...
Thus, we include a connection link that launches a boot modal. The link that launches the modal can be seen above, and here is the rest of the code regarding the modal .
What we want to download in a modal format is just a fragment of the page in /stores , all the code downloaded at this URL can be seen here . However, on this page we really want to load everything inside the .modal-container on line 192, but as needed, the scripts are outside the div in the same file, we donβt fix this when we try to load in modal mode. So before, our modal trigger looked like this: -
<a href="/stores .modal-container" data-target="#StoresModal" data-toggle="modal">Launch demo modal</a>
This led us to try to simply wrap the entire content of the file inside the div and call it content as a fragment of the page in a modal format, so that we can pull out the necessary scripts needed to load #map_canvas, but, alas, all scripts are removed from the modal. ..
Hopefully this will provide more explanation for what we are trying to achieve.
=== Edit 2: We really fixed it with a workaround, but it was a huge job, so post an answer as soon as I can ...