Topic: No sJSURI? (xajax component could not be included)

Sometime last year, quite possibly when I upgraded to PHP5, I started getting this error from XAJAX:

Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
URL: xajax_js/xajax_core.js

The setup had worked fine previously.

I was digging into it today and I noticed this oddity:

ajaxIncludeClientScriptPlugin Object
(
    [sJsURI:xajaxIncludeClientScriptPlugin:private] =>

In other words, sJsURI isn't set, which apparently is causing our web server to look for xajax_js in the main directory.

Any idea what might be causing it?

Re: No sJSURI? (xajax component could not be included)

Hello,

Part of configuring the xajax object is to tell it where the xajax folder is located.

Something like $xajax->configure('javascript URI', 'xajax/');

Note the trailing '/' is required.

Hope this helps.

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: No sJSURI? (xajax component could not be included)

Huh. No idea why that worked before, but not now.

In any case, that was exactly what was needed to reset where XAJAX was looking for its JS files. Thanks much for the help!