Re: onchange event

2009-03-08 Thread Garrett Smith
On Sun, Mar 8, 2009 at 12:44 PM, Erik Arvidsson wrote: > You can use __defineGetter__ and __defineSetter__ on window in current > browsers (excluding IE). In ES3.1 you can use Object.defineProperty > instead. > Memolus does not say what he needs this for, but it sounds even more ludicrous than th

escaping double quote

2009-03-08 Thread vkrejcirik
I need to escape double quote in function replace. My code: var text = currentNode.In.Content.replace(//g, ">").replace(/"/g,"""); but problem is in /"/g. Do you have any idea? thanks -- /**/ Best regards / S pozdravem Vladislav Krejčiřík http://www.vkrejc

Re: onchange event

2009-03-08 Thread Erik Arvidsson
You can use __defineGetter__ and __defineSetter__ on window in current browsers (excluding IE). In ES3.1 you can use Object.defineProperty instead. On Sun, Mar 8, 2009 at 05:39, memo...@googlemail.com wrote: > I like to use an onchange event. > > Example: > > money = 100; > money.onchange = funct

Re: name property for built-in functions??

2009-03-08 Thread Brendan Eich
On Mar 8, 2009, at 10:28 AM, Allen Wirfs-Brock wrote: I have another concern about the potential interactions between the proposed name property and toString. Apparently, there is a known use case of eval'ing the result of toString'ing a function in order to create a new function. If we as

RE: name property for built-in functions??

2009-03-08 Thread Allen Wirfs-Brock
I have another concern about the potential interactions between the proposed name property and toString. Apparently, there is a known use case of eval'ing the result of toString'ing a function in order to create a new function. If we assign synthetic names such as "get_foo" or "set_foo" to synt

onchange event

2009-03-08 Thread memo...@googlemail.com
I like to use an onchange event. Example: money = 100; money.onchange = function() { refreshMoneyDisplay(); if(this <= 0) { alert("You do no have money anymore.") } }; refreshMoneyDisplay = function() { document.getElementById("money").value = money; }

Reference to string, boolean or number

2009-03-08 Thread memo...@googlemail.com
How can I create a reference to a string, boolean or number? I mean a real reference. ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss