Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/12/2011, 12:19
diblasifrancisco
 
Fecha de Ingreso: diciembre-2011
Mensajes: 19
Antigüedad: 12 años, 4 meses
Puntos: 0
Respuesta: Un scripr me bloquea a otro

Cita:
Iniciado por emprear Ver Mensaje
las soluciones que te plantea la página que te indiqué son bastante claras, vamos a tomar tan solo una de ellas

Código HTML:
Ver original
  1.  <head>
  2.    <script src="prototype.js"></script>
  3.    <script src="jquery.js"></script>
  4.    <script>
  5.      jQuery.noConflict();
  6.      
  7.      // Put all your code in your document ready area
  8.      jQuery(document).ready(function($){
  9.        // Do jQuery stuff using $
  10.        $("div").hide();
  11.      });
  12.      
  13.      // Use Prototype with $(...), etc.
  14.      $('someid').hide();
  15.    </script>
  16.  </head>
  17.  <body></body>
  18.  </html>


De acuerdo tu código, supongo que este sería el orden correcto


Código HTML:
Ver original
  1.  <head>
  2.    <script src="prototype.js"></script>
  3.    <script src="jquery.js"></script>
  4.    <script>
  5.      jQuery.noConflict();
  6.      
  7.      // Put all your code in your document ready area
  8.      jQuery(document).ready(function($){
  9.  
  10. $(".tabLink").each(function(){
  11.  $(this).click(function(){
  12.  tabeId = $(this).attr('id');
  13.  $(".tabLink").removeClass("activeLink");
  14.  $(this).addClass("activeLink");
  15.  $(".tabcontent").addClass("hide");
  16.  $("#"+tabeId+"-1").removeClass("hide")
  17. return false;
  18. });
  19.  });
  20.  
  21.  
  22.      });
  23.      
  24.      // Use Prototype with $(...), etc.
  25.     // $('someid').hide();
  26.    </script>
  27. <script type="text/javascript" src="js/calculate.js"></script>
  28.  </head>
  29.  <body>
  30.  
  31. <img src="<? echo DIR_WS_IMAGES .'icons/minus.png' ?>" onClick="changeQty('subtract');" />
  32.  <input name="quantity" type="text" class="moduleRow" id="quant" style="text-align:center" onKeyUp="changeQty('field');" value="1" size="4" maxlength="4" />
  33.  <img src="<? echo DIR_WS_IMAGES .'icons/plus.png' ?>" onClick="changeQty('add');" />
  34.  
  35. </body>
  36.  </html>

y es importante que calculate.js la cargues despues de prototype.js

SAludos
Lo hice tal como me dijiste, pero ahora no me funciona el script que incremente la cantidad por producto, o sea, solo funciona el script que cargo primero,

Gracias por tu ayuda