ok, i solved my problem like this :
in the file « ajaxSearchRequest.class.inc.php »
line 45 :
function doSearch($searchString, $advSearch, $cfg, $bsf, $fClause) {
i just put « $advSearch = "exactphrase"; »
just after the « global $modx »
c’est un tantinet du bricolage, but it seem to work !!
thanks for your fast help
-
- 1,717 Posts
A wrong initialisation in the jsscript!
Take the jsfile attached (remove the .patch extension) and drop it in the js/ajaxSearch1 folder. This should solve this bug for mootools 1.2
-
- 1,717 Posts
Don’t forget to clear your browser cache before test it
Ooops… just tried it and :
SyntaxError: Parse error
et
indicator.white.gifFailed to load resource: the server responded with a status of 404 (Not Found)
-
- 1,717 Posts
It works locally on my demo site with [!AjaxSearch[*asversion*]? &advSearch=`exactphrase` &jscript=`mootools2` &parents=`24`!]
What is your syntax Error ? Have you modified some code ?
-
- 1,717 Posts
Apologies. Open the js script and replace var _base=’assets/snippets/ajaxSearch191/’; by var _base=’assets/snippets/ajaxSearch/’;
As I use several AS version, all the js are version dependant.
no,
just removed my previous modification in the php
function doSearch($searchString, $advSearch, $cfg, $bsf, $fClause) {
global $modx;
$advSearch = "exactphrase";
wich works fine for my problem, and put your new js file in place…
i just re-modified the php,
maybe youve got an instant messaging or something like ichat / icq if you want to test it will be easier…