You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Doug Rayner <dr...@savicom.net> on 2003/11/25 19:06:37 UTC
Shared sessions
I'm looking for some advice on how to do the following:
I have an authenticated session for a browser window that is navigating the
site built with Embperl::Object. I would like to use a popup browser window
for a helper "applet". I would like to have the popup window safely share
the session with the parent window. Not sure how to do that...
Thanks and regards,
Doug Rayner
Sr. System Architect
Savicom
(415) 617-9006
http://www.savicom.net
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Input Escaping (was:Shared sessions)
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I wonder if I could ask you a couple of other questions?
Of course you can ask questions, but the right place to do this is on the
embperl mailing list.
> We are
> testing with the lastest stable release (1.3.6):
>
> 1) I had trouble opening/reading a file in a [- -] block in a
> template. The code looked something like this:
>
> [-
> if (open(QFILE, "<path>")) {
> while (<QFILE>) {
> ...
You need to set the option optRawInput in your httpd.conf
>
> [-
> $escmode = 0;
> $extraOption = '<option>c</option>';
> -]
>
Same problem here.
optRawInput turns of the unecsping on the input side (which is necessary for
html editors like frontpage or dreamweaver). In 1.3 input unescaping is on
by default, this changed in 2.0 where it is off by default.
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Simple table problem
Posted by Gerald Richter <ri...@ecos.de>.
>
> This can be done with $maxcol and $cnt, I have not tested but try
> this:
>
This works with 1.3...
>
> [-
> @array = qw/1 2 3 4 5 6 7 8 9 10/;
> $maxcol = 4;
> -]
> <table>
> <tr>
> <td>[+ $array[$cnt] +]</td>
> </tr>
> </table>
2.0 doesn't support $cnt yet, here write instead the following to get the
same result
<td>[+ $array[$col + ($row * $maxcnt)] +]</td>
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Simple table problem
Posted by "Luiz Fernando B. Ribeiro" <lu...@engenhosolucoes.com.br>.
On 03 Dec 2003 17:15:57 +1100, Pete Moran <pe...@forloop.co.uk> wrote:
> I know this is a really simple problem - and can be fixed using if
> statements etc - but wanted to know if there was a standard way of doing
> this.
>
> Simply say I have a array
>
> @array = qw/1 2 3 4 5 6 7 8 9 10/;
>
> And I want to create a dynamic table of this data - BUT I want to have a
> fixed column length (in this case 4). The end table should look like
>
> <table>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>5</td>
> <td>6</td>
> <td>7</td>
> <td>8</td>
> </tr>
> <tr>
> <td>9</td>
> <td>10</td>
> </tr>
> </table>
This can be done with $maxcol and $cnt, I have not tested but try this:
[-
@array = qw/1 2 3 4 5 6 7 8 9 10/;
$maxcol = 4;
-]
<table>
<tr>
<td>[+ $array[$cnt] +]</td>
</tr>
</table>
--
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Simple table problem
Posted by Pete Moran <pe...@forloop.co.uk>.
I know this is a really simple problem - and can be fixed using if
statements etc - but wanted to know if there was a standard way of doing
this.
Simply say I have a array
@array = qw/1 2 3 4 5 6 7 8 9 10/;
And I want to create a dynamic table of this data - BUT I want to have a
fixed column length (in this case 4). The end table should look like
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>9</td>
<td>10</td>
</tr>
</table>
Using the dynamic table syntax and the associated magic variables - can
this be achieved - or do I have to add some custom code ? Have checked
out various examples and searched the mailing list but seems either it
cant be done this way or I am yet again missing the point.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Input Escaping (was:Shared sessions)
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I wonder if I could ask you a couple of other questions?
Of course you can ask questions, but the right place to do this is on the
embperl mailing list.
> We are
> testing with the lastest stable release (1.3.6):
>
> 1) I had trouble opening/reading a file in a [- -] block in a
> template. The code looked something like this:
>
> [-
> if (open(QFILE, "<path>")) {
> while (<QFILE>) {
> ...
You need to set the option optRawInput in your httpd.conf
>
> [-
> $escmode = 0;
> $extraOption = '<option>c</option>';
> -]
>
Same problem here.
optRawInput turns of the unecsping on the input side (which is necessary for
html editors like frontpage or dreamweaver). In 1.3 input unescaping is on
by default, this changed in 2.0 where it is off by default.
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Shared sessions
Posted by Gerald Richter <ri...@ecos.de>.
>
> I have an authenticated session for a browser window that is
> navigating the site built with Embperl::Object. I would like to use
> a popup browser window for a helper "applet". I would like to have
> the popup window safely share the session with the parent window.
> Not sure how to do that...
>
If your applet window is loaded from the same directory or a subdirectory
the browser should send thecookie and Embperl is able to handle the session
data and put itsomehow in the page to pass it to your applet. You could also
use Embperl_Session_Cookie_Path and set it so that you are sure your popup
receives the cookie
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org