Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/05/2013, 09:07
JUMASOL
 
Fecha de Ingreso: noviembre-2005
Mensajes: 889
Antigüedad: 18 años, 5 meses
Puntos: 8
Respuesta: Incompatibilidad irresoluble???

Después de darle más vueltas al asunto y viendo que no se soluciona, he pensado en añadir no.conflict al código del archivo

jquery-1.9.1.min.js

Insertando en el inicio

jQuery.noConflict();
jQuery(document).ready(function(){

y sustituyendo todas las $ por jQuery.

Pero no me funciona.

En otro caso que solucioné por este sistema, el código comenzaba así:

(function(){

var
// Will speed up references to window, and allows munging its name.
window = this,

...............................

y lo puse así:

jQuery.noConflict();
jQuery(document).ready(function(){

var
// Will speed up references to window, and allows munging its name.
window = this,

.....................

Sustituyendo todo lo demás por jQuery.

Pero aquí no funciona.

¿Será por la diferencia en el código?

Mis conocimientos no me permiten averiguar el problema.

Os pongo el comienzo del código conflictivo en a continuación:


Código:
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function (e, t) {
    var n, r, i = typeof t,
        o = e.document,
        a = e.location,
        s = e.jQuery,
        u = e.$,
        l = {}, c = [],
        p = "1.9.1",
        f = c.concat,
        d = c.push,
        h = c.slice,
        g = c.indexOf,
        m = l.toString,
        y = l.hasOwnProperty,
        v = p.trim,
        b = function (e, t) {
            return new b.fn.init(e, t, r)
        }, x = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
        w = /\S+/g,
        T = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
        N = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
        C = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
        k = /^[\],:{}\s]*$/,
        E = /(?:^|:|,)(?:\s*\[)+/g,
        S = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
        A = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,
        j = /^-ms-/,
        D = /-([\da-z])/gi,
        L = function (e, t) {
            return t.toUpperCase()
        }, H = function (e) {
            (o.addEventListener || "load" === e.type || "complete" === o.readyState) && (q(), b.ready())
        }, q = function () {
            o.addEventListener ? (o.removeEventListener("DOMContentLoaded", H, !1), e.removeEventListener("load", H, !1)) : (o.detachEvent("onreadystatechange", H), e.detachEvent("onload", H))

........................