JavaScript doesn't know what the +id is because it's within the double quotes.
Do this instead
setTimeout($('masinfo'+id+).show(),500,id);
}
Sent from my iPhone
On Jul 20, 2010, at 12:59 PM, Martín Marqués martin.marq...@gmail.com wrote:
I'm trying to mix Effect.Morph and setTimeout() to
The setTimeout only knows what the value of id is when it is created,
not when it is invoked. So it's telling you the truth. At the moment
when the page loaded, there was no value for id, so there still isn't
one inside of setTimeout's little bubble.
There's a nice feature in all the
PM
To: prototype-scriptaculous@googlegroups.com
Subject: Re: [Proto-Scripty] Morph and setTimeout
JavaScript doesn't know what the +id is because it's within the double quotes.
Do this instead
setTimeout($('masinfo'+id+).show(),500,id);
}
Sent from my iPhone
On Jul 20, 2010, at 12:59 PM
To: prototype-scriptaculous@googlegroups.com
Subject: RE: [Proto-Scripty] Morph and setTimeout
I'm pretty sure Ralph's suggestion will work. I prefer to write this in a way
which will hopefully highlight the potential bug to a less-experienced
maintenance developer after I have moved onto a 6-digit
2010/7/20 Rick.Wellman rick.well...@kiewit.com:
I'm pretty sure Ralph's suggestion will work. I prefer to write this in a
way which will hopefully highlight the potential bug to a less-experienced
maintenance developer after I have moved onto a 6-digit consulting career
that I run
2010/7/20 Rick.Wellman rick.well...@kiewit.com:
Oops, already made a mistake; Make that:
var cmd = $('masinfo' + id + ).show();
setTimeout(cmd,500,id);
Yeah, this is how I made it work, but it's not pretty at all.
Walter gave me the beautiful afterFinish.
Thanks Walter!
--
Martín Marqués
AfterFinish!!! Brilliant.
Sent from my iPhone
On Jul 20, 2010, at 2:15 PM, Martín Marqués martin.marq...@gmail.com wrote:
2010/7/20 Rick.Wellman rick.well...@kiewit.com:
Oops, already made a mistake; Make that:
var cmd = $('masinfo' + id + ).show();
setTimeout(cmd,500,id);
Yeah, this