[Javascript] Object Not Defined

Terry Riegel riegel at clearimageonline.com
Mon Nov 21 08:25:23 CST 2011


I actually started to write a script but decided to ask this group
first. Perhaps your script take the same line I was thinking might
work.

I figured the collective knowledge would at the least help set the
direction for such a script.

Terry

Sent from my iPhone

On Nov 21, 2011, at 9:19 AM, Troy III Ajnej <trojani2000 at hotmail.com> wrote:

>
> 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
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript


More information about the Javascript mailing list