[Proto-Scripty] Re: syntax for variable function name?

2010-04-15 Thread T.J. Crowder
Hi, So if I'm inside an anonymous function, can I   still use window... Yes if the functions in question are declared at global scope (as in Pranav's example), no if they aren't (you can access `window`, but the functions won't be properties of it). So this would work: function foo() {

[Proto-Scripty] Re: Hello....

2010-04-15 Thread T.J. Crowder
Hariz, For the second time[1], please do not hijack other people's threads. If you want to ask a new question: * By email: Create a new email (NOT a reply) to prototype- scriptacul...@googlegroups.com * Via the web: Click the new post link on the list of topics[2] [1]

[Proto-Scripty] subtleties of control flow

2010-04-15 Thread T.J. Crowder
(changing the subject back) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to

[Proto-Scripty] Re: Cross-browser function for Text content

2010-04-15 Thread T.J. Crowder
Interestingly, Firefox's `textContent` behavior of including the script element's contents (which I called insanity) is *standard* as far as I can tell -- and has been for years: http://www.w3.org/TR/html5/infrastructure.html#textcontent