ukhas jean wrote:
> 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"
> onclick="javascript:SetLocation('B.cgi')">}
>
> where SetLocation is something like below:-
> print qq{
> <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!
I'm not sure if I follow all of that, but you could probably just
use <INPUT TYPE="HIDDEN" NAME="FLAG" VALUE="1"> and use that. Find
a way to change the "1" to whatever based on your A or B (possibly
with a JS function or in the SetLocation using a JS vrbl).
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs