You're missing the semi-colon (":").

Best,

Tobie

On Jun 27, 1:32 am, "Miguel Beltran R." <yourpa...@gmail.com> wrote:
> Hi list
>
> I have a custom event
> document.observe('sic:proyecto',function(evt){
>    alert(22);
>
> });
>
> Using this way not fire
> document.observe('dom:loaded', function(){
>    var x1;
>    x1='proyecto';
>
> if($(x1))$(x1).observe('change',function(evt){document.fire('sic:'+x1);});
>
> });
>
> But if change to this work
> document.observe('dom:loaded', function(){
>
> if('proyecto')$('proyecto').observe('change',function(evt){document.fire('s 
> ic:proyecto');});
>
> });
>
> the only difference is 'sic'+x1 to 'sic:proyecto'
>
> --
> ________________________________________
> 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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to