Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

calling JavaScript functions from PerlScript

25 views
Skip to first unread message

spunky_...@my-deja.com

unread,
Mar 27, 2000, 3:00:00 AM3/27/00
to
Is it possible to call JavaScript functions from PerlScript?

Take the following, for example:

<% @LANGUAGE="PerlScript"%>
<SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
function a() {...}
</SCRIPT>

<%
# Can I call function a from here?
%>


Sent via Deja.com http://www.deja.com/
Before you buy.

anoth...@my-deja.com

unread,
Mar 30, 2000, 3:00:00 AM3/30/00
to
In article <8boo7v$2rr$1...@nnrp1.deja.com>,

spunky_...@my-deja.com wrote:
> Is it possible to call JavaScript functions from PerlScript?
>
> Take the following, for example:
>
> <% @LANGUAGE="PerlScript"%>
> <SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
> function a() {...}
> </SCRIPT>
>
> <%
> # Can I call function a from here?
> %>
>
I need to do this too! The error message says something about not
finding &main::JavaScriptFunctionName(). Do you think that if the
JavaScript block was given a name or id attribute, you could then refer
to the function as &blockName::JavaScriptFunctionName()? That's what
i'm gonna try, wish me luck.

saverio_...@my-deja.com

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
This should work in the same way its works with VB. Try this out.

--8<----8<----8<-----8<-----8<-----8<-----8<------
From: http://www.fastnetltd.ndirect.co.uk/Perl/perl-win32-asp.html
Q: When I try to call a VB Script function from my PerlScript, it says
the function doesn't exist.
A: You need to call it as:
$ScriptingNamespace->VBScriptFunctionName();
--8<----8<----8<-----8<-----8<-----8<-----8<------

In article <8boo7v$2rr$1...@nnrp1.deja.com>,
spunky_...@my-deja.com wrote:
> Is it possible to call JavaScript functions from PerlScript?
>
> Take the following, for example:
>
> <% @LANGUAGE="PerlScript"%>
> <SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
> function a() {...}
> </SCRIPT>
>
> <%
> # Can I call function a from here?
> %>
>

anoth...@my-deja.com

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
In article <8c8na4$bq3$1...@nnrp1.deja.com>,
saverio_...@my-deja.com wrote:
This does not work in JScript as it does in VB. I believe it may be a
matter of dereferencing the appropriate number of times.

jim

0 new messages