[Plugin: Google AJAX Translation] “Error: jQuery(a).translate is not a function”
-
When I tried to use the Google AJAX Translation plugin (installation is completed successfully, I can see the Translate button on my blog and the popup window with all the language), the text does not get translated and I get a Javascript error in the Firefox Error Console:
Error: jQuery(a).translate is not a function
Source File: http://mywebsite/blog/wp-content/plugins/google-ajax-translation/jquery.translate-1.3.9.min.js?ver=1.3.9
Line: 10The “jQuery(A).translate is not a function” error is caused because of a name conflict within jQuery. My blog already has other plugins with their own copy of jQuery, and therefore since the Javascript naming is global, there is a conflict.
There is a way to fix this naming problem according to
http://devoracles.com/jquery-error-documentready-is-not-a-function-sureThe code should look like
<script src=”prototype.js”></script>
<script src=”jquery.js”></script><script>
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(‘div’).stuff();
//notice, that the $sign has been replaced with the word jQuery
});
// And you can use Prototype with $(…)
$(‘id’).hide();
</script>
- The topic ‘[Plugin: Google AJAX Translation] “Error: jQuery(a).translate is not a function”’ is closed to new replies.