[Javascript] Object Not Defined

Troy III Ajnej trojani2000 at hotmail.com
Mon Nov 21 08:19:03 CST 2011


Hi there,(sorry for delay).I said "some time ago", which means I'll have to look for it!My test files have become a mess...But of course "I haz teh codez". (Been busy yesterday)
It bites me though:"how much would you be ready to pay for this?"[Can't help it, just curious :D ]
I'll get back to you in less than an hour, [in case it takes longer to find it - I will write it again], so either way it will take less than anhour to get back to you. 
p.s: the script is so short; looks almost silly, it's less than 70 bytes long.
Regards.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Troy III
       progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> From: riegel at clearimageonline.com
> Date: Sun, 20 Nov 2011 16:16:40 -0500
> To: javascript at lists.evolt.org
> Subject: Re: [Javascript] Object Not Defined
> 
> Exactly, do you have the code for isDeclared?
> 
> Terry
> 
> Sent from my iPhone
> 
> On Nov 20, 2011, at 2:30 PM, Troy III Ajnej <trojani2000 at hotmail.com> wrote:
> 
> >
> > I see what you mean...
> >
> > I think you'll need my >>isDeclared()<< method I've written sometime
> > ago for testing variable existence, that is: discern if a variable is
> > declared or undeclared in order to safely delete it as soon as I'm
> > done working with it, or programmaticaly declare a new one.
> >
> > There's no need for:
> >
> >> if( a && a.b && a.b.c && a.b.c.d && a.b.c.d.e && a.b.c.d.e.f&&
> >> a.b.c.d.e.f.title ) { return ....
> > in case you are interested in directly obtaining a title value, you'll
> > go strait at: "a.b.c.d.e.f.title".
> >
> > I think,
> > you would like something like:
> > ---------------------------------------------------------------------
> > function getDSOvalue( dsoVal, default ){ return isDeclared(dsoVal) ? dsoVal : default }
> > getDSOvalue( "a.b.c.d.e.f.title", "untitled" );
> > ---------------------------------------------------------------------
> >
> > is this correct?
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Troy III
> > progressive art enterprise
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 		 	   		  


More information about the Javascript mailing list