Brian et al ...
sorry ... i shld have mentioned the context ... I m working on .cgi scripts.
Point 1. There is a button "Hit me" in my script say "A.cgi" which goes as follows:-
print qq{ <INPUT $style TYPE=BUTTON VALUE="Hit me" >}
where SetLocation is something like below:-
print qq{
<script language='_javascript_'>
function SetLocation(url)
{window.location=url; }
<script language='_javascript_'>
function SetLocation(url)
{window.location=url; }
</script>
}
Both the button "Hit me" and the function SetLocation are
in A.cgi
Point 2.
When the button "Hit me" is clicked in "A.cgi", I wanted to set a perl variable, say,
$flag = 1 (as a flag indicating that the button "Hit me" was clicked)
Then i wanted to use $flag for further processing ... like run a particular query ... in "B.cgi"
THE PROBLEM: How do i set $flag in A.cgi within the _javascript_ function
SetLocation() ... so that it is accessible in B.cgi??
Is this possible in perl?? If not, how should I go about it ...??
Hope this gives u a clearer picture!
Hope this gives u a clearer picture!
Best,
Ukh
Brian Raven <[EMAIL PROTECTED]> wrote:
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ukhas
jean
Sent: 04 October 2006 06:47
To: Active Perl
Subject: setting value of a perl variable within a _javascript_??
> Can I set a perl scalar variable within a _javascript_??
Yes and no, or possibly no and yes.
Seriously though, you haven't provided anywhere near enough information
for a sensible answer. At the very least provide some context (e.g.
CGI?, PerlScript? something else?). Show us what you have so far,
preferably a small example. It might also be useful to say what you are
trying to accomplish by this. We may be able to suggest an alternative
approach.
HTH
--
Brian Raven
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
