Re: [cgiapp] Re: HTML::FillInForm maintanence, patch idea
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
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
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
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
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
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
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
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
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/ ## ####