I am trying to insert a webpage's html into a bootstrap 2.3.2 popover using the following:
$.ajax({
type:"POST",
url: "Ajax/getHtml",
data: { u : 'http://stackoverflow.com' },
dataType: 'html',
error: function(jqXHR, textStatus, errorThrown) {
console.log('error');
console.log(jqXHR, textStatus, errorThrown);
}
}).done(function(html) {
html = html.replace(/<script[^>]*>[\s\S]*?<\/script>/gi, '');
$link = $('<a href="myreference.html" class="p1" data-html="true" data-bind="popover">');
$link.data('content', html);
$(this).html($link);
// Trigger the popover to open
$link = $(this).find('a');
$link.popover("show");
});
This works fine but i want to size the output down to lets say 500 x 500 pixels. I checked out:
http://getbootstrap.com/2.3.2/javascript.html#popovers
But do not see a sizing option. How can I do this?