From: Michael Kelly <[EMAIL PROTECTED]>
> On 3/3/02 6:36 PM, Daniel Falkenberg <[EMAIL PROTECTED]> wrote:
>
> > Leon,
> >
> > Yes that is easy enough but can I do this with out the page having
> > to have to be refreshed? I would essentially like it to work
> > exactly like Java does. Thx,
> >
> > Dan
>
> Nope. (That is, assuming that by "java" you mean "javascript").
>
> Perl is server-side, JavaScript is client-side.
Not necessarily.
> I thought I recalled hearing something about "PerlScript" (client-side
> Perl), but I don't know of any browsers that have support for such a
> thing, and I don't even know if the project is still live (or if it
> ever existed. I might just be getting things confused.)
PerlScript does exists.
It's a so called "scripting engine" that can be used in any "scripting
host" ... that is a program that supports certain API (don't ask me
for details.).
There are quite a few hosts, but the most used are :
ASP - yes the ASP.dll behaves as a scripting host, it extracts
the commands from <%...%>s and <script runat="server">s and
relys on a scripting engine to execute it. The preinstalled scripting
engines are VBScript and JScript.
Internet Explorer - yes this is the clientside scripting. You can
use any language from which you have a scripting engine installed.
Keep in mind though that if you use anything else than JScript
(pretty much compatible with JavaScript/ECMAScript) then it will
NOT work for anyone NOT using MSIE and that the user will HAVE
TO have the scripting engine. So if you wanted to use PerlScript
you'd have to install ActivePerl+PerlScript on all the users'
computers!
WSH (aka Windows Scripting Host) - made to allow you to
write "batches" in VBScript and JScript. Pretty much useless with
Perl ... we can run Perl scripts directly.
MS Office - at least I believe so. I haven't tried, but I've heard
MS Office will support that quite a few years ago (before Office 97 I
believe), but it would be silly from them not to use this.
And there are most probably several others.
In either case ... I would not use anything but JavaScript on client
side (OK, under some circumstances you'd need Java. But not
here!). The language is actualy quite mighty in recent versions of
browsers.
Jenda
P.S.: Please don't confuse Java and JavaScript. Those two are very
very different languages. Pretty much the only thing they have in
common is the name and the fact that they are derived from C.
P.P.S.: Once I've seen a really great job offer. They were looking
for a programmer in Pearl and Jawa ;-)
(Jawa is a Czech brand of motorcycle. Not sure it's still being
made though.)
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]