2011-11-29 87 views
0

我繼承了一大堆舊樣機的項目。我試圖在noconflict模式下使用jquery,但出現錯誤:jquery原型衝突

未終止的字符串文字。

螢火蟲指向原型函數指定者的誤差(){}

不知何故的jquery或jQuery的用戶界面與原型衝突的即使我在noconflict模式使用jquery。

任何想法?

----更新 - MY NOCONFLICT CODE ----

<!-- the rest of these should will eventually be replaced with jquery and custom js in the agistix js dir --> 
    <script src="/fs/scripts/lib/jquery/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/[email protected]@" type="text/javascript" /> 

    <script src="/fs/scripts/lib/prototype/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/[email protected]@" type="text/javascript" /> 
    <script type="text/javascript" src="/fs/scripts/[email protected]@" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 
    <script src="/fs/scripts/lib/scriptaculous/[email protected]@" type="text/javascript" /> 

    <script>jQuery.noConflict();</script> 
    <script src="/fs/scripts/lib/jquery/[email protected]@" type="text/javascript" /> 
+1

你可以發表你的noconflict代碼嗎 – Kishore

+1

你能顯示代碼嗎? –

+0

添加了noconflict代碼 –

回答

0

我已經經歷了很多的麻煩的jQuery的,MooTools的和原型縮小的版本。我不確定這是否與某些瀏覽器行業的最新更新策略有關,但我建議您嘗試jquery的未壓縮版本。