Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/09/2014, 19:45
Avatar de Fernarey1810
Fernarey1810
 
Fecha de Ingreso: noviembre-2008
Mensajes: 214
Antigüedad: 15 años, 5 meses
Puntos: 1
Funciones jquery

Porque no anda esto? hay varias funciones seguidas pero no funciona.
Si quito lo q esta en rojo y dejo lo otro nomas si anda.


Código Javascript:
Ver original
  1. window.onload = function() {   
  2.     [COLOR="Red"]jQuery.noConflict();
  3.     document.onkeypress = muestraInformacion;
  4.     $("autocompleteCliente").className = "autocomplete";
  5.     new Ajax.Autocompleter("nombre", "autocompleteCliente", "autocompleteloc.php", { paramName: "caracteres", minChars: 1, frequency: 0.1});[/COLOR]
  6.    
  7.     $("#mercaderia").autocomplete({
  8.             source: "autocompletemer.php",         
  9.             minLength: 2,
  10.             focus: function(event, ui) {
  11.                     // prevent autocomplete from updating the textbox
  12.                     event.preventDefault();
  13.                     // manually update the textbox
  14.                     $(this).val(ui.item.label);
  15.                 },
  16.                 select: function(event, ui) {
  17.                     // prevent autocomplete from updating the textbox
  18.                     event.preventDefault();
  19.                     // manually update the textbox and hidden field
  20.                     $(this).val(ui.item.label);
  21.                     //$("#autocomplete2-value").val(ui.item.value);
  22.                 }              
  23.     });
  24. }