[Javascript] Object Not Defined

Robert Kim App and Facebook Marketing evdo.hsdpa at gmail.com
Sun Nov 13 01:19:27 CST 2011


Mike... Guys... I'm kinda thinking there might be a more elegant solution?
I'm forwarding this string to a buddy of mine, Prakash ... he works at Sun!
=p

Will advise...

On Sun, Nov 13, 2011 at 11:40 AM, Mike Dougherty <mdougherty at pbp.com> wrote:

> On Sat, Nov 12, 2011 at 9:25 PM, Terry Riegel
> <riegel at clearimageonline.com> wrote:
> > Perhaps the expected object is pulled from an external source outside of
> > the control of my application. There are many times I would like to
> simply
> > call...
> >
> > a.b.c.title || 'untitled'
>
> 'sounds like the kind of thing you take the time to write a wrapper to
> handle, then never think about again.
>
> try{ var thetitle = a.b.c.title; } catch(err){ var thetitle = 'untitled'; }
> ... is probably about as good as it'll get.
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>



-- 
Robert Q Kim
Plastic Surgery Patient Advisor
http://sparkah.com/2011/11/12/top-plastic-surgeons-in-sf-san-francisco-to-see-in-2012/
2611 S Coast Highway
San Diego, CA 92007
310 598 1606


More information about the Javascript mailing list