1

I have searched thoroughly on this but couldn't find any thing to resolve my problem. i have a tag on which i need to pass argument to knockout function alongside i have to show the results of bindings in a css modal so now the problem is my link is calling knockout function perfectly but my modal popup is not showing up. here is my link

 <a href="#openDetailModal" data-bind="text: $root.TotalEmail(),click:ContactLogDetail.bind($data,'2')">0</a>

here is my modal dialog

  <div id="openDetailModal" class="modalDialog" >
                    <div class="modal-dialog-xl">
                        <div class="modal-content">
                            <div class="modal-header">
                                <a href="#close" title="Close">
                                    <button type="button" class="close" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </a>
                                <h4 class="modal-title">
                                    Detail
                                </h4>
                            </div>
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="table-responsive">
                                            <table id="tblContactLog" class="table table-striped table-bordered">

                                                <thead>
                                                    <tr>
                                                        <th width="3%">SNo.</th>
                                                        <th width="4%">Registration No</th>
                                                        <th width="8%">First Name</th>
                                                        <th width="8%">Last Name</th>
                                                        <th width="8%">Contact</th>
                                                        <th width="7%">Message Subject</th>
                                                        <th width="7%">Message Description</th>
                                                        <th width="5%">Campaign Type</th>
                                                        <th width="5%">Date</th>

                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <!-- ko foreach: ContactLogList() -->
                                                    <tr>
                                                        <td width="3%" data-bind="text:$index()+1">1</td>
                                                        <td width="4%" data-bind="text:RegistrationNo">Some</td>
                                                        <td width="8%" data-bind="text: FirstName">1</td>
                                                        <td width="8%" data-bind="text: LastName">1</td>
                                                        <td width="8%" data-bind="text: Contact">Some</td>
                                                        <td width="7%" data-bind="text: MessageSubject">One</td>
                                                        <td width="7%" data-bind="text: MessageDescription">English</td>
                                                        <td width="5%" data-bind="text: CampaignType">1</td>
                                                        <td width="5%" data-bind="text: CreationDate">1</td>
                                                    </tr>
                                                    <!-- /ko -->

                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <a href="#close" class="btn btn-default " title="Close">Close</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

i tried using jquery call

$("#openDetailModal").modal('show')

it just fades my page but do not show dialog.

following is the link which explains a little of my problem. it does not work for me

Community
  • 1
  • 1
  • If I were you, I would replace your HTML with the sample code from the bootstrap website [here](http://getbootstrap.com/javascript/#modals-examples) and give it an id of 'openDetailModal'. That should rule out HTML format being the problem. If that doesn't work then I would explore other options. – Daryl Jul 06 '16 at 10:54

0 Answers0