You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Ra...@ubsw.com on 2002/11/11 21:04:14 UTC
SRC
Hi All ,
Having a very basic error bit not sure how i could do it.
As iam trying to pass parameters to .asp script like XML_Mem.pl?Start_Date=Jul+01+2002&End_Date=Aug+01+2002&App='STT' .
As we can pass CGI parameters to a perl cannot we pass these parameters in asp . Iam trying to call this in a script like
#!perl asp
<%
my($Start_Date,$End_Date) = @_;
my $Sdate = $Server->URLEncode($Start_Date);
my $Edate = $Server->URLEncode($End_Date);
print <<End9;
<HTML>
<HEAD>
<TITLE>KPI</TITLE>
</HEAD>
<script language="JavaScript" src="jscripts/date-picker.js"></script>
<SCRIPT language="JavaScript">
load_cgi("$Start_Date","$End_Date");
</SCRIPT>
<FRAMESET rows="28%,62%" border="0">
<FRAME src="standard-mem.asp" name="tabs">
<FRAME src="XML_Mem.asp?Start_Date=$Start_Date&End_Date=$End_Date&App='STT'">;
</FRAMESET>
</HTML>
End9
%>
when i test my script by giving default values the script works. If my syntax is wrong can i use Response->Include in src ?
Thanks
Raghu
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: SRC
Posted by Josh Chamas <jo...@chamas.com>.
Raghu.Nalamada@ubsw.com wrote:
> Hi All ,
>
> Having a very basic error bit not sure how i could do it.
>
> As iam trying to pass parameters to .asp script like XML_Mem.pl?Start_Date=Jul+01+2002&End_Date=Aug+01+2002&App='STT' .
> As we can pass CGI parameters to a perl cannot we pass these parameters in asp . Iam trying to call this in a script like
>
>
I am not sure what you are trying to do exactly, but it seems that
you might be initializing $Start_Date & $End_Date incorrectly...
>
> #!perl asp
> <%
> my($Start_Date,$End_Date) = @_;
> my $Sdate = $Server->URLEncode($Start_Date);
> my $Edate = $Server->URLEncode($End_Date);
This should probably be:
my($Start_Date, $End_Date) =
($Request->QueryString('Start_Date'), $Request->QueryString('End_Date'));
Also make sure to set:
PerlSetVar UseStrict 1
to show you other error that you might have.
Syntax like my($Start_Date,$End_Date) = @_;
is only for when you have an include that you are passing
arguments to like $Response->Include($file, $Start, $End);
I also see that $Sdate & $Edate may not be getting used.
Make sure to use them if you want to do so.
Regards,
Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checking http://www.nodeworks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org