Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

Problem with <input />

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


embperl at thefreecat

Feb 9, 2010, 8:07 AM

Post #1 of 10 (1660 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl


gerald.richter at ecos

Feb 9, 2010, 8:42 PM

Post #2 of 10 (1612 views)
Permalink
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 [at] thefreecat]
Sent: Tuesday, February 09, 2010 5:07 PM
To: embperl [at] perl
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


embperl at thefreecat

Feb 12, 2010, 8:46 AM

Post #3 of 10 (1614 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl


melchers at nureg

Feb 12, 2010, 8:51 AM

Post #4 of 10 (1611 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl


smithm at gmail

Feb 12, 2010, 8:59 AM

Post #5 of 10 (1602 views)
Permalink
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 [at] nureg> 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 [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


gerald.richter at ecos

Feb 21, 2010, 11:11 PM

Post #6 of 10 (1566 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl


smithm at gmail

Feb 24, 2010, 8:37 AM

Post #7 of 10 (1547 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl


gerald.richter at ecos

Feb 25, 2010, 9:05 PM

Post #8 of 10 (1546 views)
Permalink
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 [at] gmail]
> Sent: Wednesday, February 24, 2010 5:38 PM
> To: embperl [at] perl
> 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 [at] perl
> For additional commands, e-mail: embperl-help [at] perl



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


smithm at gmail

Feb 26, 2010, 5:36 AM

Post #9 of 10 (1536 views)
Permalink
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 [at] ecos> 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 [at] gmail]
>> Sent: Wednesday, February 24, 2010 5:38 PM
>> To: embperl [at] perl
>> 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 [at] perl
>> For additional commands, e-mail: embperl-help [at] perl
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


f.wesemann at fotofinder

Apr 22, 2010, 4:54 PM

Post #10 of 10 (1229 views)
Permalink
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 [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.