Good morning
I'm a component writer and I use the &format=csv parameter in the querystring to inform my component to send back a CSV file. It works fine on my development site.
On my demo site, it doesn't work anymore : when viewing the controller returned info, I see CSS and JS coming from Community Builder. It doesn't has sense since the ouptut is not HTML.
Question : am I doing something wrong ? is there any parameter in CB to avoid this ?
Thanks a lot !
Code:
<link type="text/css" rel="stylesheet" href="http://avonture.be/allevents/components/com_comprofiler/plugin/templates/default/template.css"/>
<script type="text/javascript"><!--
if ( typeof window.$ != 'undefined' ) {
window.cbjqldr_tmpsave$ = window.$;
}
if ( typeof window.jQuery != 'undefined' ) {
window.cbjqldr_tmpsavejquery = window.jQuery;
}
--></script><script type="text/javascript" src="http://avonture.be/allevents/components/com_comprofiler/js/jquery-1.5.2/jquery-1.5.2.min.js?v=d175b87bb87b984d"></script><script type="text/javascript"><!--
var cbjQuery = jQuery.noConflict( true );
--></script>
<script type="text/javascript"><!--
window.$ = cbjQuery;
window.jQuery = cbjQuery;
--></script><script type="text/javascript" src="http://avonture.be/allevents/components/com_comprofiler/js/tabpane.min.js?v=d175b87bb87b984d"></script>
<script type="text/javascript"><!--
cbjQuery( document ).ready( function( $ ) {
var jQuery = $;
var cbshowtabsArray = new Array();
function showCBTab( sName ) {
if ( typeof(sName) == 'string' ) {
sName = sName.toLowerCase();
}
for (var i=0;i<cbshowtabsArray.length;i++) {
for (var j=0;j<cbshowtabsArray[i][0].length;j++) {
if (cbshowtabsArray[i][0][j] == sName) {
eval(cbshowtabsArray[i][1]);
return;
}
}
}
}
});
if ( typeof window.cbjqldr_tmpsave$ != 'undefined' ) {
window.$ = window.cbjqldr_tmpsave$;
}
if ( typeof window.cbjqldr_tmpsavejquery != 'undefined' ) {
window.jQuery = window.cbjqldr_tmpsavejquery;
}
--></script>
Joomla 2.5.6, CB 1.8.1
Testing url :
avonture.be/allevents/fr/?option=com_allevents&view=event&layout=participants&task=display&ei=3&tmpl=component&format=csv