Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/12/2010, 07:55
Avatar de wladtepes
wladtepes
 
Fecha de Ingreso: febrero-2008
Mensajes: 140
Antigüedad: 16 años, 3 meses
Puntos: 0
Exclamación usar formcheck.js y jquery.alerts.js??

Hola ,

Estoy trabajando con estas 2 librerias y necesito que funcionen las 2 , pero se anulan, estube buscarndo como solucionar esto y encontre la funcion noConflict(); , pero no me funcion o mejor dicho no entendi como implementarla



Sin Metodo
Código Javascript:
Ver original
  1. <script type="text/javascript" src="js/formcheck/formcheck.js">
  2. <script src="js/Jalert/jquery.alerts.js" type="text/javascript"></script>
  3.  
  4.  
  5.  
  6. <script type="text/javascript">
  7. $(document).ready( function() {jAlert('hoLA', 'xxxxxxxxxxx');});
  8.  
  9.  
  10. window.addEvent('domready', function (){
  11.         check = new FormCheck('form1', {
  12.            
  13.         display : {
  14.             fadeDuration : 500,
  15.             errorsLocation : 1,
  16.             indicateErrors : 1,
  17.             showErrors : 1
  18.         }
  19.     })});
  20.     </script>




Usando el metodo noConflict()
Código Javascript:
Ver original
  1. <script type="text/javascript" src="js/formcheck/formcheck.js">
  2. <script src="js/Jalert/jquery.alerts.js" type="text/javascript"></script>
  3.  
  4. <script type="text/javascript">
  5.  
  6. jQuery.noConflict();
  7.  
  8. jQuery(document).ready( function($) {jAlert('hoLA', 'xxxxxxxxxxx');});
  9.    
  10.  
  11. jQuery(window).addEvent('domready', function ($){
  12.    
  13. check = new FormCheck('form1', {
  14.            
  15.         display : {
  16.             fadeDuration : 500,
  17.             errorsLocation : 1,
  18.             indicateErrors : 1,
  19.             showErrors : 1
  20.                 }
  21.             })})(jQuery);  
  22.    
  23.    
  24.    
  25.            
  26.     </script>


De antemano gracias por la Ayuda