Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter bootstrap remote modal shows same content every time
    primarykey
    data
    text
    <p>I am using Twitter bootstrap, I have specified a modal</p> <pre><code>&lt;div class="modal hide" id="modal-item"&gt; &lt;div class="modal-header"&gt; &lt;button type="button" class="close" data-dismiss="modal"&gt;x&lt;/button&gt; &lt;h3&gt;Update Item&lt;/h3&gt; &lt;/div&gt; &lt;form action="http://www.website.com/update" method="POST" class="form-horizontal"&gt; &lt;div class="modal-body"&gt; Loading content... &lt;/div&gt; &lt;div class="modal-footer"&gt; &lt;a href="#" class="btn" data-dismiss="modal"&gt;Close&lt;/a&gt; &lt;button class="btn btn-primary" type="submit"&gt;Update Item&lt;/button&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; </code></pre> <p>And the links </p> <pre><code>&lt;a href="http://www.website.com/item/1" data-target="#modal-item" data-toggle="modal"&gt;Edit 1&lt;/a&gt; &lt;a href="http://www.website.com/item/2" data-target="#modal-item" data-toggle="modal"&gt;Edit 2&lt;/a&gt; &lt;a href="http://www.website.com/item/3" data-target="#modal-item" data-toggle="modal"&gt;Edit 2&lt;/a&gt; </code></pre> <p>When I click on any of these link for the first time, I see the correct content, but when I click on other links it shows the same content loaded for the first time, it doesn't update the content.</p> <p>I want it to be updated every time its clicked.</p> <p>P.S : I can easily make it work via custom jQuery function, but I want to know if it's possible with native Bootstrap modal remote function, as it should be easy enough and I guess I am just complicating things.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload