11/19/13

Loading iFrame external content into bootbox modal - twitter bootstrap

I used to use fancybox to deliver iframe modals but have found that the current version of Twitter Bootstrap for some reason conflicts with fancybox. The only reason I was using fancy box was that I wanted an easy way to modal iFrame external content (lazy man ajax)  - so I now had to find a way to use stock Twitter Bootstrap modals to deliver iFrame content.

Luckily this turned out to be pretty easy.

Standard modal HTML stuff by simply plugging in the iframe code within the widget content div.
The result is a frameless iframe'd content section within the standard bootbox modal window. The harder part is then connecting this strategy to dynamic content - that post will come next.


No comments:

Post a Comment