Mailing List Archive

Problem with <input />
Hello,

I recently had a problem with <input /> tags : I didn't set a "value" myself :

<input id="smth" name="smth" />

Embperl did but at the end of the tag resulting in this :

<input id="smth" name="smth" / value="">

Which, of course, doesn't validate. I solved it by forcing the value myself.

libembperl-perl 2.2.0-3.1 on Debian 5.0.4

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Problem with <input /> [ In reply to ]
Setting EMBPERL_OUTPUT_MODE should solve your problem:

http://perl.apache.org/embperl/pod/doc/Config.-page-2-.htm#sect_44

Gerald

-----Original Message-----
From: Jean-Christophe Boggio [mailto:embperl@thefreecat.org]
Sent: Tuesday, February 09, 2010 5:07 PM
To: embperl@perl.apache.org
Subject: Problem with <input />

Hello,

I recently had a problem with <input /> tags : I didn't set a "value" myself :

<input id="smth" name="smth" />

Embperl did but at the end of the tag resulting in this :

<input id="smth" name="smth" / value="">

Which, of course, doesn't validate. I solved it by forcing the value myself.

libembperl-perl 2.2.0-3.1 on Debian 5.0.4

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



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
Hi Gerald,

Gerald Richter - ECOS a écrit :
> Setting EMBPERL_OUTPUT_MODE should solve your problem:
>
> http://perl.apache.org/embperl/pod/doc/Config.-page-2-.htm#sect_44

No, I don't want embperl to generate the final /, I just want it not to
break my code when it adds things to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
Hi,

Am 12.02.2010 um 17:46 schrieb Jean-Christophe Boggio:

> Hi Gerald,
>
> Gerald Richter - ECOS a écrit :
>> Setting EMBPERL_OUTPUT_MODE should solve your problem:
>> http://perl.apache.org/embperl/pod/doc/Config.-page-2-.htm#sect_44
>
> No, I don't want embperl to generate the final /, I just want it not to
> break my code when it adds things to it.


If I remember correctly, there was a problem with XHTML and Embperl. Simply don't use the "/>" ;-)


With best regards,

Dirk Melchers
/// IT/Software-Entwicklung ///

--
NUREG GmbH ///
Dorfäckerstraße 31 | 90427 Nürnberg | Germany
Tel. +49-911-32002-256 | Fax +49-911-32002-299
Mobil +49-172-9354670 | www.nureg.de
Nürnberg HRB 22653 | USt.ID DE 814 685 653
Geschäftsführer: Michael Schmidt, Stefan Boas


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
I recently used this nastyness to get an image tag to close properly:

<img src="..." " width="132" height="34" [+ '/' +]>

I know that EMBPERL_OUTPUT_MODE should address this but I was actually
running this as an offline process and couldn't work out how to set it
in this context.

Michael


On Fri, Feb 12, 2010 at 4:51 PM, Dirk Melchers <melchers@nureg.de> wrote:
> Hi,
>
> Am 12.02.2010 um 17:46 schrieb Jean-Christophe Boggio:
>
>> Hi Gerald,
>>
>> Gerald Richter - ECOS a écrit :
>>> Setting EMBPERL_OUTPUT_MODE should solve your problem:
>>> http://perl.apache.org/embperl/pod/doc/Config.-page-2-.htm#sect_44
>>
>> No, I don't want embperl to generate the final /, I just want it not to
>> break my code when it adds things to it.
>
>
> If I remember correctly, there was a problem with XHTML and Embperl. Simply don't use the "/>" ;-)
>
>
> With best regards,
>
> Dirk Melchers
> /// IT/Software-Entwicklung ///
>
> --
> NUREG GmbH ///
> Dorfäckerstraße 31 | 90427 Nürnberg | Germany
> Tel. +49-911-32002-256 | Fax +49-911-32002-299
> Mobil +49-172-9354670 | www.nureg.de
> Nürnberg HRB 22653 | USt.ID DE 814 685 653
> Geschäftsführer: Michael Schmidt, Stefan Boas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Problem with <input /> [ In reply to ]
Hi,

>
> Gerald Richter - ECOS a écrit :
> > Setting EMBPERL_OUTPUT_MODE should solve your problem:
> >
> > http://perl.apache.org/embperl/pod/doc/Config.-page-2-.htm#sect_44
>
> No, I don't want embperl to generate the final /, I just want it not to
> break my code when it adds things to it.
>

Since Embperl internally parses tags it needs to modify in a tree representation and converts it back to html on output, Embperl does not know about the final / you have put in, so it only depends on the OUTPUT Mode


Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
> Since Embperl internally parses tags it needs to modify in a tree representation and converts it back to html on output, Embperl does not know about the final / you have put in, so it only depends on the OUTPUT Mode
>
>
> Gerald

Hi Gerald,

Is it possible to set this on an individual page basis (as in
something like $optDisableTableScan) or can it only be set in the
server config?


Thanks

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Problem with <input /> [ In reply to ]
It can only be set for the whole page

You can use

$epreq -> config -> output_mode

To set it inside the page, but it will effect the output of the whole page

Gerald




> -----Original Message-----
> From: Michael Smith [mailto:smithm@gmail.com]
> Sent: Wednesday, February 24, 2010 5:38 PM
> To: embperl@perl.apache.org
> Subject: Re: Problem with <input />
>
> > Since Embperl internally parses tags it needs to modify in a tree
> representation and converts it back to html on output, Embperl does not
> know about the final / you have put in, so it only depends on the
> OUTPUT Mode
> >
> >
> > Gerald
>
> Hi Gerald,
>
> Is it possible to set this on an individual page basis (as in
> something like $optDisableTableScan) or can it only be set in the
> server config?
>
>
> Thanks
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
Thank you Gerald that works a treat.

Michael

(very much looking forward to the next release!)


On Fri, Feb 26, 2010 at 5:05 AM, Gerald Richter - ECOS
<gerald.richter@ecos.de> wrote:
> It can only be set for the whole page
>
> You can use
>
> $epreq -> config -> output_mode
>
> To set it inside the page, but it will effect the output of the whole page
>
> Gerald
>
>
>
>
>> -----Original Message-----
>> From: Michael Smith [mailto:smithm@gmail.com]
>> Sent: Wednesday, February 24, 2010 5:38 PM
>> To: embperl@perl.apache.org
>> Subject: Re: Problem with <input />
>>
>> > Since Embperl internally parses tags it needs to modify in a tree
>> representation and converts it back to html on output, Embperl does not
>> know about the final / you have put in, so it only depends on the
>> OUTPUT Mode
>> >
>> >
>> > Gerald
>>
>> Hi Gerald,
>>
>> Is it possible to set this on an individual page basis (as in
>> something like $optDisableTableScan) or can it only be set in the
>> server config?
>>
>>
>> Thanks
>>
>> Michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with <input /> [ In reply to ]
Michael Smith schrieb:
> I recently used this nastyness to get an image tag to close properly:
>
> <img src="..." " width="132" height="34" [+ '/' +]>
>
If you'd used output_mode = 1 you'd come up with
<iframe src="..." /></iframe>

We addressed this problem by defining our own Syntax which subclasses
EmberlHTML.pm
and removed all non form-related tags from the Init() method and set
output_mode to "xml".
One may mention that with output_mode set to "xml" Embperl correctly
sets the checked attribute
of checkboxes and radiobuttons to checked="checked".
Unfortunately it in this mode it does not recognize prechecked
radiobuttons and does therefore not remove the
checked-Attribute but reinserts it or applies to another radiobutton (
depending on userinput ).
Fortunately most browsers handle this gratefully and display it correctly.

btw: did somebody get this behavior work with selects?

Of course we now cannot use the url rewriting feature for session_ids.


--
mit freundlichem Gruß,

Frank Wesemann
Fotofinder GmbH USt-IdNr. DE812854514
Software Entwicklung Web: http://www.fotofinder.com/
Potsdamer Str. 96 Tel: +49 30 25 79 28 90
10785 Berlin Fax: +49 30 25 79 28 999

Sitz: Berlin
Amtsgericht Berlin Charlottenburg (HRB 73099)
Geschäftsführer: Ali Paczensky




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