Re: passing javascript variable to embperl

2002-04-17 Thread Wim Kerkhoff
On 17-Apr-2002 Ed Grimm wrote: > On Mon, 15 Apr 2002, Wim Kerkhoff wrote: > >> In a nutshell, create a hidden layer. In that hidden layer, do a >> GET/POST to a embperl/mod_perl page. The request will get sent to the >> hidden in-memory document, which can then be parsed back into javascript >>

Re: passing javascript variable to embperl

2002-04-16 Thread Ed Grimm
On Mon, 15 Apr 2002, Wim Kerkhoff wrote: > In a nutshell, create a hidden layer. In that hidden layer, do a > GET/POST to a embperl/mod_perl page. The request will get sent to the > hidden in-memory document, which can then be parsed back into javascript > variables. That's a security hole! I d

Re: passing javascript variable to embperl

2002-04-16 Thread Wim Kerkhoff
On 16-Apr-2002 Kee Hinckley wrote: > At 3:19 PM -0700 4/16/02, Wim Kerkhoff wrote: >>Where does one start? Are there any installers for other CGI >>projects that can >>be imitated? > > I don't know what's out there for CGI-type installations. > I'd think the first thing would be to see if can

Re: passing javascript variable to embperl

2002-04-16 Thread Kee Hinckley
At 3:19 PM -0700 4/16/02, Wim Kerkhoff wrote: >Where does one start? Are there any installers for other CGI >projects that can >be imitated? I started writing an installer for acmemail [1] in the style of I don't know what's out there for CGI-type installations. I'd think the first thing would

Re: passing javascript variable to embperl

2002-04-16 Thread Wim Kerkhoff
On 16-Apr-2002 Kee Hinckley wrote: > At 2:23 PM -0700 4/16/02, Wim Kerkhoff wrote: > > You should always be doing validation on the back-end as well, if > only to defend against malcious users. That goes without saying... protection against both malicious and brain dead users. >>I found Embp

Re: passing javascript variable to embperl

2002-04-16 Thread Kee Hinckley
At 2:23 PM -0700 4/16/02, Wim Kerkhoff wrote: >With JavaScript form validation, it's pretty easy to allow browsers with no JS >support, or JS turned off, to still be able to submit the form without writing >extra code. The JS code just gets ignored. However, with the XML-RPC idea, You should alwa

Re: passing javascript variable to embperl

2002-04-16 Thread Wim Kerkhoff
On 16-Apr-2002 Cameron McBride wrote: >> If a Javascript enabled browser is already a requirement, it's a great way >> of >> turning a browser from a stateless machine into a stateful one. For example, > > You have a very good point here, but is it a realistic one? (stateful > thing) Almost eve

Re: passing javascript variable to embperl

2002-04-16 Thread Wim Kerkhoff
On 16-Apr-2002 Kee Hinckley wrote: > At 3:43 AM -0700 4/16/02, Wim Kerkhoff wrote: >>If a Javascript enabled browser is already a requirement, it's a great way of > > You mean, "If a browser supporting layers is already requirement". > And of course you need to check it against > Netscape/Moz

Re: passing javascript variable to embperl

2002-04-16 Thread Kee Hinckley
At 3:43 AM -0700 4/16/02, Wim Kerkhoff wrote: >If a Javascript enabled browser is already a requirement, it's a great way of You mean, "If a browser supporting layers is already requirement". And of course you need to check it against Netscape/Mozilla/IEWin/IEMac/Opera/ Mind you, I don't

Re: passing javascript variable to embperl

2002-04-16 Thread Cameron McBride
> If a Javascript enabled browser is already a requirement, it's a great way of > turning a browser from a stateless machine into a stateful one. For example, You have a very good point here, but is it a realistic one? (stateful thing) Almost every time I have played with things in Javascript --

Re: passing javascript variable to embperl

2002-04-16 Thread Wim Kerkhoff
On 16-Apr-2002 Cameron McBride wrote: >> In a nutshell, create a hidden layer. In that hidden layer, do a >> GET/POST to a embperl/mod_perl page. The request will get sent to the >> hidden in-memory document, which can then be parsed back into javascript >> variables. > > ooo, perhaps there migh

Re: passing javascript variable to embperl

2002-04-15 Thread Cameron McBride
> In a nutshell, create a hidden layer. In that hidden layer, do a > GET/POST to a embperl/mod_perl page. The request will get sent to the > hidden in-memory document, which can then be parsed back into javascript > variables. ooo, perhaps there might be valid uses -- but this just feels 'dirty',

Re: passing javascript variable to embperl

2002-04-15 Thread Wim Kerkhoff
On Wed, Apr 03, 2002 at 10:25:47AM +1000, Andrew O'Brien said: > On Wed, Apr 03, 2002 at 10:18:35AM +1000, Andrew Douglass wrote: > > Can anyone tell me if it possible to pass a javascript variable to > > embperl without using forms? > > No. :) Yes. :-) Have a look at: http://www.scottandrew.com

Re: passing javascript variable to embperl

2002-04-02 Thread Kee Hinckley
At 10:18 AM +1000 4/3/02, Andrew Douglass wrote: >Can anyone tell me if it possible to pass a javascript variable to >embperl without using forms? In what sense? The JavaScript variable is only available in the browser, it doesn't exist on the server at all. However JavaScript could certainly

Re: passing javascript variable to embperl

2002-04-02 Thread Andrew O'Brien
On Wed, Apr 03, 2002 at 10:18:35AM +1000, Andrew Douglass wrote: > Can anyone tell me if it possible to pass a javascript variable to > embperl without using forms? No. :) javascript is completely client side while embperl is completely server side. HTTP being a completely stateless protocol me