Note that there are some explanatory texts on larger screens.

plurals
  1. POModal Body content gets replaced : Twitter Bootstrap
    primarykey
    data
    text
    <p>I am developing a website by using twitter bootstrap, smarty,jquery and php. and I am very new to Bootstrap.</p> <p>So I have prepared a page which collect applicant data.</p> <p><strong>html content</strong> :</p> <pre><code>{include file="admin/admin.header.tpl"} &lt;div class="summary"&gt; &lt;table class="table table-striped table-hover"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Applicant Name&lt;/th&gt; &lt;th&gt;Email&lt;/th&gt; &lt;th&gt;Mobile No.&lt;/th&gt; &lt;th&gt;Details&lt;th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; {foreach from=$totalApplicantSummary key=key item=value} &lt;tr&gt; &lt;td&gt;{$value.applicant_name}&lt;/td&gt; &lt;td&gt;{$value.email}&lt;/td&gt; &lt;td&gt;{$value.mobile}&lt;/td&gt; &lt;td&gt;&lt;a data-toggle="modal" href="?e={$value.email}&amp;fid={$formId}" data-target="#myModal" data-keyboard="false"&gt;view more&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; {/foreach} &lt;/tbody&gt; &lt;/table&gt; &lt;div id="myModal" class="modal hide fade in" aria-hidden="true" style="display: none;"&gt; &lt;div class="modal-header"&gt; &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt; &lt;h3 id="myModalLabel"&gt;Modal header&lt;/h3&gt; &lt;/div&gt; &lt;div class="modal-body" &gt; &lt;h1&gt;Hi&lt;/h1&gt; &lt;/div&gt; &lt;div class="modal-footer"&gt; &lt;button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"&gt;Close&lt;/button&gt; &lt;/div&gt; &lt;!-- Modal --&gt; &lt;/div&gt; &lt;/div&gt; {include file="admin/admin.footer.tpl"} </code></pre> <p>NB: <strong>admin.footer.tpl</strong> contains bootstrap.min.js and jquery.min.js .</p> <p><strong>What I want to do?</strong></p> <p>To view total applicant data I have given <strong>view more</strong> link which will be displayed in a MODAL.</p> <p>I have defined the modal as "#myModal" and for testing <strong>"HI...."</strong> as MODAL BODY CONTENT.</p> <p><strong>What is my problem?</strong> </p> <p><strong>View more</strong> link shows <strong>MODAL</strong> which contains the previous content (total page i.e applicant name, email, mobile along with header ,footer) instead of "HI....".</p> <p>So how to display <strong>Hi...</strong> instead of the whole page content.</p> <p>thanks in advance.</p> <p>For better reference to problem images of output are provided.</p> <p>Before view more link is clicked :</p> <p><img src="https://i.stack.imgur.com/ygS8k.png" alt="enter image description here"></p> <p>Modal content after the link is clicked:</p> <p><img src="https://i.stack.imgur.com/XTwVg.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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