coroico,
I think we have a communication confusion.
I got everything working yesterday.
The problem was always the use of var $jq = jQuery.noConflict();
I’m not exactly sure why but I presume that all references to $(somefunction) no longer work as the jQuery has been remapped to require $jq(somefunction). So the ajaxSearch-jquery.js breaks - as would any snippet included javascript using the $ shortcut.
My ongoing questions are what impact this has on using any Snippet/Module etc which uses jQuery. I’m guessing that jQuery.noConflict() can’t really be used with MODx in circumstances where Snippets like AjaxSearch are used (which basically means noConflict can be filed in the ’Never Use’ category). So this is an open question not an Ajaxsearch question specifically.
Regarding &jsjQuery we appear to have an even bigger comms failure.
I understand the Debug=`1` creates Log file which shows all the ’variables/constants/parameters’ that happen to be in use at the time the code is run in order to Debug problems.
When I use the following as a test I can see in the Log file that extractLength has changed from the default 200 to 99.
[!AjaxSearch? &debug=`1` &jscript=`jquery` &addJscript=`1` &jsJquery=`assets/jquery-ui-1.7.2.custom/js/jquery-1.3.2.min.js` &extractLength=`99` !]
But in my Source of the resulting web page I get the same jQuery added.
<script type="text/javascript" src="assets/snippets/ajaxSearch/js/jQuery/jquery.js"></script>
<script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch-jquery.js"></script>
This suggests that jsJquery is a Constant not a Variable or Parameter.
And therefore cannot be altered programmatically by changing the &jsJquery. Whether the Debug Log file is correct is hard to tell, I think it should reflect whatever settings are in place at the time. I think what you are saying is that some of the parameters are shown in the Log file with their actual current values only if they have a material impact on the actual search. Those that don’t directly impact the search are shown as having their Default values only.
I’ve been using the following Wiki entry for these settings. In it, &jsJquery is defined as a Parameter which has a default of AS_SPATH . ’js/jQuery/jquery.js’ This suggests it can be changed by the developer but I think you are saying it cannot be changed. I wonder if the Wiki is incorrect?
http://wiki.modxcms.com/index.php/AjaxSearch
I wonder if there is some confusion over Search Parameters and the Snippet Parameters.
Anyone else have an opinion?
Cheers