but the $.getScript() has a weakness, cross domain restrict... that's really bad...
On 7/22/07, Stephan Beal <[EMAIL PROTECTED]> wrote: > > On Jul 21, 2:15 pm, "Rob Desbois" <[EMAIL PROTECTED]> wrote: > > Try this: > > > > if (typeof myFunction === "undefined") { > > Shouldn't that be: > > if( typeof myFunction === undefined ) > > or > > if( typeof myFunction == "undefined" ) > > ??? i don't think === is what you want when comparing different string > instances, whereas === is preferred for null/undefined comparisons > (according to Doug Crockford, anyway). > > > -- Zacky Ma www.marchbox.com