Re: What's wrong with arguments.callee ?



On Sep 16, 7:04 am, Henry <rcornf...@xxxxxxxxxxxxxx> wrote:
On Sep 15, 9:21 pm, beegee wrote:

On Sep 15, 10:18 am, Henry wrote:
On Sep 15, 2:51 pm, beegee wrote:
(just think about the lack of a <script> tag).

It would save a great deal of time if you would explain what you are
talking about when asked.

You didn't ask anything. This comment was in my first post.

Think betterer.  How do you include a javascript file?

In WSH?

Now think about how you would do it in a non-browser hosted
environment.

Wouldn't that depend on the environment? You were (though you edited
it from the quoted material without even marking that edit) talking
about WSH.

Okay, my requoting was not clear, I do mean WSH.



Honestly, if you know of a way of doing it without eval
then please let me know.
--------------------------------------------------------------

{Your example using a wsf file followed). Thank you. Your example
worked perfectly. I'm not sure what the vbscript was for, I replaced
it with JScript and it worked fine. I was ignorant of wsf files and I
guess your point is that a include mechanism is the responsibility of
the scripting host not the language. In any case, your proof
certainly obviates the need for eval().


In his new book, his (and others) main argument against eval,
security, is inapplicable to server side scripting.

That depends entirely on where the thing that is being eval-ed came
from (just as it does in client-side scripting). The only additional
security offered by the server is the fact that a potential attacker
cannot directly observe the use of - eval - in the server side code.

Well of course, I am assuming that all code, and especially javascript
code is coming from server based files in static libraries. When I say
server-side scripting, I'm talking about maintenance, test suites,
source control, etc. I'm not talking about CGI or web service clients
although I guess one could use JScript for that. I certainly
wouldn't.

Perhaps his recommendation to deprecate is more to spur
interest in a replacement technology but to do that, OS
hosting must be considered.

What you are calling "OS hosting" is fixed object model scripting,
which is precisely the application where a significantly stricter
language variant can produce the greatest returns.

I don't know. That seems a pretty general statement. I doubt
Rubyists, Pythonists or AppleScripters (if your comment was translated
for them) would agree with you.

Bob
.



Relevant Pages

  • Re: Whats wrong with arguments.callee ?
    ... (If it is for referencing global ... is inapplicable to server side scripting. ... What you are calling "OS hosting" is fixed object model scripting, ...
    (comp.lang.javascript)
  • Re: mail portal
    ... how to create email id with using scripting only on the server side ... hwta scripting i have to use and which hosting will ...
    (microsoft.public.windows.server.scripting)
  • Re: Windows/Macro Language Info?
    ... Java scriptlets and servlets can also carry malware. ... other part of the HTTP server. ... PHP can deliver malware and coordinate attacks to precisely the ... server-side scripting languages are not. ...
    (comp.lang.cobol)
  • Re: asrock, problem with nic after windows-boot - Exact Opposite issue the OP is having
    ... the "power switch" on the front panel, and the O/S would cleanly terminate ... before turning off the power. ... For shell scripting, start with the Bash-Prog-Intro-HOWTO ... X really doesn't belong on a server, ...
    (comp.os.linux.networking)
  • Re: Banana Republic (was Re: OpenVMS Book Wins award)
    ... page but didn't look deeeply enough to see that the client was having to ... (for the same host). ... cross-site scripting constraint exercised by the browser (to prevent XSS ... but what is outside any HTTP protocol is "when a server gets told something" ...
    (comp.os.vms)