Boostrap Modal Remote Url

1stly, i like to thanks for such a great ext !

Here I am trying to archive calling remote url in modal popup. I am searching around and have not found an good link to go…

In twitter boostrap document state:

But i failed to load my url (create form) while i do in yii boostrap ext below is my code:

<?php $this->beginWidget('bootstrap.widgets.TbModal', array('id'=>'myModal')); ?>

<div class="modal-header">

    <a class="close" data-dismiss="modal">&times;</a>

    <h4>Modal header</h4>


<div class="modal-body">

    <p> Modal body </p>


<div class="modal-footer">

    <?php $this->widget('bootstrap.widgets.TbButton', array(


        'label'=>'Save changes',

    )); ?>


<?php $this->endWidget(); ?>

<?php $this->widget('bootstrap.widgets.TbButton', array(

    'label'=>'New Project',


    'url'=>$this->createUrl('create'), // My Remote URL





)); ?>

Appreciate any help.



This is I found: http://stackoverflow…ntent-everytime

This is my decision:

$(document).on('click','a[data-toggle=modal]', function() {


	var $modal=$($(this).data('target'));