2 comments on “How to Make Bootstrap Modals

  1. The AJAX example does not work for me 🙁
    Can you share the complete code please?
    How can bootstrap know to use ModalContent.html from href=”/modal/content/”?
    Even if i change to href=”ModalContent.html” it does not work 🙁

    • Alexander,

      Are you getting a 404 Error? I am using Django to resolve my URL “/modal/content/” and have my server return the ModalContent.html file. Depending on what web environment you are using the resolution of URLs is different. If you are getting a 404 error it is because the URL or file is not being found. Make sure the URL that is trying to access ModalContent.html really is the right one. Here is a link to a general overview of HTML and URLs, http://www.w3.org/TR/WD-html40-970917/htmlweb.html, but depending on your web developing environment (Django, PHP, AngularJS, etc.) the URL resolution may be different.

Leave a Reply