Hello list,
I got the following JS-code:
(function($, undefined) {
$.widget('Example.example', {
_create: function () {
console.info('hello world!');
},_init: function () {
console.info('hello world!');
},
})
})(jQuery);
As well as
[{oxscript include='js/example/example.js'}]//file for the code above
[{oxscript add="alert('Hello World!');"}]
[{oxscript add="$('#testelement').example();"}]
I included these code-snippets on the details-page. All works fine when
loading the content for the first time. However, as soon as one chooses
a variant of an article, an ajax call is sent to the server. When the
callback arrives, nothing is happening (no call to _create nor _init,
however the oxid internal plugins work as far as I can verify this),
allthough all the neccessary JS-code is part of the server's response.
During investigation I found out that oxArticleVariant() can't be found
in oxajax's eval-method (un-uncomment the console-output), *although*
its functionality is provided and works (i.e. you can go on and choose
another variant, everything works as expected for variant-handling).
Are there any ideas of what might be wrong or is this an unknown bug?
I emphasize that problems only occur when an ajax-call was made.
Kind Regards,
Mitch
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general