Re: How to use a CGI/PERL hash variable in java script.

2010-02-07 Thread Peter Scott
On Mon, 01 Feb 2010 23:19:27 -0800, venu madhav wrote: > Hi All, > I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: > > - CGI code > my %hash{3}=300; > --

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Erez! On Tuesday 02 Feb 2010 15:20:16 Erez Schatz wrote: > On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. > > Are you physically unable to say anything in a social manner? > I apologise for writing my posts in a rude manner. See below for my response. > > <<< > > my %hash = (

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 15:06, Shlomi Fish wrote: > > Ahmm... no. Are you physically unable to say anything in a social manner? > > <<< > my %hash = (3 => <<"EOF"); > > > > > This is called a cross-site scripting attack ( > http://en.wikipedia.org/wiki/Cross-site_s

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:12:01 Erez Schatz wrote: > On 2 February 2010 09:19, venu madhav wrote: > >I've a situation where I create a hash variable in PERL and > > use it in Java script which is embedded in the CGI. The key for that > > hash is taken from JavaScript. For ex: > > > >

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
On Tuesday 02 Feb 2010 14:00:26 Erez Schatz wrote: > On 2 February 2010 13:46, Shlomi Fish wrote: > > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > > > http://perl.org.il/misc.html#pl_vs_pl > > What does have got to do with the question? > It doesn't, but it was a mista

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 09:19, venu madhav wrote: >        I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: > > - CGI code > my %hash{3}=300; > --JScript code--- > var

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Erez Schatz
On 2 February 2010 13:46, Shlomi Fish wrote: > Regarding "PERL" - it's either "perl" or "Perl" but never "PERL": > > http://perl.org.il/misc.html#pl_vs_pl What does have got to do with the question? > > Please go to http://perl-begin.org/ and find a good resource to learn Perl. To > qoute Mark J

Re: How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread Shlomi Fish
Hi Venu! On Tuesday 02 Feb 2010 09:19:27 venu madhav wrote: > Hi All, > I've a situation where I create a hash variable in PERL and > use it in Java script which is embedded in the CGI. The key for that > hash is taken from JavaScript. For ex: Regarding "PERL" - it's either "perl" or "Per

How to use a CGI/PERL hash variable in java script.

2010-02-02 Thread venu madhav
Hi All, I've a situation where I create a hash variable in PERL and use it in Java script which is embedded in the CGI. The key for that hash is taken from JavaScript. For ex: - CGI code my %hash{3}=300; --JScript code--- var var1 = 3; var variable = $hash{var1}; --