VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: kaiserdom on March 12, 2016, 17:42:16 PM

Title: Ajax Calls Keep Breaking Plugins - Sigplus
Post by: kaiserdom on March 12, 2016, 17:42:16 PM
Hello everyone.

I'm once again confused as it concerns Ajax calls which keep breaking JavaScript of Joomla Plugins. I installed Simple Image Gallery (SigPlus) and loaded an image gallery in a product details page. Everything had been okay, until  I called AJAX through product multi-variant selection,which broke the plugin's JQuery. Is there a way to fix problems emit from VM JavaScript Handler policy? It's very annoying that a Joomla based platform can't operate properly with popular Joomla plugins. If not, is there a solution for SIGPLUS working with VM3 product details view?

Thank you guys and have a nice day.

Joomla 3.4.8
Virtuemart 3.0.12
Title: Re: Ajax Calls Keep Breaking Plugins - Sigplus
Post by: PRO on March 12, 2016, 23:59:15 PM
no link?
Title: Re: Ajax Calls Keep Breaking Plugins - Sigplus
Post by: Milbo on March 13, 2016, 10:40:15 AM
The solution is simpel, just disable the vm ajax. I doubt that joomla solved this problem. Reloading JS via ajax is not trivial, because it must be  inline. Or you preload the gallery always and you need an extra js providing the event trigger to activate the js on the new "onready" event.

You can also rewrite the implementation of the JS, and use the vm js handler, which takes care of that.
Title: Re: Ajax Calls Keep Breaking Plugins - Sigplus
Post by: kaiserdom on March 14, 2016, 19:45:55 PM
I decided to use the Sigplus Module  instead, just below product details area,  without having to interfere with AJAX calls.