Guardian23
09-13-2002, 05:20 PM
Is it possible to access Perl Scalars and Arrays with JScript in the
same page?
All that I can do is access variables of the window. object, and they
can't be modified. I thought of using setAttribute, because it's the
only thing that seems to work for things like innerText and certain
other non-Lvalues.
But is there some sort of Global Model(?not a proper term?) that
can allow access to Scalars or Arrays? Because it seems like a pain
to set a hidden span's internal code just to integrate the variables.
Although I noticed that the functions are global, because
a call to the JS UD-function "function()", can be called in Perl, and
the Perl UD-function "&function2()" can be called at will using JS
Syntax with onclick or an ordinary function call.
Alas, the same is not true for Perl UD scalar $var1.
$var1 ne $window->var1
and $window->var1 = $var1 returns "cannot define a non-Lvalue"
Guardian
PS. I'm not sure if this goes in Perl or JS Programming, sorry if this
is a mispost.
same page?
All that I can do is access variables of the window. object, and they
can't be modified. I thought of using setAttribute, because it's the
only thing that seems to work for things like innerText and certain
other non-Lvalues.
But is there some sort of Global Model(?not a proper term?) that
can allow access to Scalars or Arrays? Because it seems like a pain
to set a hidden span's internal code just to integrate the variables.
Although I noticed that the functions are global, because
a call to the JS UD-function "function()", can be called in Perl, and
the Perl UD-function "&function2()" can be called at will using JS
Syntax with onclick or an ordinary function call.
Alas, the same is not true for Perl UD scalar $var1.
$var1 ne $window->var1
and $window->var1 = $var1 returns "cannot define a non-Lvalue"
Guardian
PS. I'm not sure if this goes in Perl or JS Programming, sorry if this
is a mispost.