English 中文(简体)
我的Joomla网站的 Java字错误
原标题:Javascript errors in my Joomla website

我的网站是Marutiindia.in。 我的网站在安装一个称为Landf k2滚动器的模块之前,一直被罚款。 该网站正显示分类错误,而该模块在模板下半部分没有运行。 但是,我设法使单元发挥作用,在共同提交文件一开始添加以下代码,显示错误:

if(jQuery){ 
    jQuery.noConflict(); 
}

But, now I am getting other JS errors which I am not able to understand. Below is the link for the screenshot of errors:

I don t know what these errors mean.

此外,我还想用一个gin子来利用我的网站,这还导致滚动器无法工作。

请帮助我解决这些错误。

感谢。

问题回答

Joomla使用Mootools,后者也使用$功能名称。 为避免这种情况,您的画面要么是:

  • must use jQuery instead of $. For example, instead of $( div ) to get divs, use jQuery( div )
  • 如果您真想使用<代码>$,在封闭状态中填上 j子代码。

    (function($){
    
        //code that uses `$`
    
    }(jQuery))
    
  • make sure the plugins are extending from jQuery and not $.




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签