Prev: FAQ Topic - How can I access the client-side filesystem? (2010-05-11)
Next: apparently wrong function.
From: Thomas 'PointedEars' Lahn on 11 May 2010 18:05 Garrett Smith wrote: > Thomas 'PointedEars' Lahn wrote: >> Garrett Smith wrote: >>> Thomas 'PointedEars' Lahn wrote: >>>> Garrett Smith wrote: >>>>> Asen Bozhilov wrote: >>> [...] >>>> You want to re-read the thread and re-think your question. >>> I want you to stop taking your personal frustrations out on this NG. >> It was merely a hint, stupid, and you managed to miss it. >> > That is exactly what I am talking about. Calling you stupid when you do stupid things is a telling a fact, not an expression of any personal frustration I might have. So the problem is on your part, not on mine. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: Garrett Smith on 11 May 2010 22:20 Thomas 'PointedEars' Lahn wrote: > Garrett Smith wrote: > >> Thomas 'PointedEars' Lahn wrote: >>> Garrett Smith wrote: >>>> Thomas 'PointedEars' Lahn wrote: >>>>> Garrett Smith wrote: >>>>>> Asen Bozhilov wrote: >>>> [...] >>>>> You want to re-read the thread and re-think your question. >>>> I want you to stop taking your personal frustrations out on this NG. >>> It was merely a hint, stupid, and you managed to miss it. >>> >> That is exactly what I am talking about. > > Calling you stupid when you do stupid things is a telling a fact, not an > expression of any personal frustration I might have. So the problem is on > your part, not on mine. > That's your opinion based on your observations. My observation is that Asen did not post code; I guess his `deep` does check prototype chain but it's not something that's been mentioned yet. -- Garrett comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Matt Kruse on 12 May 2010 07:58 On May 11, 4:10 pm, Thomas 'PointedEars' Lahn <PointedE...(a)web.de> wrote: > > I'm not building this for idiots! > ISTM you are not building this for people who do DOM scripting either. > <form>...<input name="foo[]">...</form> This already works fine: $prop(document, "forms[0].foo[].value") for example. Matt Kruse
From: Matt Kruse on 12 May 2010 08:01 On May 11, 4:24 pm, Asen Bozhilov <asen.bozhi...(a)gmail.com> wrote: > Could you show an implementation which works with: > var obj = { > property : { > '.property.' : { > '[property]' : true > } > } > > }; > $prop(obj, 'property[.property.][[property]]'); > I expect `true' instead of `undefined'. So when you show that > implementation we can again talk about the complex of the problem > which you try to solve. Easy. I just modified the function to accept an optional last parameter of delimiter. So in this case you could just do: $prop(obj, 'property|.property.|[property]', '|') Maybe not as straight-forward as passing multiple arguments, but same difference. Matt Kruse
From: Thomas 'PointedEars' Lahn on 12 May 2010 08:20
Matt Kruse wrote: > Asen Bozhilov wrote: >> Could you show an implementation which works with: >> var obj = { >> property : { >> '.property.' : { >> '[property]' : true >> } >> } >> >> }; >> $prop(obj, 'property[.property.][[property]]'); >> I expect `true' instead of `undefined'. So when you show that >> implementation we can again talk about the complex of the problem >> which you try to solve. > > Easy. I just modified the function to accept an optional last > parameter of delimiter. > So in this case you could just do: > > $prop(obj, 'property|.property.|[property]', '|') > > Maybe not as straight-forward as passing multiple arguments, but same > difference. No, by contrast you will not be able to handle property names that contain `|'. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004) |