RE: [OT] CGI::Push

2003-06-05 Thread McLean, Grant
Issac Goldstand wrote:
 Does anyone have success/failure stories using Push responses?
 
 Please share.  Thanks.

I have successfully developed a couple of interesting 
push-based solutions, but the fact that IE didn't (doesn't?) 
support push meant that they weren't useful to my user base.

Grant


RE: mod_perl caching form data?

2003-05-30 Thread McLean, Grant
David Ressman wrote:
 something's caching previously entered form data and 
 displaying it back to me as the default values in those same forms

This is most likely a variable scoping problem as described here:

  http://perl.apache.org/docs/1.0/guide/frequent.html

As a rule of thumb, variables which are 'local' to a subroutine
should be declared with 'my' and variables which should be
visible to all routines in a file should be declared with 'our'.

eg:

  use CGI;

  our $cgi = new CGI;

  ...

  sub do_something {
my($arg1, $arg2) = @_;
...
  } 

If your script has global variables which are declared with 'my',
they will cause problems.

Regards
Grant