RE: More Perl and AJAX



Yeah that's fine to use.

If you use CGI.pm

You can use

param('<NAME>')

i.e.

if (! param)
{
#
# do something
#
}
elsif (param('today'))
{
#
# do something
#
}

-----Original Message-----
From: Mathew Snyder [mailto:theillien@xxxxxxxxx]
Sent: 29 August 2007 12:32
To: Perl Beginners
Subject: More Perl and AJAX

When passing a value from JavaScript to a Perl script, am I right in
thinking that the value received by the Perl script would be captured like
my $value = @_;?

I'm trying to pass a value to Perl and by calling it directly in the browser
and passing a value to it like so
http://ajax.application.com/cgi-bin/perl_script.pl?menuObject=environment it
simply prints a zero to the browser.

Is that how it should be called when doing so directly?

--
Keep up with me and what I'm up to: http://theillien.blogspot.com

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional
commands, e-mail: beginners-help@xxxxxxxx http://learn.perl.org/



This e-mail is from the PA Group. For more information, see
www.thepagroup.com.

This e-mail may contain confidential information. Only the addressee is
permitted to read, copy, distribute or otherwise use this email or any
attachments. If you have received it in error, please contact the sender
immediately. Any opinion expressed in this e-mail is personal to the sender
and may not reflect the opinion of the PA Group.

Any e-mail reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.




.



Relevant Pages

  • Re: Why why why? (Was: Re: Vertical alignment of text within a DIV)
    ... Sadly CSS2 does not offer a good method for creating layouts ... anything else a browser adds to the base web experience. ... successfully been achieved with the likes of Java and Perl. ... the same would not of been a far better solution for HTML, XML, CSS, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: web pages
    ... This code opens internet explorer and displays web page cannnot be found. ... Start a browser, such as Internet Explorer, and get it to fetch web ... None of the content will end up in your Perl ... You can write a Perl program to act like a browser by programming it ...
    (perl.beginners)
  • RE: Regex help
    ... Subject: Regex help ... $ perl -le' ... This e-mail may contain confidential information. ... Any opinion expressed in this e-mail is personal to the sender ...
    (perl.beginners)
  • Re: Browser-specific perl error (taint mode)
    ... This depends on on alot of factors, few of which you are sharing.Generally, perl ... errors should not come through to the browser. ... It is possible that your server can not negotiate a secure protocol with IE. ... You are using user-provided data as a parameter to a shell command, ...
    (perl.beginners)
  • Re: Problems flushing my buffer! (perl)
    ... I read the perl faq and saw that by setting $| true ... And a web browser ... But neither of these has _ANYTHING_ to do with Perl but would happen ... the progress it is making from time to time and have that appear in my ...
    (comp.lang.perl.misc)