The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Jquery Bootstrap-Modal issue/question. Re: Jquery Bootstrap-Modal issue/question.


Hi Siraero!

I’m not sure how the loadDetails function is being called, but you can just (1) dump the document ready and move the rest of the initialization code inside of it. Also, I’m not sure what myModal.load(); is supposed to do.

(2) When looking at the backdrop option, the descriptions reads “Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn’t close the modal on click.”. So all you should need to do is change that option. Here is what the code should look like (untested):

Now to have the details.html page inside of the modal. Just add it as an iframe. Try out this HTML:

<-- Modal -->