Comunidad de diseño web y desarrollo en internet online

Conflicto con plugin que usa jQuery

Citar            
MensajeEscrito el 13 Nov 2009 03:01 pm
Estoy trabajando con un pluguin Wordpress que usa jQuery y me produce conflicto con otro que también usa esta librería. Mi ignorancia sobre el lenguaje me hace acudir a ustedes haber si me pueden dar una mano. Por lo que estuve investigando existe un código para solucionar este tipo de conflictos pero nose como aplicarlo. Aquí les dejo el código que esta dentro del pluguin que me produce este conflicto:

Código Javascript :

   setup:function(config){
      //Disable Step Gallery scrollbars ASAP dynamically (enabled for sake of users with JS disabled)
      document.write('<style type="text/css">\n#'+config.galleryid+'{overflow: hidden;}\n</style>')
      jQuery(document).ready(function($){
         config.$gallery=$('#'+config.galleryid)
         config.gallerywidth=config.$gallery.width()
         config.offsets={left:stepcarousel.getoffset(config.$gallery.get(0), "offsetLeft"), top:stepcarousel.getoffset(config.$gallery.get(0), "offsetTop")}
         config.$belt=config.$gallery.find('.'+config.beltclass) //Find Belt DIV that contains all the panels
         config.$panels=config.$gallery.find('.'+config.panelclass) //Find Panel DIVs that each contain a slide
         config.panelbehavior.wraparound=(config.autostep && config.autostep.enable)? true : config.panelbehavior.wraparound //if auto step enabled, set "wraparound" to true
         config.onpanelclick=(typeof config.onpanelclick=="undefined")? function(target){} : config.onpanelclick //attach custom "onpanelclick" event handler
         config.onslideaction=(typeof config.onslide=="undefined")? function(){} : function(beltobj){$(beltobj).stop(); config.onslide()} //attach custom "onslide" event handler
         config.oninit=(typeof config.oninit=="undefined")? function(){} : config.oninit //attach custom "oninit" event handler
         config.beltoffset=stepcarousel.getCSSValue(config.$belt.css('marginLeft')) //Find length of Belt DIV's left margin
         config.statusvars=config.statusvars || []  //get variable names that will hold "start", "end", and "total" slides info
         config.$statusobjs=[$('#'+config.statusvars[0]), $('#'+config.statusvars[1]), $('#'+config.statusvars[2])]
         config.currentpanel=0
         stepcarousel.configholder[config.galleryid]=config //store config parameter as a variable
         if (config.contenttype[0]=="ajax" && typeof config.contenttype[1]!="undefined") //fetch ajax content?
            stepcarousel.getremotepanels($, config)
         else
            stepcarousel.alignpanels($, config) //align panels and initialize gallery
      }) //end document.ready
      jQuery(window).bind('unload', function(){ //clean up
         if (config.panelbehavior.persist){
            stepcarousel.setCookie(window[config.galleryid+"persist"], config.currentpanel)
         }
         jQuery.each(config, function(ai, oi){
            oi=null
         })
         config=null
      })
   }
}


Gracias por su tiempo y saludos.

Por marcelonologo

Claber

311 de clabLevel


2 articulos

 

Patagonia Argentina

firefox
Citar            
MensajeEscrito el 13 Nov 2009 09:42 pm
Help!

Por marcelonologo

Claber

311 de clabLevel


2 articulos

 

Patagonia Argentina

firefox
Citar            
MensajeEscrito el 17 Nov 2009 07:37 am
por eso no me gusta usar jQuery... ni nada que yo no alla hecho o no lo conosca :P

Por wariodiaz

55 de clabLevel



 

firefox
Citar            
MensajeEscrito el 17 Nov 2009 02:39 pm
Eso no me ayuda

Por marcelonologo

Claber

311 de clabLevel


2 articulos

 

Patagonia Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.