Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/12/2010, 15:29
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 4 meses
Puntos: 845
Respuesta: agregar valor a caja de texto utilizando mootools

Deberias agregar al final de showContent la funcionalidad que necesitas, con Moo seria algo asi:


Código Javascript:
Ver original
  1. showContent: function(html,size){
  2. ...
  3. $(this.options.name + '-Image').getElements('a.selectable').addEvent('click', function(e){           
  4.    e.stop();  
  5.    this.getNext('input').set('value', this.get('text'));
  6. });
  7. ...
  8. }

En el ejemplo asumo que las categorias son un "a" con la clase selectable y que el textfield es el siguiente elemento, si me mostras el html real te lo ajusto.

salu2.