You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ajax class does not load javascript/css files. The problem lies in loadCssJs() method around:
foreach ($files['css'] as $file)
if ($file['include']) {
ob_start();
include($file['src']);
and similar loop for jscript. CJLoader returns array key $file['string'] instead of $file['src'].
Second bug, in case of js files:
foreach ($files['jscript'] as $file)
should be
foreach ($files['js'] as $file)
as CJLoader returns 'js' key, not 'jscript'.
There's also one more (potential?) bug:
$RI_CJLoader->set(array('ajax' => true, 'load_global' => false, 'load_print' => false));
generates warrning as set takes two parameters. As far as I can tell it should be changed to:
$RI_CJLoader->set('ajax', true);
$RI_CJLoader->set('load_global', false);
$RI_CJLoader->set('load_print', false);
Regards,
data-digger
The text was updated successfully, but these errors were encountered:
Hi,
Ajax class does not load javascript/css files. The problem lies in loadCssJs() method around:
foreach ($files['css'] as $file)
if ($file['include']) {
ob_start();
include($file['src']);
and similar loop for jscript. CJLoader returns array key $file['string'] instead of $file['src'].
Second bug, in case of js files:
foreach ($files['jscript'] as $file)
should be
foreach ($files['js'] as $file)
as CJLoader returns 'js' key, not 'jscript'.
There's also one more (potential?) bug:
$RI_CJLoader->set(array('ajax' => true, 'load_global' => false, 'load_print' => false));
generates warrning as set takes two parameters. As far as I can tell it should be changed to:
$RI_CJLoader->set('ajax', true);
$RI_CJLoader->set('load_global', false);
$RI_CJLoader->set('load_print', false);
Regards,
data-digger
The text was updated successfully, but these errors were encountered: