From: Garrett Smith on 3 Jan 2010 02:44 How do I trim whitespace? Change code to coerce the thisArg to String, as per ES5 - Bozhilov How do I POST a form to a new window? Change example to use method="post" -Saarikumpu How do I disable the right mouse button? Fix the grammar - Stockton How can I see in javascript if a web browser accepts cookies? Replace links to cookiecentral and galasoft with MDC link - Lahn If I missed something, say something. Thanks. -- Garrett comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Asen Bozhilov on 3 Jan 2010 09:01 Garrett Smith wrote: > How do I trim whitespace? > Change code to coerce the thisArg to String, as per ES5 | return (this + "").replace(/^\s+|\s+$/g, ''); Should be: ("" + this) See in JScript: var o = {toString : null, valueOf : null}; window.alert('' + o); //empty string window.alert(o + ''); //[object] var xhr = new ActiveXObject('Microsoft.XMLHTTP'); window.alert('' + xhr); //empty string window.alert(xhr + ''); //undefined In your thread about "Code Guidelines" i payed attention about that: <URL: http://groups.google.bg/group/comp.lang.javascript/msg/1528f612e31f09fe> Happy New Year!
From: David Mark on 3 Jan 2010 09:35 On Jan 3, 2:44 am, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: > How do I trim whitespace? > Change code to coerce the thisArg to String, as per ES5 > - Bozhilov > > How do I POST a form to a new window? > Change example to use method="post" > -Saarikumpu > > How do I disable the right mouse button? > Fix the grammar > - Stockton > > How can I see in javascript if a web browser accepts cookies? > Replace links to cookiecentral and galasoft with MDC link > - Lahn > > If I missed something, say something. > > Thanks. The Contributors section in the Notes is years out of date.
From: Garrett Smith on 3 Jan 2010 22:45 David Mark wrote: > On Jan 3, 2:44 am, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: >> How do I trim whitespace? [...] >> If I missed something, say something. >> >> Thanks. > > The Contributors section in the Notes is years out of date. Certainly is. Anyone want to propose a draft? -- Garrett comp.lang.javascript FAQ: http://jibbering.com/faq/
From: David Mark on 4 Jan 2010 02:32
On Jan 3, 10:45 pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: > David Mark wrote: > > On Jan 3, 2:44 am, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: > >> How do I trim whitespace? > > [...]>> If I missed something, say something. > > >> Thanks. > > > The Contributors section in the Notes is years out of date. > > Certainly is. Anyone want to propose a draft? I propose you add my name. :) |