Hi Fabiano,

I agree with pbreit:

This was the easiest and clearest explanation I saw:
>
> http://blog.assimov.net/blog/2012/03/09/ajax-content-in-twitter-bootstrap-modal/
>

What you need is the script in Mark Szcz comment:


<script type="text/javascript">

  $("a[data-toggle=modal]").click(function (e) {
  target = $(this).attr('data-target')
  url = $(this).attr('href')
  $(target).load(url);
  })
  
</script>

<div class="modal hide fade" id="myModal">
</div> <!-- /modal -->


I had to put both the script and the div at the bottom of the view to get 
the script to work.


Kind regards,

Annet. 

Reply via email to