perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: SRC
Date Mon, 11 Nov 2002 21:59:39 GMT
Thanks Josh,

            Iam trying to generate a multi tabbed page where iam using 
FRAME src="http://harp:8080/asp/eg/XML_Mem.asp?Start_Date=$Start_Date&End_Date=$End_Date&App=STT">;
as my default page by using

<FRAMESET rows="15%,85%" border="0">
<FRAME src="standard-mem.asp" name="tabs">
<FRAME src="http://harp:8080/asp/eg/XML_Mem.asp?Start_Date=$Start_Date&End_Date=$End_Date&App=STT">;

# in a javascript function called in standard-mem.asp iam referencing 
 if (tab == 0)
eval('document.tab0.src = "tabs/stm_on.gif"');
eval('document.tab1.src = "tabs/ldn_off.gif"');
eval('document.tab2.src = "tabs/opf_off.gif"');
eval('href = "http://harp:8080/asp/eg/XML_Mem.asp?Start_Date=$Start_Date&End_Date=$End_Date&App=STT"');
if (tab == 1)
eval('document.tab0.src = "tabs/stm_off.gif"');
eval('document.tab1.src = "tabs/ldn_on.gif"');
eval('document.tab2.src = "tabs/opf_off.gif"');
eval('href = "http://harp:8080/asp/eg/XML_Mem.asp?Start_Date=$Start_Date&End_Date=$End_Date&App=WORK"');

Though my default page works , when i click the different tabs though the alert get get triggered
the the asp script does'nt run or generate any error . I have a similar thing working for
a HTML page but it is not working for the ASP page , Is there something else i need to be



-----Original Message-----
From: Josh Chamas []
Sent: Monday, November 11, 2002 3:48 PM
To: Nalamada, Raghu
Subject: Re: SRC 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'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.


Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.      
NodeWorks Link Checking      

Visit our website at

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:
For additional commands, e-mail:

View raw message