Hi Miguel,

You might want to take a look at Prototype's Form Element Observer,
see http://www.prototypejs.org/api/timedObserver/form-element-observer.

Good luck,
Maarten

On 3 apr, 05:27, "Miguel Beltran R." <[email protected]> wrote:
> Hi list
>
> I have the follow code:
>
> HTML:
> <form>
>    <input type="text" name="field1" id="field1" />
>    <input type="hidden" name="hide1" id="hide1" />
> <a href="#" id="field1_showoptions">show options</a>
> </form>
>
> JS:
> myclass=Class.create();
> myclass.addMethods({
>    showoptions: function(){
>       //show options using windows_js_1.3
>       //In the windows change the value from field1
>    },
>
>    getData: function(evt){
>       var number=evt.element().value;
>       //made a ajax request and fill hide1 field looking number how key
>    }
>
> });
>
> document.observe('dom:loaded', function(){
>    $('field1_showoptions').observe('click', myclass.showoptions);
>    $('field1').observe('change', myclass.getData);
>
> });
>
> I want three thing
> 1: have a window with a table filled with many options and descriptions:  OK
> 2: fill hide1 field when field1 value has enter manually: OK
> 3: fill hide1 field when field1 value has change using code js: FAIL
>
> Someone can give me a tip?
>
> --
> ________________________________________
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to