Here i am ))
I don’t know how pleasant with post could be for anybody, but for me it was actual, until i found the way myself.
The problem is ModxGallery embedded views (slimbox, lightboxv2 etc.) sometimes doesn’t work with AjaxSearch call on one page.
In my situation the problem was these two snippets use .mootools library, but link to different folders for it. And IF there are different versions of mootools in these folders, one of call will not work.
You can SOLVE the problem putting the same version of mootools to both folders, or change in one of two snippets call the way to mootools. For AjaxS it is &jsMooTools - Location of the mootools javascript library (manager/media/script/mootools/mootools.js by default)
p.s. IE7 doesn’t notice this problem. It works fine with it.
I had the same problem. Once I added the Ajax Search to a project site the MaxiGallery script stopped functioning: I would get the large images appearing on a blank fresh page.
After searching for "Ajax Search" in the MaxiGallery folder I found this post.
I then backed up the mootools.js file in the assets/snippets/maxigallery/slimbox/js/ folder. I then copied the mootools.js file from the manager/media/script/mootools folder and dropped it into the afore mention maxigallery folder. Both Ajax Search and the MaxiGallery script now function on the same page...
Nice!
Great, that this post was useful!
No, Thank You Sir!
That was a great post: informative and well explained.
I hate threads that raise some issue/problem with ensuing discussion but then the OP concludes with a "never mind, got it working" without presenting a real conclusion for others to follow...
there is also the &disable_js_libs parameter in maxigallery what can be used in such situations.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Doze, is that the more preferred solution?
Yes, if you look at maxigallery wiki page, &disable_js_libs parameter tells maxigallery that it should not include mootools etc libraries on the page, because they are included by some other snippet already or put manually to the template.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Yes.. well, see the HTML source of the rendered page and try to figure out what’s the problem. Hard for me to start guessing with such information.
Either there are still more than one mootools included on the page, or the included mootools script is a wrong version or there is some other js library that’s messing with mootools. Or something else.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."