Hi, All. I''ve developed the small javascript library to make the widgets "resizable". Please try attached file or following URL URL: http://221.112.61.214/~kzk/others/mixi/resizer.html Now I wish script.aculo.us developers to merge this into the "script.aculo.us". Is there any chance of merge? Is this a right place to ask this question? Thanks in advance. Kazuki Ohta. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
That is awesome. Aneesha On 4/10/06, Kazuki Ohta <ohta-gSX/quTA5OJ4Eiagz67IpQ@public.gmane.org> wrote:> > Hi, All. > > I''ve developed the small javascript library to make the widgets > "resizable". Please try attached file or following URL > > URL: http://221.112.61.214/~kzk/others/mixi/resizer.html > > Now I wish script.aculo.us developers to merge this into the > "script.aculo.us". Is there any chance of merge? Is this a right > place to ask this question? > > Thanks in advance. > > Kazuki Ohta. > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > >-- Aneesha _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Nice! But, would you mind providing a couple of lines on the functionality? 1. Is this used to resize only textareas or can we use them on divs too? 2. Would all textareas on a page be resizable by default? Or can we selectively control by passing id''s? 3. Would be great if to see the textarea sliding if you pull it below the visible area. Currently, only the scrollbar appears but it doesn''t move down :) Great Work! Thanks, Mandy. -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]On Behalf Of Aneesha Bakharia Sent: Monday, April 10, 2006 4:28 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Proposal of "Resizable" javascript library That is awesome. Aneesha On 4/10/06, Kazuki Ohta < ohta-gSX/quTA5OJ4Eiagz67IpQ@public.gmane.org> wrote: Hi, All. I''ve developed the small javascript library to make the widgets "resizable". Please try attached file or following URL URL: http://221.112.61.214/~kzk/others/mixi/resizer.html Now I wish script.aculo.us developers to merge this into the " script.aculo.us ". Is there any chance of merge? Is this a right place to ask this question? Thanks in advance. Kazuki Ohta. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> -- Aneesha _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi, Maninder.> 1. Is this used to resize only textareas or can we use them on divs too?Yes, Yes! Please open index.html and change <textarea ... > to <div ... >. But the contents of divs are not currently resized.> 2. Would all textareas on a page be resizable by default? Or can we > selectively control by passing id''s?The online version is a bit old. Please look at the file attached to the previous mail. You can specify what to be resizable by Resizable.initialize( id );> 3. Would be great if to see the textarea sliding if you pull it below > the visible area. Currently, only the scrollbar appears but it doesn''t > move down :)I''ve confirmed the problem on IE but not on Firefox. Try to resolve this problem. Thanks! Kazuki Ohta> Great Work! > > Thanks, > Mandy. > > -----Original Message----- > *From:* rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]*On Behalf Of > *Aneesha Bakharia > *Sent:* Monday, April 10, 2006 4:28 PM > *To:* rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* Re: [Rails-spinoffs] Proposal of "Resizable" javascript > library > > That is awesome. > > Aneesha > > On 4/10/06, *Kazuki Ohta* <ohta-gSX/quTA5OJ4Eiagz67IpQ@public.gmane.org <mailto:ohta-gSX/quTA5OJ4Eiagz67IpQ@public.gmane.org>> > wrote: > > Hi, All. > > I''ve developed the small javascript library to make the widgets > "resizable". Please try attached file or following URL > > URL: http://221.112.61.214/~kzk/others/mixi/resizer.html > <http://221.112.61.214/%7Ekzk/others/mixi/resizer.html> > > Now I wish script.aculo.us <http://script.aculo.us> developers > to merge this into the > "script.aculo.us <http://script.aculo.us> ". Is there any > chance of merge? Is this a right > place to ask this question? > > Thanks in advance. > > Kazuki Ohta. > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> > > > > > > > -- > Aneesha > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Thanks Kazuki Ohta. Unfortunately, the attachment got blocked by my mail servers. Could you send that as a zip file or something? Let me know. Thanks.
Similar problem here. What is this *.lzh extension ? Never heared. Even 7-zip can''t open it. -- Roberto Saccon - http://rsaccon.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi, Maninder. Please try this. http://221.112.61.214/~kzk/others/mixi/resizable.lzh Maninder, Singh wrote:> Thanks Kazuki Ohta. > > Unfortunately, the attachment got blocked by my mail servers. > > Could you send that as a zip file or something? > > Let me know. > > Thanks. > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > >
Kazuki Ohta wrote: in zip format. http://221.112.61.214/~kzk/others/mixi/resizable.zip> Hi, Maninder. > > Please try this. > > http://221.112.61.214/~kzk/others/mixi/resizable.lzh > > > Maninder, Singh wrote: >> Thanks Kazuki Ohta. >> >> Unfortunately, the attachment got blocked by my mail servers. >> >> Could you send that as a zip file or something? >> >> Let me know. >> >> Thanks. >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> >> >> >> >> > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > >
Hey, lzh (popular in Japan) is an archive using the "Lempel-Ziv and Haruyasu compression algorithm", it should open with WinZip (not tried yet; running linux here; works when you install lha) or the StuffIt Expander. I attached a zip-file of the contents to the mail. greetings, benni. -SDG- Roberto Saccon wrote:> Similar problem here. What is this *.lzh extension ? Never heared. Even > 7-zip can''t open it. > > -- > Roberto Saccon - http://rsaccon.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Roberto Saccon schrieb:> Similar problem here. What is this *.lzh extension ? Never heared. > Even 7-zip can''t open it.7-zip can unpack this. :) --- Supported formats: * Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR * Unpacking only: RAR, CAB, ARJ, LZH, CHM, Z, CPIO, RPM and DEB --- Best regards, Karsten Eichentopf
ok, thanks, must have benn a mess with my setup. Now I have the zip anyway. On 4/10/06, Karsten Eichentopf <Karsten.Eichentopf-yd2QvjTqpKtl57MIdRCFDg@public.gmane.org> wrote:> > Roberto Saccon schrieb: > > Similar problem here. What is this *.lzh extension ? Never heared. > > Even 7-zip can''t open it. > 7-zip can unpack this. :) > --- > Supported formats: > > * Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR > * Unpacking only: RAR, CAB, ARJ, LZH, CHM, Z, CPIO, RPM and DEB > > --- > Best regards, > Karsten Eichentopf > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Roberto Saccon - http://rsaccon.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Kazuki, does there exist a simple way of limiting just to vertical resizing ? regards -- Roberto Saccon - http://rsaccon.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi, Roberto. Please comment out line p.61 to p.63. /* this.einfo.container.style.width = Math.max(this.minwidth, this.einfo.w + e.clientX - this.einfo.x) + ''px''; this.einfo.handler.style.width = this.einfo.container.style.width; this.einfo.wrapper.style.width = this.einfo.container.style.width; */ Roberto Saccon wrote:> Kazuki, does there exist a simple way of limiting just to vertical > resizing ? > > regards > -- > Roberto Saccon - http://rsaccon.com > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Great, thanks very much ! On 4/10/06, Kazuki Ohta <ohta-gSX/quTA5OJ4Eiagz67IpQ@public.gmane.org> wrote:> > Hi, Roberto. > > Please comment out line p.61 to p.63. > > /* > this.einfo.container.style.width = Math.max(this.minwidth, > this.einfo.w + e.clientX - this.einfo.x) + ''px''; > this.einfo.handler.style.width = this.einfo.container.style.width; > this.einfo.wrapper.style.width = this.einfo.container.style.width; > */ > > --Roberto Saccon - http://rsaccon.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
This is really cool, Thanks.
Am 10.04.2006 um 12:42 schrieb Kazuki Ohta:> Hi, All. > > I''ve developed the small javascript library to make the widgets > "resizable". Please try attached file or following URL > > URL: http://221.112.61.214/~kzk/others/mixi/resizer.html > > Now I wish script.aculo.us developers to merge this into the > "script.aculo.us". Is there any chance of merge? Is this a right > place to ask this question?Possibly. For it to be included, it would take following changes/ additions: 1) Make more use of Prototype functions, especially for event handling, and using .setStyle(). 2) Provide constraints for doing only vertical/horizontal resizing which is probably needed for forms. It _could_ be a better way just to use script.aculo.us Draggables for the resizer, as these support things like this, plus addtional stuff like window scrolling. 3) Provide callbacks for a) onResize and b) onResizeEnd so users can hook in their own functionality during resizing and at the end of a resize. Having that said, I can imagine this could be really useful in many situations! Nice work!> Thanks in advance. > > Kazuki Ohta.Cheers, -Thomas
Hello Thomas, I think all you''re asking for is already included here: http://www.net4visions.com/dev/dialog/dialog.htm Have a look -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs Sent: Tuesday, April 18, 2006 2:33 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Proposal of "Resizable" javascript library Am 10.04.2006 um 12:42 schrieb Kazuki Ohta:> Hi, All. > > I''ve developed the small javascript library to make the widgets > "resizable". Please try attached file or following URL > > URL: http://221.112.61.214/~kzk/others/mixi/resizer.html > > Now I wish script.aculo.us developers to merge this into the > "script.aculo.us". Is there any chance of merge? Is this a right > place to ask this question?Possibly. For it to be included, it would take following changes/ additions: 1) Make more use of Prototype functions, especially for event handling, and using .setStyle(). 2) Provide constraints for doing only vertical/horizontal resizing which is probably needed for forms. It _could_ be a better way just to use script.aculo.us Draggables for the resizer, as these support things like this, plus addtional stuff like window scrolling. 3) Provide callbacks for a) onResize and b) onResizeEnd so users can hook in their own functionality during resizing and at the end of a resize. Having that said, I can imagine this could be really useful in many situations! Nice work!> Thanks in advance. > > Kazuki Ohta.Cheers, -Thomas _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Am 18.04.2006 um 14:39 schrieb Marco M. Jaeger:> Hello Thomas, > > I think all you''re asking for is already included here: > http://www.net4visions.com/dev/dialog/dialog.htm > > Have a lookSeems that doesn''t work on Safari. -Thomas
On 18 Apr 2006, at 15:08, Thomas Fuchs wrote:> > Am 18.04.2006 um 14:39 schrieb Marco M. Jaeger: > >> Hello Thomas, >> >> I think all you''re asking for is already included here: >> http://www.net4visions.com/dev/dialog/dialog.htm >> >> Have a look > > Seems that doesn''t work on Safari.Indeed, it does have some nice ideas though. This one http:// blogus.xilinus.com/pages/javawin does work in Safari and is quite a bit faster too, I believe. Best regards Peter De Berdt
Perhaps both efforts could be combined into one that gets included into the main library.... On 4/18/06, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > > On 18 Apr 2006, at 15:08, Thomas Fuchs wrote: > > > > > Am 18.04.2006 um 14:39 schrieb Marco M. Jaeger: > > > >> Hello Thomas, > >> > >> I think all you''re asking for is already included here: > >> http://www.net4visions.com/dev/dialog/dialog.htm > >> > >> Have a look > > > > Seems that doesn''t work on Safari. > > Indeed, it does have some nice ideas though. This one http:// > blogus.xilinus.com/pages/javawin does work in Safari and is quite a > bit faster too, I believe. > > Best regards > > Peter De Berdt > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hello, I have an array of arrays (used for the seed of a grid component). I am trying to update the grid at runtime so I have to update the underlying array. Using the following code, I get the appropriate response but it is just a string. how can I convert it to an array? Please see the example below: foo = new Ajax.Request( url, { method: ''get'', parameters: params, onComplete: function (response) { alert(response.responseText); getSelectedGridData()[getSelectedRow()] response.responseText; } }); The response.responseText is "[''value 1'', ''value 2'', ''value 3'']" but the code I have doesn''t work because it isn''t actually the array. it is the string representation of the array. Could anybody help me please? Thanks. Joe _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
tsukue-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Apr-19 01:47 UTC
Re: Proposal of "Resizable" javascript library
There also is a resize library by recidive-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, which I have recently enhanced to match with the latest dragdrop.js specs. Please have a look at "resizable_updated" bundle here at: http://dev.rubyonrails.org/ticket/3660
Hi, Thomas. Thank you for the suggestion!> Possibly. For it to be included, it would take following > changes/additions: > > 1) Make more use of Prototype functions, especially for event handling, > and using .setStyle(). > > 2) Provide constraints for doing only vertical/horizontal resizing > which is probably > needed for forms. It _could_ be a better way just to use script.aculo.us > Draggables for the resizer, as these support things like this, plus > addtional > stuff like window scrolling. > > 3) Provide callbacks for a) onResize and b) onResizeEnd so users can hook > in their own functionality during resizing and at the end of a resize.I''m trying to enhance these points. Of couse I''ll base on some scripts informed on this ML and merge the techniques:-) Thanks. Kazuki.
Hi, All. I''ve rewrite resizable.js with using more prototype.js functionality (see attached file). I''m not a expert of prototype.js, so please check the contents if possible. * ChangeLog - provide is_vertical, is_horizontal, onResizeStart, onResizeEnd options - rewrite event handling with prototype.js functionality - now no need to include CSS, style is described in JavaScript I''ve not tried to use scropt.aculo.us''s Draggables. I didn''t notice the merit of using Draggables, does anyone describe its merit compared to prototype.js''s event handling functionality? Thanks in advance. Kazuki.> Hi, Thomas. Thank you for the suggestion! >> Possibly. For it to be included, it would take following >> changes/additions: >> >> 1) Make more use of Prototype functions, especially for event handling, >> and using .setStyle(). >> >> 2) Provide constraints for doing only vertical/horizontal resizing >> which is probably >> needed for forms. It _could_ be a better way just to use script.aculo.us >> Draggables for the resizer, as these support things like this, plus >> addtional >> stuff like window scrolling. >> >> 3) Provide callbacks for a) onResize and b) onResizeEnd so users can >> hook >> in their own functionality during resizing and at the end of a resize. > I''m trying to enhance these points. > Of couse I''ll base on some scripts informed on this ML and merge the > techniques:-) > > Thanks. Kazuki. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Kazuki Ohta wrote:> Hi, All. > > I''ve rewrite resizable.js with using more prototype.js functionality > (see attached file). > I''m not a expert of prototype.js, so please check the contents if possible.Works very nice in Safari!> > Thanks in advance. Kazuki.Jonathan -- Jonathan Weiss http://blog.innerewut.de