Daniel Herrero
2006-Jun-12 08:10 UTC
Re: Re: File upload (Jim Geurts) (Danial Tzadeh) (Daniel Herrero)
Sorry, the link I posted the last time for the fileuploader demo is wrong. try this one: www.ehu.es/invertebrados/demofileuploader.rar<http://www.ehu.es/invertebrados/> 2006/6/8, rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org < rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>:> > Send Rails-spinoffs mailing list submissions to > rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > or, via email, send a message with subject or body ''help'' to > rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > You can reach the person managing the list at > rails-spinoffs-owner-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Rails-spinoffs digest..." > > > Today''s Topics: > > 1. RE: Scriptaculous Problem (Gregory Hill) > 2. RE: Including scriptaculous.js causes page to "hang" > (Jason Harwig) > 3. Autocomplete multiple item (Lei Sun) > 4. Re: Re: File upload (Jim Geurts) (Danial Tzadeh) > 5. Ajax vs JS Object scope (Jean-Philippe Encausse) > 6. Re: Autocomplete multiple item (Thomas Fuchs) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 7 Jun 2006 16:15:05 -0600 > From: "Gregory Hill" <Gregory_Hill-l9nu40+TWxQ@public.gmane.org> > Subject: RE: [Rails-spinoffs] Scriptaculous Problem > To: <rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Message-ID: > <A4A0540383098A489C41BF98C77AEE5D016935C4-8DZaRkafU7NDqAwgotv084H6Mc4MB0Vx@public.gmane.org> > Content-Type: text/plain; charset="us-ascii" > > It''s a browser limitation. If you set display: none in the css, when > you do: > > $(''id'').style.display = ''''; > > It doesn''t revert the value to the default of block, inline, list-item, > or whatever. It''s like it forgets it magically. Would be nice if every > item had a ''defaultDisplay'' or something, so you could say: > > $(''id'').style.display = $(''id'').style.defaultDisplay; > > To revert it back to the default, but then you''d have problems when > dealing with altered display attributes like an inline element set to > display: block. When you wanted to make it reappear, it would go back > to inline instead of block. > > So... yeah, there''s nothing you can do about it. > > Greg > > > -----Original Message----- > > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs- > > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Glenn Nilsson > > Sent: Wednesday, June 07, 2006 3:47 PM > > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: Re: [Rails-spinoffs] Scriptaculous Problem > > > > As the documentation > > (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states: > > > > "Effect.Appear > > > > Make an element appear. If the element was previously set to > > display:none; inside the style attribute of the element, the effect > > will automatically show the element. This means that it must be places > > under the style attribute of an object, and not in the CSS in the head > > of the document or a linked file." > > > > So no, you don''t do anything wromng, but I agree, it would be rather > > nice not having to add that attribute. > > > > /Glenn > > > > On 6/7/06, Bryce Fischer <bryce-bKrBQupY3dcvEkJ3hUJ36NBPR1lH4CV8@public.gmane.org> wrote: > > > The following works: > > > > > > <body> > > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click > to > > display</a> > > > <div class="example" id="mydiv" style="display: none;"> > > > <h1>My Div</h1> > > > </div> > > > </body> > > > > > > (style is inline) > > > > > > but the following does not: > > > > > > <head> > > > ... > > > <style> > > > #mydiv { > > > display: none; > > > } > > > </style> > > > </head> > > > <body> > > > <body> > > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click > to > > display</a> > > > <div id="mydiv"> > > > <h1>My Div</h1> > > > </div> > > > </body> > > > > > > Am I doing something wrong? > > > _______________________________________________ > > > 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 > > > ------------------------------ > > Message: 2 > Date: Wed, 7 Jun 2006 19:26:01 -0400 > From: Jason Harwig <jason.harwig-1ebBR96eClk5OUrWP45hWw@public.gmane.org> > Subject: [Rails-spinoffs] RE: Including scriptaculous.js causes page > to "hang" > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <05F1FC6A-4C82-48F2-B7EB-222C9C741B0C-1ebBR96eClk5OUrWP45hWw@public.gmane.org> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > I''ve had problems like this when importing some rich text editor > libraries after scriptaculous. TinyMCE, in particular would cause > browsers to hang unless it was imported before prototype/scriptaculous. > > > >> When I say hang, I mean the browsers spinner keeps spinning and > >> Firefox''s info bar at the bottom says "Transfering data from ...... " > >> > >> I''m just including the js like this: > >> > >> <script src="/js/prototype.js" type="text/javascript"></script> > >> <script src="/js/scriptaculous.js" type="text/javascript"></script> > >> > >> which I cribbed from the demo pages anyway. > >> > >> If I remove the 2nd line, and just have prototype loaded, the page > >> loads Ok. > >> > >> I''m only interested in the Blind[Up|Down] functions, so I''ve also > >> tried : > >> > >> <script src="/js/scriptaculous.js?load=effects" type="text/ > >> javascript"></script> > >> > >> but the same thing happens. > >> > >> I''m using v1.6.1 of scriptaculous, and the prototype version that > >> comes with that. > >> > >> > >> -S > > > ------------------------------ > > Message: 3 > Date: Wed, 7 Jun 2006 18:58:07 -0700 > From: "Lei Sun" <lei.sun-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Subject: [Rails-spinoffs] Autocomplete multiple item > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: > <d396fddf0606071858v5457638bh8152a27039d2c0ca-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi > > I was using the Autocompleter for multiple tags of a post using token > feature. It works great! > > But later, I discovered that the Autocompleter is only able auto > complete the very last tag. > > Is it possible to be able to auto complete the earlier tags? Like > del.icio.us? > > Thanks > > Lei > > > ------------------------------ > > Message: 4 > Date: Thu, 8 Jun 2006 08:34:01 +0200 > From: "Danial Tzadeh" <danialt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Subject: Re: [Rails-spinoffs] Re: File upload (Jim Geurts) > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: > <a4e0c620606072334x314b08dai92a55b6bfee4ecf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset="iso-8859-1" > > Daniel, > > It looks very promising. I would be pleased if you send us the codes too. > > Danial > > On 6/7/06, Daniel Herrero <herrerodani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I have actually one library for uploading files in my web page, if you > > like the way it runs I can send you all the files I use. I didn´t create > it > > form zero, I obtained the inspiration from other libraries and made one > I > > liked. It has onStart event, onEnd, onError, etc... > > My web page is: www.trintxerpe.tk > > - if ''Continue to trintxerpe.tk'' appears click on it > > - wait until the page is fully loaded, it will take several minutes > > because I don´t have a good server yet, and it is a test page by now. > > - rigth click, a menu should appear, if it doesn´t appear reload the > page > > and try again > > - choose ''añadir nueva imagen'' and try it'' > > > > I wish you like it. > > <http://212.145.207.60/> > > -- > > Daniel Herrero Dávila > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20060608/6d3a80f5/attachment-0001.html > > ------------------------------ > > Message: 5 > Date: Thu, 8 Jun 2006 10:29:51 +0200 > From: "Jean-Philippe Encausse" <Jp-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org> > Subject: [Rails-spinoffs] Ajax vs JS Object scope > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: > <4c503b900606080129o6618f8d9l323866eba6752597-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > A cool javascript programming techniques is used in GoogleTalk and > Google Spreadsheet. > They leave opened an XmlHttpRequest to send and receive data. That''s > why they are so reactive. It works because there''s no navigation > (request) only ajax. > > My questions are: > > 1. Does prototype allow that kind of long ajax request ? > > 2. Is it possible to store Javascript Object in the scope of the navigator > ? > -> Firefox allow storing vars in object "Navigator". But not IE. The > vars are available during single tab navigation. But I don''t know if > XmlHttpRequest stay opened ? > > > Best Regards, > Jp > > -- > Jean-Philippe Encausse - R&D Jalios SA > Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 > Do it Once, Use it Twice ~ Do it Twice, Make It Once > > > ------------------------------ > > Message: 6 > Date: Thu, 8 Jun 2006 10:46:45 +0200 > From: Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org> > Subject: Re: [Rails-spinoffs] Autocomplete multiple item > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <F8333895-4F2D-4CAA-B9F9-A22A2A08DC1A-moWQItti3gBl57MIdRCFDg@public.gmane.org> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Yes. > > Look at the functional demos of the autocompleter included with the > script.aculo.us download. > > Look at ajax_autocompleter2_test.html > > The feature is called the "incremental" autocompleter. > > -Thomas > > Am 08.06.2006 um 03:58 schrieb Lei Sun: > > > Hi > > > > I was using the Autocompleter for multiple tags of a post using token > > feature. It works great! > > > > But later, I discovered that the Autocompleter is only able auto > > complete the very last tag. > > > > Is it possible to be able to auto complete the earlier tags? Like > > del.icio.us? > > > > Thanks > > > > Lei > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > -- > Thomas Fuchs > wollzelle > > http://www.wollzelle.com > > questentier on AIM > madrobby on irc.freenode.net > > http://www.fluxiom.com :: online digital asset management > http://script.aculo.us :: Web 2.0 JavaScript > http://mir.aculo.us :: Where no web developer has gone before > > > > > > > ------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > End of Rails-spinoffs Digest, Vol 13, Issue 28 > ********************************************** >-- Daniel Herrero Dávila _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs