Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-17 Thread Lyle

Ron Savage wrote:

Hi Ron

On Sun, 2009-02-15 at 12:21 +1100, Ron Savage wrote:
  

Hi Ron

An update on using Ocaml to generate a pure-Perl HTML parser...



A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
leads to this:

http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html

which can generate a Perl parser.
  

I installed Ocaml, and downloadered Philip's code, but make fails.

I've emailed him to see if there is a newer version available.



Philip replied, and suggests his code is not the best to investigate.

He's given me this URL to follow up:

http://suika.fam.cx/www/markup/html/whatpm/readme

There are a set of Perl modules there I had never heard about. I shall
look into the HTML parser there.
  


Good find. Those aren't on CPAN and look really promising :)


Lyle


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-17 Thread Ron Savage
Hi Folks

  Let's start looking around for a pure-X (X != Perl) parser, and adapt
  that.
 
 How about: http://ejohn.org/blog/pure-javascript-html-parser/

I've decided to waste a few days, starting now, converting this to Perl.

The module is tentatively called HTML::Parser::PurePerl.
 
-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-17 Thread Lyle

Ron Savage wrote:

Hi Folks

  

Let's start looking around for a pure-X (X != Perl) parser, and adapt
that.
  

How about: http://ejohn.org/blog/pure-javascript-html-parser/



I've decided to waste a few days, starting now, converting this to Perl.

The module is tentatively called HTML::Parser::PurePerl.
  


Make sure it can either parse in place, or recreate the original HTML 
with changes.


Looking forward to this :)


Lyle


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-14 Thread Ron Savage
Hi Ron

An update on using Ocaml to generate a pure-Perl HTML parser...

 A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
 leads to this:
 
 http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html
 
 which can generate a Perl parser.

I installed Ocaml, and downloadered Philip's code, but make fails.

I've emailed him to see if there is a newer version available.
 
-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Steve

A little bit off topic to the HTML::FillInForm discussion (or maybe not).

But does anyone know of a module like HTML::FiF that would allow me to 
fill in other things such as:


span id='error_firstname'/span

So that if I had a static HTML file with a form on it, I could place the 
error message place holder right where I wanted them at the time that I 
write the HTML and only activate them on submit by re-reading the .html 
file and then using HTML::FiF to fill in the form AND the appropriate 
Fill-In other module to fill in the empty spans with the error 
messages and then return the entire output to the user.


I'm about on the edge of rolling my own in a fashion similar to 
HTML::FillInForm, but thought I would check first. (Otherwise, I might 
roll out HTML::FillInAnything)


I do understand that:

a) The concept for this module would be moot if I was generating the 
form dynamically from a template that could include [% error_firstname 
%] tags. Which I'm not. But in respect, what I'm looking for is also 
cleaner than the syntax of input type='text' name='firstname' value='[% 
firstname %]', which is what we'd be left with if we didn't have 
HTML::FiF in the first place.


b) I could probably do something like 
span!--error_firstname--/span and have the entire file re-parsed 
by TT using HTML comment tags as my start / end tags, but I think the 
fill in approach would still be cleaner.



---
Steve Comrie

Michael Peters wrote:

Mark Stosberg wrote:


and I notice no updates to any of his modules in more than 9 months:
http://search.cpan.org/~tjmather/?R=D

Any feedback on this situation is welcome.


I first still try the normal process of filling a wish/bug report via
the bug tracker. He was responsive when I submitted the patch that
became HTML::FillInForm 2.0.


I second this. If nothing else it's helpful to future users who have 
the same issue/desire as you so they can at least patch their local 
versions if necessary. And it also helps anyone in the future who 
might take over maintenance of the module.





#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Lyle

Mark Stosberg wrote:

I have some interest in a pure-perl FillInForm to support a more
portable Titanium distribution. The trick there is finding a suitable
replacement for HTML::Parser. 
  


I haven't had much luck with this. The only pure-perl HTML parser is 
HTML::TagParser. It works very differently to HTML::Parser and has no 
methods to re-create the page based on changes you make. I contacted the 
author about this, he said he has no plans to add that feature but would 
consider patches. I had an idea about how I might to able to do it, 
emailed him asking what he thought and haven't heard back for over a week :/


HTML::TagParser currently parses it's way through the HTML extracting 
everything out into DOM style objects. My idea was to modify the lexer 
so that it stored the start and end point of each tag. That way when the 
DOM objects were changed they could be re-made into HTML and swapped 
back into the original. Whether that's the best idea or not I don't know :/


However I have made some good progress on my YAML based form creation 
module, which negates the need for HTML::FillInForm. Hopefully I'll have 
some distributable code soon.



Lyle


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Michael Peters

Steve wrote:

A little bit off topic to the HTML::FillInForm discussion (or maybe not).

But does anyone know of a module like HTML::FiF that would allow me to 
fill in other things such as:


span id='error_firstname'/span


Check out this patch from Sam Tregar:
http://use.perl.org/~samtregar/journal/35037

--
Michael Peters
Plus Three, LP


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Ron Savage
Hi Folks

On Fri, 2009-02-06 at 19:10 +, Lyle wrote:
 Mark Stosberg wrote:
  I have some interest in a pure-perl FillInForm to support a more
  portable Titanium distribution. The trick there is finding a suitable
  replacement for HTML::Parser. 

 
 I haven't had much luck with this. The only pure-perl HTML parser is 
 HTML::TagParser. It works very differently to HTML::Parser and has no 

Let's start looking around for a pure-X (X != Perl) parser, and adapt
that.

-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Ron Savage
Hi Ron

On Sun, 2009-02-08 at 10:53 +1100, Ron Savage wrote:
 Hi Folks
 
 On Fri, 2009-02-06 at 19:10 +, Lyle wrote:
  Mark Stosberg wrote:
   I have some interest in a pure-perl FillInForm to support a more
   portable Titanium distribution. The trick there is finding a suitable
   replacement for HTML::Parser. 
 
  
  I haven't had much luck with this. The only pure-perl HTML parser is 
  HTML::TagParser. It works very differently to HTML::Parser and has no 
 
 Let's start looking around for a pure-X (X != Perl) parser, and adapt
 that.

How about: http://ejohn.org/blog/pure-javascript-html-parser/
 
-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Ron Savage
Hi Ron

On Sun, 2009-02-08 at 10:58 +1100, Ron Savage wrote:
 Hi Ron
 
 On Sun, 2009-02-08 at 10:53 +1100, Ron Savage wrote:
  Hi Folks
  
  On Fri, 2009-02-06 at 19:10 +, Lyle wrote:
   Mark Stosberg wrote:
I have some interest in a pure-perl FillInForm to support a more
portable Titanium distribution. The trick there is finding a suitable
replacement for HTML::Parser. 
  
   
   I haven't had much luck with this. The only pure-perl HTML parser is 
   HTML::TagParser. It works very differently to HTML::Parser and has no 
  
  Let's start looking around for a pure-X (X != Perl) parser, and adapt
  that.
 
 How about: http://ejohn.org/blog/pure-javascript-html-parser/

A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
leads to this:

http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html

which can generate a Perl parser.
 
-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Lyle

Ron Savage wrote:

Hi Ron

On Sun, 2009-02-08 at 10:58 +1100, Ron Savage wrote:
  

Hi Ron

On Sun, 2009-02-08 at 10:53 +1100, Ron Savage wrote:


Hi Folks

On Fri, 2009-02-06 at 19:10 +, Lyle wrote:
  

Mark Stosberg wrote:


I have some interest in a pure-perl FillInForm to support a more
portable Titanium distribution. The trick there is finding a suitable
replacement for HTML::Parser. 
  
  
I haven't had much luck with this. The only pure-perl HTML parser is 
HTML::TagParser. It works very differently to HTML::Parser and has no 


Let's start looking around for a pure-X (X != Perl) parser, and adapt
that.
  

How about: http://ejohn.org/blog/pure-javascript-html-parser/



A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
leads to this:

http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html

which can generate a Perl parser.
  


Are you willing to take this project on? Personally I'd love to, but to 
be completely honest there is no way I have time, I've go so many (non 
paid) open perl projects to keep up to date that I wouldn't be able to 
make anything more than a pitiful effort to do this, if anything at all. 
(not the mention the fixing the Perl mushroom plans and projects that I 
haven't even announced yet).


I urge you to take this forward. I'm sure there would be plenty of Kudos 
for you if you do :)



Lyle


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Ron Savage
Hi Lyle

  How about: http://ejohn.org/blog/pure-javascript-html-parser/
  
 
  A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
  leads to this:
 
  http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html
 
  which can generate a Perl parser.

 
 Are you willing to take this project on? Personally I'd love to, but to 
 be completely honest there is no way I have time, I've go so many (non 
 paid) open perl projects to keep up to date that I wouldn't be able to 
 make anything more than a pitiful effort to do this, if anything at all. 
 (not the mention the fixing the Perl mushroom plans and projects that I 
 haven't even announced yet).
 
 I urge you to take this forward. I'm sure there would be plenty of Kudos 
 for you if you do :)

I have plenty of time, but I'm not quite silly enough to volunteer. I'll
have to think about it... And, yes, it's tempting :-).

-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-07 Thread Lyle

Ron Savage wrote:

Hi Lyle

  

How about: http://ejohn.org/blog/pure-javascript-html-parser/



A link on that page (under Philip Taylor (May 5, 2008 at 10:31 am) )
leads to this:

http://lists.w3.org/Archives/Public/public-html/2007Jul/1103.html

which can generate a Perl parser.
  
  
Are you willing to take this project on? Personally I'd love to, but to 
be completely honest there is no way I have time, I've go so many (non 
paid) open perl projects to keep up to date that I wouldn't be able to 
make anything more than a pitiful effort to do this, if anything at all. 
(not the mention the fixing the Perl mushroom plans and projects that I 
haven't even announced yet).


I urge you to take this forward. I'm sure there would be plenty of Kudos 
for you if you do :)



I have plenty of time, but I'm not quite silly enough to volunteer. I'll
have to think about it... And, yes, it's tempting :-).
  


Go on! Do it! You never know, you might even get a glass engraved Perl 
award for doing it. Like those that we give at BBPM:-

http://perl.bristolbath.org/?About


Lyle


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




[cgiapp] Re: HTML::FillInForm maintanence, patch idea

2009-02-06 Thread Mark Stosberg

 Everything is working fine, but I notice some valid bugs:
 http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-FillInForm
 
 and I notice no updates to any of his modules in more than 9 months:
 http://search.cpan.org/~tjmather/?R=D
 
 and I have an issue - you cannot pass an instance of HTML::Tree directly to
 the FillInForm method. I would be happy to supply a patch, but it seems that
 it would be blowing smoke in the wind based on how frequently TJ Mather
 seems to be around.
 
 Any feedback on this situation is welcome.

I first still try the normal process of filling a wish/bug report via
the bug tracker. He was responsive when I submitted the patch that
became HTML::FillInForm 2.0.

He's also the person that got me started as CPAN maintainer long ago. I
was interested in HTML::FormValidator, but it was embedded in another
distribution and the maintainer for it was not being responsive. TJ
facilited forking the module into Data::FormValidator and encouraging me
to make the updates I wanted and upload it under the new name.

If he's not responsive, you always have the option to fork yourself.

I have some interest in a pure-perl FillInForm to support a more
portable Titanium distribution. The trick there is finding a suitable
replacement for HTML::Parser. 

Mark

-- 
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 
   Mark StosbergPrincipal Developer  
   m...@summersault.com Summersault, LLC 
   765-939-9301 ext 202 database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####