I am trying to pass $reportID to a colorbox plugin like so:
// Colorbox dialog window for price report
// Once dialog loaded append navigation header
$('.w_price_assess p.price_report > a').colorbox({
title: 'Price report',
transition: 'elastic',
innerWidth: '800px',
innerHeight: '650px',
opacity: '0.5',
onComplete: function() {
// Call the dialog header and append
$.ajax({
type: 'GET',
url: DashboardApplicationRoot + 'PriceReport/' + $reportID + '/header',
dataType: 'html',
cache: false,
success: function(data) {
$('#cboxTitle').append(data);
// re-initialise form styling
//$('form.jqtransform').jqTransform();
},
error: function(xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
// re-initialise scroll bars
$('#cboxLoadedContent').jScrollPane();
$('#cboxLoadedContent table').removeAttr('width');
$('.Section1').wrap('<div class="print_me" />');
$('.Section1').css({
'width': '95%',
'margin': 'auto'
});
$('.Section1 table').css({
'width': '100%',
'margin': 'auto'
});
$('#cboxLoadedContent > div').addClass('dialog_loaded');
},
onClosed: function() {
// fixes scroll bar duplication bug
$('#cboxContent .jScrollPaneContainer').remove();
}
});