Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
On 18/08/06, Kevin Monceaux [EMAIL PROTECTED] wrote: That would certainly work. But, imagine if a form plugin took care of the dirty work for the developer. Let's pretend for a moment. Imagine, if you will, that someone integrated the FCKEditor with HTML::Widget. One might be able to create an FCKEditor textarea field by doing something like: $w-element('FCKEditor', 'description' )-label('Description')-rows(20)- columns(40); There's work in this direction already with HTML::Widget::Dojo. Work has currently stalled, partly because dojo seemed to be going through a lot of changes, and partly because it's slipped down my priority list. Currently, HTML::Widget::Dojo provides elements for WYSIWYG textarea, auto-complete text fields, and a popup date selector. If you don't want to manually download the dojo library, it needs Catalyst::Plugin::Dojo which currently uses HTML::Dojo, but will be changed to use Alien::Dojo once that's merged with HTML::Dojo. - see the previous discussion on this list, titled Alien-Dojo / HTML-Dojo merger suggestions If you're able to help at all with developing these, it'd be most welcome. The first priority is probably rewriting Alien::Dojo, along the lines mentioned in the Alien-Dojo / HTML-Dojo merger suggestions email. The svn locations are: http://oook.de/svn/trunk/HTML-Widget-Dojo/ http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-Dojo/ http://dev.catalyst.perl.org/repos/Catalyst/trunk/HTML-Dojo/ Cheers, Carl ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
On 18/08/06, Jonas Alves [EMAIL PROTECTED] wrote: On 18/08/06, Carl Franks [EMAIL PROTECTED] wrote: If you don't want to manually download the dojo library, it needs Catalyst::Plugin::Dojo which currently uses HTML::Dojo, but will be changed to use Alien::Dojo once that's merged with HTML::Dojo. - see the previous discussion on this list, titled Alien-Dojo / HTML-Dojo merger suggestions If you're able to help at all with developing these, it'd be most welcome. The first priority is probably rewriting Alien::Dojo, along the lines mentioned in the Alien-Dojo / HTML-Dojo merger suggestions email. Hi Carl, I would like to help developing these modules. Could you give some guidance in what needs to be done. I really need HTML::Widget::Dojo for the future versions of InstantCRUD. At the moment, there's only been 1 release of Alien::Dojo, and it's broken. The author is happy to hand over maintenance of it. The message mentioned above is here: http://lists.rawmode.org/pipermail/catalyst/2006-June/008222.html This is Yuval's resonse: http://lists.rawmode.org/pipermail/catalyst/2006-June/008225.html It seems a bit over-engineered to me, but Yuval is the man when it comes to design, so I bow to him. Unfortunately, I don't have the time to work on it - it's a minor issue for me, as it's so easy to manually download the dojo-ajax release from the website. As HTML-Widget-Dojo stands, I think the latest in subversion worked ok with dojo v0.3. Dojo v0.3.1 has since been released, so we need to check whether the widgets we use have had incompatable changes. I had posted a few bug reports - I'll need to search for them and see if they've been addressed. This thread also mentions a couple of issues that might still be outstanding. http://lists.rawmode.org/pipermail/html-widget/2006-May/thread.html#2 Feel free to ask anything else. Anything specific to HTML-Widget-Dojo should probably be on the H-W list though. Cheers, Carl ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
Kevin Monceaux wrote: Since I'm asking for such features I certainly should put my money where my mouth is. I'm willing to help in any way I can. Unfortunately at my current skill level I doubt I could be of much help. I'm very new to Catalyst. I tinkered with perl years ago but not a great deal. Catalyst has rekindled my interest in perl. So, what can someone with my limited skills do to help? Test. Make suggestions. Write docs. All the best introductory docs to anything I've ever seen were written by newbies who wrote out the things they wished had been documented when they started while the memories were still fresh. -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
On 18/08/06, Kevin Monceaux [EMAIL PROTECTED] wrote: On Fri, Aug 18, 2006 at 01:48:06PM +0100, Carl Franks wrote: If you're able to help at all with developing these, it'd be most welcome. The first priority is probably rewriting Alien::Dojo, along the lines mentioned in the Alien-Dojo / HTML-Dojo merger suggestions email. Since I'm asking for such features I certainly should put my money where my mouth is. I'm willing to help in any way I can. Unfortunately at my current skill level I doubt I could be of much help. I'm very new to Catalyst. I tinkered with perl years ago but not a great deal. Catalyst has rekindled my interest in perl. So, what can someone with my limited skills do to help? All contributions will help! Working on HTML-Widget-Dojo might be suitable, and of immediate value to you. You'd just need a basic controller and template to try it out. Download the latest dojo and put it in your static directory http://download.dojotoolkit.org/release-0.3.1/dojo-0.3.1-ajax.zip Make sure your html has a script tag pointing to the library, for example script type=text/javascript src=/static/dojo/dojo.js/script If you're testing this through catalyst, you'll probably need to set static-simple to not ignore any extensions - make sure all the files in static/dojo/ can be served, including .html files. Then you can just try adding a widget to a page, with elements from H-W-Dojo. See if you come across any errors. Have a look through the dojo library to see if there's any other widgets you'd like to add to H-W-Dojo. You can get H-W-Dojo from here using subversion: http://oook.de/svn/trunk/HTML-Widget-Dojo/ Incidentally, I submitted a patch for C-P-Static-Simple that helped with serving the files, but it hasn't been applied. You might find it useful: http://lists.rawmode.org/pipermail/catalyst/2006-May/007266.html Cheers, Carl ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
On 18/08/06, Carl Franks [EMAIL PROTECTED] wrote: On 18/08/06, Jonas Alves [EMAIL PROTECTED] wrote: On 18/08/06, Carl Franks [EMAIL PROTECTED] wrote: If you don't want to manually download the dojo library, it needs Catalyst::Plugin::Dojo which currently uses HTML::Dojo, but will be changed to use Alien::Dojo once that's merged with HTML::Dojo. - see the previous discussion on this list, titled Alien-Dojo / HTML-Dojo merger suggestions If you're able to help at all with developing these, it'd be most welcome. The first priority is probably rewriting Alien::Dojo, along the lines mentioned in the Alien-Dojo / HTML-Dojo merger suggestions email. Hi Carl, I would like to help developing these modules. Could you give some guidance in what needs to be done. I really need HTML::Widget::Dojo for the future versions of InstantCRUD. At the moment, there's only been 1 release of Alien::Dojo, and it's broken. The author is happy to hand over maintenance of it. The message mentioned above is here: http://lists.rawmode.org/pipermail/catalyst/2006-June/008222.html This is Yuval's resonse: http://lists.rawmode.org/pipermail/catalyst/2006-June/008225.html It seems a bit over-engineered to me, but Yuval is the man when it comes to design, so I bow to him. Unfortunately, I don't have the time to work on it - it's a minor issue for me, as it's so easy to manually download the dojo-ajax release from the website. As HTML-Widget-Dojo stands, I think the latest in subversion worked ok with dojo v0.3. Dojo v0.3.1 has since been released, so we need to check whether the widgets we use have had incompatable changes. I had posted a few bug reports - I'll need to search for them and see if they've been addressed. This thread also mentions a couple of issues that might still be outstanding. http://lists.rawmode.org/pipermail/html-widget/2006-May/thread.html#2 Feel free to ask anything else. Anything specific to HTML-Widget-Dojo should probably be on the H-W list though. Cheers, Carl Thanks Carl. I will go to holidays today. But i will take a look at it when i come back. Cheers, Jonas ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
* Matt S Trout [EMAIL PROTECTED] [2006-08-18 16:55]: All the best introductory docs to anything I've ever seen were written by newbies who wrote out the things they wished had been documented when they started while the memories were still fresh. Reminds me: http://diveintomark.org/archives/2004/08/16/specs: The second faction of morons work from examples, ship code, and get yelled at. But when they get around to reading the spec, they magically turn into advocates and write up tutorials on what they learned from their mistakes. These people are called _experts_. Virtually every useful tutorial in the world was written by a moron-turned-expert. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
Almost all your questions are related to JavaScript: * WYSIWYG editors usually hook on top of textarea using a class or ID * Field focusing is purely JS * Input masks are ONLY possible with JS * Autotab is also only possible with JS, just don't abuse it Kevin Monceaux wrote: Fellow Catalyst Enthusiasts, The more I see of Catalyst the more I'm liking it. I just started taking it for a spin a week or so ago. After just finishing the HTML::Widget plugin portion of the Catalyst tutorial yesterday I saw the post announcing the FormBuilder plugin. Both look very promising. There are a couple of features I'd love to see available in one form library or another. I searched through the vast asortment of available Catalyst plugins and didn't see what I was looking for. So I thought it might be best to ask if any of the current plugins provide such functionality. If none do perhaps someone will see this post and think, Hay, that would really be helpful. I think I'll enhance my plugin. Are there currently any form libraries that integrate a WYSIWYG style HTML editor such as the FCKEditor? Does any of the available form libraries have the ability to set the focus to a particular field? I have a simple bit of JavaScript that combined with a body onLoad=FieldFocus() will set the focus to the first form field on a page if the page contains a form, but it would be nice to have such functionality built into a form library. For some reason my JavaScript doesn't appear to work with HTML::Widget generated forms. I haven't tried it with FormBuilder generated forms yet. Does any available form library implement input mask type functionality? Okay, I'll admit it - I'm a fan of old-fashioned text based data entry apps. When entering a date, for example, I much prefer to be able to enter something like 02132006 into a text field and have the application automatically add the separator characters transforming it to 02/13/2006. I absolutely hate drop-down boxes on html forms for date entry. Input mask type functionality is also helpful for such things as social security numbers, phone numbers, etc. Does any available form library implement an autotab feature? Extending the example above it would be nice to have the cursor automatically skip to the next field after entering the last digit of a date in a date field. And now I have a couple of image plugin related questions. Are there any Catalyst plugins to help deal with uploaded images? I'm looking for something along the lines of: 1. Generate a random name to avoid duplicate filename conflicts and move the uploaded image to an image directory. 2. Generate a thumbnail for the image. 3. Store the needed image path and size info in a database. 4. Helper functions to spit out an appropriate image tag in a template for images in the database. Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
I am writing a plugin to do this as we speak. Expect it to hit CPAN by the end of the weekend. The API looks something like: my $image = $c-register_image('/path/to/the/image'); $image will have methods like $image-url that return a fully-qualified URL that your web server can statically serve the image from. You can also expire the images, delete them, get a scaled version (for exciting AJAX scaling effects; yay), etc. The details aren't completely worked out yet, though, and are subject to major changes. (This was going to be a Controller in my app, but I guess a plugin is more useful to others. Major change #1 :) And now I have a couple of image plugin related questions. Are there any Catalyst plugins to help deal with uploaded images? I'm looking for something along the lines of: 1. Generate a random name to avoid duplicate filename conflicts and move the uploaded image to an image directory. 2. Generate a thumbnail for the image. 3. Store the needed image path and size info in a database. 4. Helper functions to spit out an appropriate image tag in a template for images in the database. Images in the database? Depending on what these are, you might want to look up URI::data. data:text/x-perl,print%20%22Just%20another%20Catalyst%20hacker.%22 -- Jonathan Rockway ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
I use following Data::UUID ( so each image has unique identifier ) GD ( interface to GD ) Image::Resize ( nicer syntax ) Plugin sounds intresting. Cheers. On Thursday 17 August 2006 10:39, Jonathan Rockway wrote: I am writing a plugin to do this as we speak. Expect it to hit CPAN by the end of the weekend. The API looks something like: my $image = $c-register_image('/path/to/the/image'); $image will have methods like $image-url that return a fully-qualified URL that your web server can statically serve the image from. You can also expire the images, delete them, get a scaled version (for exciting AJAX scaling effects; yay), etc. The details aren't completely worked out yet, though, and are subject to major changes. (This was going to be a Controller in my app, but I guess a plugin is more useful to others. Major change #1 :) And now I have a couple of image plugin related questions. Are there any Catalyst plugins to help deal with uploaded images? I'm looking for something along the lines of: 1. Generate a random name to avoid duplicate filename conflicts and move the uploaded image to an image directory. 2. Generate a thumbnail for the image. 3. Store the needed image path and size info in a database. 4. Helper functions to spit out an appropriate image tag in a template for images in the database. Images in the database? Depending on what these are, you might want to look up URI::data. data:text/x-perl,print%20%22Just%20another%20Catalyst%20hacker.%22 ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
That sounds like what I'm planning. Is your code around somewhere (that you'd make available under the Perl license)? Alex Pavlovic wrote: I use following Data::UUID ( so each image has unique identifier ) GD ( interface to GD ) Image::Resize ( nicer syntax ) Plugin sounds intresting. Cheers. On Thursday 17 August 2006 10:39, Jonathan Rockway wrote: I am writing a plugin to do this as we speak. Expect it to hit CPAN by the end of the weekend. The API looks something like: my $image = $c-register_image('/path/to/the/image'); $image will have methods like $image-url that return a fully-qualified URL that your web server can statically serve the image from. You can also expire the images, delete them, get a scaled version (for exciting AJAX scaling effects; yay), etc. The details aren't completely worked out yet, though, and are subject to major changes. (This was going to be a Controller in my app, but I guess a plugin is more useful to others. Major change #1 :) And now I have a couple of image plugin related questions. Are there any Catalyst plugins to help deal with uploaded images? I'm looking for something along the lines of: 1. Generate a random name to avoid duplicate filename conflicts and move the uploaded image to an image directory. 2. Generate a thumbnail for the image. 3. Store the needed image path and size info in a database. 4. Helper functions to spit out an appropriate image tag in a template for images in the database. Images in the database? Depending on what these are, you might want to look up URI::data. data:text/x-perl,print%20%22Just%20another%20Catalyst%20hacker.%22 ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!
Jonathan Rockway wrote: I am writing a plugin to do this as we speak. Expect it to hit CPAN by the end of the weekend. The API looks something like: my $image = $c-register_image('/path/to/the/image'); $image will have methods like $image-url that return a fully-qualified URL that your web server can statically serve the image from. You can also expire the images, delete them, get a scaled version (for exciting AJAX scaling effects; yay), etc. The details aren't completely worked out yet, though, and are subject to major changes. (This was going to be a Controller in my app, but I guess a plugin is more useful to others. Major change #1 :) So make it a controller base class. People make everything a plugin by default because it seems like a good idea at the time. This has resulted in massive compatibility issues due to namespace collisions. Don't Do It. -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/