Stephan,
The only time that == or != should be used (IMO anyway) is when you
explicitly *want* type conversion to take place. Otherwise, it's safest (and
faster) to use === or !==

Zacky,
One cross-domain AJAX jQuery plugin:
http://trainofthoughts.org/repo/export/jquery/jquery.xsajax.html
Can't advise on its use though as have had no experience with it.

--rob

On 7/22/07, March <[EMAIL PROTECTED]> wrote:


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




--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to