作者:步履乘风 | 来源:互联网 | 2023-05-17 22:18
Imhavingaproblemtryingtogetworkingthose2pluginstogether:Localisation(fortranslatingt
I'm having a problem trying to get working those 2 plugins together: Localisation (for translating the Javascript) and facebox (everyone knows that one right?)
我试图将这两个插件一起工作时遇到问题:本地化(用于翻译Javascript)和facebox(每个人都知道一个对吗?)
I can make them work separately without any problem, but when the localisation plugin is loaded and I clic on a link that launches a facebox modal, the ajax request start, the facebox modal window shows up (with the loading gif) and directly the request is aborted (URL turns red and the word "aborted" appears, in firebug)
我可以让它们单独工作而没有任何问题,但是当加载本地化插件并且我在启动facebox模式的链接上启动时,ajax请求启动,facebox模式窗口显示(使用加载gif)并直接请求中止(URL变为红色,并在firebug中出现“aborted”字样)
In firefox's error consol it says: "setting a property that has only a getter" and points to the file: jquery-1.4.min.js, line 126 (I've checked, and it gives the same error with jquery 1.3.2)
在firefox的错误控制中,它说:“设置一个只有一个getter的属性”并指向该文件:jquery-1.4.min.js,第126行(我已经检查过,它给出了与jquery 1.3.2相同的错误)
And here is my code:
这是我的代码:
$(document).ready(function() {
$.localise('idioma', {language: AmigoPoints.lang, path: AmigoPoints.baseHref + '/public/js/jquery/'});
//añadir /format/html/ a los href para que sea AJAX para ZF
$('a[rel*=facebox]').each(function() {
this.href += '/format/html';
})
// inicializa el plug-in que lanza nuevos links en ventanas modales
jQuery('a[rel*=facebox]').facebox();
})
Since the error is in the jquery file, I don't know where to look to try to solve this issue: I suppose that the error is in my code, but I can't see it. Any thougts anyone?
由于错误发生在jquery文件中,我不知道在哪里尝试解决此问题:我认为错误在我的代码中,但我看不到它。任何人都可以吗?
1 个解决方案