Newbie help with SELECTS
Hope someone can help, basically I am new to Embperl. To explain what I am doing, on a single HTML page there are multiple forms (each form consisting of a different name), however each of the forms (and data within) is inside a sub page called with a Execute. The problem is that the forms post to the same page - updating some of the details, however in each of the forms (can be up to 4) each has a select called location_id, now when the page is re-copiles with the new data - the original posted form and its select (location_id), automatically gets selected (from %idat), however as the other forms also have the same field name (even though in a different forms namespace), I cannot set the other forms to selected, even if I manually have a variable [- $select = 'SELECTED' -] TEST It still does not select, I have tried to delete the location_id from %idat, but still doesnt help !!! Any ideas please ? Thanks in advance
Re: Newbie help with SELECTS
Peter Moran wrote:
Hope someone can help, basically I am new to Embperl. To explain what I
am doing, on a single HTML page there are multiple forms (each form
consisting of a different name), however each of the forms (and data
within) is inside a sub page called with a Execute. The problem is that
the forms post to the same page - updating some of the details, however
in each of the forms (can be up to 4) each has a select called
location_id, now when the page is re-copiles with the new data - the
original posted form and its select (location_id), automatically gets
selected (from %idat), however as the other forms also have the same
field name (even though in a different forms namespace), I cannot set
the other forms to selected, even if I manually have a variable
[- $select = 'SELECTED' -]
TEST
It still does not select, I have tried to delete the location_id from
%idat, but still doesnt help !!!
Any ideas please ?
The magic is in %fdat, set the $fdat{} to the desired value and it
should work.
You can also disable the html input processing on this page using one of
Embperl options that I don't remember exactly now but I think it is
"optDisableHtmlScan" (consult the manual).
Anyway this can be tricky since the POSTED data has no information about
forms namespace and the values will get overlapped.
This kind of complex layout require javascript to work properly.
Regards,
--
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
make failed with 2.0b9
Hi! I have two running Embperls. One with Apache 1/ Emperl 1 at Debian and one with Apache 2/ Embperl 2 on Redhat. To simplify things i tryd to make Embperl-2.0b9 at Debian, too. I installed Apache 2 from testing (Apache/2.0.47). But the Embperl make fails with some errors (see below). I searched the archive of this mailinglist and found simillar Errors from other users: http://www.ecos.de/~mailarc/embperl/2003-04/msg00025.html http://www.ecos.de/~mailarc/embperl/2003-06/msg00027.html Both refere to older versions, but show the same characteristics, the same missing *.h files. There where no answers to this problems, so i decided to try again here. Any ideas about this? Benni --schnipp--schnipp--schnipp--schnipp In file included from /usr/include/apache2/httpd.h:72, from /home/benni/down/Embperl-2.0b9/ep.h:145, from App.xs:13: /usr/include/apache2/ap_config.h:58: apr.h: No such file or directory /usr/include/apache2/ap_config.h:59: apr_hooks.h: No such file or directory /usr/include/apache2/ap_config.h:60: apr_optional_hooks.h: No such file or directory In file included from /usr/include/apache2/ap_config.h:267, from /usr/include/apache2/httpd.h:72, from /home/benni/down/Embperl-2.0b9/ep.h:145, from App.xs:13: /usr/include/apache2/os.h:62: apr.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:145, from App.xs:13: /usr/include/apache2/httpd.h:77: apr_general.h: No such file or directory /usr/include/apache2/httpd.h:78: apr_tables.h: No such file or directory /usr/include/apache2/httpd.h:79: apr_pools.h: No such file or directory /usr/include/apache2/httpd.h:80: apr_time.h: No such file or directory /usr/include/apache2/httpd.h:81: apr_network_io.h: No such file or directory /usr/include/apache2/httpd.h:82: apr_buckets.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:145, from App.xs:13: /usr/include/apache2/httpd.h:690: apr_uri.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:146, from App.xs:13: /usr/include/apache2/http_config.h:62: apr_hooks.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:147, from App.xs:13: /usr/include/apache2/http_protocol.h:63: apr_hooks.h: No such file or directory /usr/include/apache2/http_protocol.h:64: apr_portable.h: No such file or directory /usr/include/apache2/http_protocol.h:65: apr_mmap.h: No such file or directory /usr/include/apache2/http_protocol.h:66: apr_buckets.h: No such file or directory In file included from /usr/include/apache2/http_protocol.h:67, from /home/benni/down/Embperl-2.0b9/ep.h:147, from App.xs:13: /usr/include/apache2/util_filter.h:58: apr.h: No such file or directory /usr/include/apache2/util_filter.h:59: apr_buckets.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:148, from App.xs:13: /usr/include/apache2/http_log.h:66: apr_thread_proc.h: No such file or directory In file included from /home/benni/down/Embperl-2.0b9/ep.h:150, from App.xs:13: /usr/include/apache2/ap_compat.h:5: apu_compat.h: No such file or directory make[3]: *** [App.o] Error 1 -- http://www.aymargeddon.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie help with SELECTS
Hi:
>> [- $select = 'SELECTED' -]
>> > +]>TEST
I use this kind of code many times in eplsite and it works.
If you see your code your variable $select is not the same in both cases.
Have your tried to see what is the source of your html output?
> The magic is in %fdat, set the $fdat{} to the desired value and it
> should work.
I prefer to use %fdat too.
> Peter Moran wrote:
>> Hope someone can help, basically I am new to Embperl. To explain what
>> I am doing, on a single HTML page there are multiple forms (each form
>> consisting of a different name), however each of the forms (and data
>> within) is inside a sub page called with a Execute. The problem is
>> that the forms post to the same page - updating some of the details,
>> however in each of the forms (can be up to 4) each has a select
>> called
>> location_id, now when the page is re-copiles with the new data - the
>> original posted form and its select (location_id), automatically gets
>> selected (from %idat), however as the other forms also have the same
>> field name (even though in a different forms namespace), I cannot set
>> the other forms to selected, even if I manually have a variable
>> [- $select = 'SELECTED' -]
>> > +]>TEST
>>
>> It still does not select, I have tried to delete the location_id from
>> %idat, but still doesnt help !!!
>>
>>
>> Any ideas please ?
>
>
> The magic is in %fdat, set the $fdat{} to the desired value and it
> should work.
>
> You can also disable the html input processing on this page using one
> of Embperl options that I don't remember exactly now but I think it is
> "optDisableHtmlScan" (consult the manual).
>
> Anyway this can be tricky since the POSTED data has no information
> about forms namespace and the values will get overlapped.
>
> This kind of complex layout require javascript to work properly.
>
> Regards,
>
> --
> Luiz Fernando B. Ribeiro
> Engenho Soluções para a Internet
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
