Topic: BUG: defining custom javascript includes

xajax v5.0 final has really seriou issues with generation of javascript script stuff which has to be included into the header of webpage for xajax to work properly.

Issue #1: unable to set custom javascript filename. array operators fail in xajaxDefaultIncludePlugin.inc.php.

Code: PHP

$this->xajax->configure('javascript URI', '/js/xajaxc/');

$this->xajax->configure('javascript files', array('test.js'));

or

Code: PHP

$xajaxJS=$this->xajax->getJavascript('/js/xajaxc/', array('test.js'));

both generate this:

Code: PHP

<script type="text/javascript" src="/js/xajaxc/t" charset="UTF-8"></script>

Last edited by seven[hr] (2009-07-15 3:10:10 PM)

seven | the witchdoctor