FAQ
Embperl 1.3.4

Can the following be done:

my ( $page, $fdat, $udat ) = @_;
HTML::Embperl::Execute({inputfile => $page, fdat => $fdat, udat => $udat
});
exit;

Question:

Is UDAT as a parameter in HTML::Embperl::Execute supported, when
calling it from a script?
If Yes, Does UDAT has to be tied to Apache::Session or just plain hash
ref?


Thanks,

Aldo Letellier
Bigfoot <http://www.bigfootinteractive.com/> Interactive

Search Discussions

  • Gerald Richter at Sep 9, 2002 at 7:01 am

    Can the following be done:

    my ( $page, $fdat, $udat ) = @_;
    HTML::Embperl::Execute({inputfile => $page, fdat => $fdat, udat => $udat });
    exit;
    No, that can't be done (fdat parameter is ok, but udat parameter doesn't
    exists). Why do like to do it?

    Gerald





    -------------------------------------------------------------
    Gerald Richter ecos electronic communication services gmbh
    Internetconnect * Webserver/-design/-datenbanken * Consulting

    Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
    E-Mail: richter@ecos.de Voice: +49 6133 925131
    WWW: http://www.ecos.de Fax: +49 6133 925152
    -------------------------------------------------------------




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org
  • Aldo Letellier at Sep 9, 2002 at 5:07 pm
    I'm concerned about losing session scooping in the calling page.

    page1:
    [-
    use mymodule;
    call &mymodule::wait( $req_rec, \%fdat, \%udat )

    # execute a time consuming operation
    .....
    -]


    EOF
    -----
    package mymodule;

    use HTML::Embperl;

    # shows please wait page...
    sub wait {
    my ( $r, $fdat, $udat ) = @_;
    $fdat->{returnpage} = $r->uri();
    HTML::Embperl::Execute({inputfile => 'waitpage', fdat => $fdat, udat =>
    $udat });
    exit;
    }

    1;

    EOF
    ----------
    waitpage:

    [-
    $escmode = 0;
    $page = delete $fdat{returnpage} || '/';
    -]
    <HTML>
    <BODY>
    <FORM action="[+ $page +]" method="POST">
    <TABLE border="0" width="100%">
    <TR><TD height="80">&nbsp;</TD></TR>
    <TR><TD align="center" valign="top">
    <TABLE bgcolor="navy" border="0" cellspacing="0" cellpadding="2"
    width="200">
    <TR><TD align="left" class="error"
    valign="middle"><B>&nbsp;processing</B></TD></TR>
    <TR><TD>
    <TABLE bgcolor="#FFFFFF" width="100%" border="0" cellpadding="2"
    cellspacing="0">
    <TR><TD align="left" nowrap class="normal">&nbsp;</TD></TR>
    <TR><TD align="center" nowrap class="normal">Please wait...</TD></TR>
    <TR><TD align="left" nowrap class="normal">&nbsp;</TD></TR>
    </TABLE>
    </TD></TR></TABLE>
    </TD></TR>
    </TABLE>
    [$HIDDEN$]
    </FORM>
    <SCRIPT language="javascript">
    document.forms[0].submit();
    </SCRIPT>
    </BODY>
    </HTML>

    -----Original Message-----
    From: Gerald Richter
    Sent: Monday, September 09, 2002 3:01 AM
    To: Aldo Letellier; embperl@perl.apache.org
    Subject: Re: execute and udat

    Can the following be done:

    my ( $page, $fdat, $udat ) = @_;
    HTML::Embperl::Execute({inputfile => $page, fdat => $fdat, udat => $udat });
    exit;
    No, that can't be done (fdat parameter is ok, but udat parameter doesn't
    exists). Why do like to do it?

    Gerald





    -------------------------------------------------------------
    Gerald Richter ecos electronic communication services gmbh
    Internetconnect * Webserver/-design/-datenbanken * Consulting

    Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
    E-Mail: richter@ecos.de Voice: +49 6133 925131
    WWW: http://www.ecos.de Fax: +49 6133 925152
    -------------------------------------------------------------




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org
  • Gerald Richter at Sep 9, 2002 at 5:50 pm
    I'm concerned about losing session scooping in the calling page.
    %fdat and %udat are both global to _all_ Embperl pages of one request, so
    there is no need to pass them to your waitpage, they will be already there

    Gerald


    -------------------------------------------------------------
    Gerald Richter ecos electronic communication services gmbh
    Internetconnect * Webserver/-design/-datenbanken * Consulting

    Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
    E-Mail: richter@ecos.de Voice: +49 6133 925131
    WWW: http://www.ecos.de Fax: +49 6133 925152
    -------------------------------------------------------------




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org
  • Aldo Letellier at Sep 9, 2002 at 6:35 pm

    Thanks for your response, Question:

    global to _all_ Embperl pages
    I'm calling a Embperl page from a package module which gets call by
    Embperl page

    Embperl >>> Package >>> Embperl

    Will it keep its global scooping?


    -----Original Message-----
    From: Gerald Richter
    Sent: Monday, September 09, 2002 1:51 PM
    To: Aldo Letellier; embperl@perl.apache.org
    Subject: Re: execute and udat



    I'm concerned about losing session scooping in the calling page.
    %fdat and %udat are both global to _all_ Embperl pages of one request,
    so
    there is no need to pass them to your waitpage, they will be already
    there

    Gerald


    -------------------------------------------------------------
    Gerald Richter ecos electronic communication services gmbh
    Internetconnect * Webserver/-design/-datenbanken * Consulting

    Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
    E-Mail: richter@ecos.de Voice: +49 6133 925131
    WWW: http://www.ecos.de Fax: +49 6133 925152
    -------------------------------------------------------------




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org
  • Gerald Richter at Sep 10, 2002 at 3:17 am

    I'm calling a Embperl page from a package module which gets call by
    Embperl page

    Embperl >>> Package >>> Embperl

    Will it keep its global scooping?
    Yes

    Gerald

    -------------------------------------------------------------
    Gerald Richter ecos electronic communication services gmbh
    Internetconnect * Webserver/-design/-datenbanken * Consulting

    Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
    E-Mail: richter@ecos.de Voice: +49 6133 925131
    WWW: http://www.ecos.de Fax: +49 6133 925152
    -------------------------------------------------------------





    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupembperl @
categoriesmodperl, perl
postedSep 5, '02 at 8:59p
activeSep 10, '02 at 3:17a
posts6
users2
websiteperl.apache.org

2 users in discussion

Gerald Richter: 3 posts Aldo Letellier: 3 posts

People

Translate

site design / logo © 2022 Grokbase