Hello, I needed a stylesheet switcher for a project I''m working on and checked out the most common used stylesheet switcher from this ALA article [1]. But I didn''t like all the global functions so I ported the functionality to a more prototypish switcher. Check it out and tell me what you think. http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher [1]: http://alistapart.com/stories/alternate Ciao Martin burnfield.com/martin pluxemburg.com
too bad that there is no Cookies "Class" in prototype matthias Martin Ström schrieb:> Hello, > > I needed a stylesheet switcher for a project I''m working on and > checked out the most common used stylesheet switcher from this ALA > article [1]. But I didn''t like all the global functions so I ported > the functionality to a more prototypish switcher. > > Check it out and tell me what you think. > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > [1]: http://alistapart.com/stories/alternate > > Ciao > Martin > > burnfield.com/martin > pluxemburg.com > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Matthias Platzer Geschäftsführer ------------------------------------------- knallgrau new media solutions gmbh pezzlgasse 7|1, A-1170 wien phone: +43 - 1 - 522 76 37 fax: +43 - 1 - 522 76 38 mobil: +43 - 699 - 1134 0946 http://www.knallgrau.at weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog
On the back of that email at least 10 people on this list have now hacked one up. On 13/07/06, Matthias Platzer <matthias@knallgrau.at> wrote:> too bad that there is no Cookies "Class" in prototype > > matthias > > Martin Ström schrieb: > > Hello, > > > > I needed a stylesheet switcher for a project I'm working on and > > checked out the most common used stylesheet switcher from this ALA > > article [1]. But I didn't like all the global functions so I ported > > the functionality to a more prototypish switcher. > > > > Check it out and tell me what you think. > > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > > > > [1]: http://alistapart.com/stories/alternate > > > > Ciao > > Martin > > > > burnfield.com/martin > > pluxemburg.com > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > -- > Matthias Platzer > Geschäftsführer > ------------------------------------------- > knallgrau new media solutions gmbh > pezzlgasse 7|1, A-1170 wien > phone: +43 - 1 - 522 76 37 > fax: +43 - 1 - 522 76 38 > mobil: +43 - 699 - 1134 0946 > http://www.knallgrau.at > > weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Andrew Tetlaw htp://tetlaw.id.au _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
There is a Cookies class included in my script below the style sheet class? Or do you mean it should be included in the core dist? On 7/13/06, Matthias Platzer <matthias-jvEZf8eMbRz0+o74n3fu+Q@public.gmane.org> wrote:> too bad that there is no Cookies "Class" in prototype > > matthias > > Martin Ström schrieb: > > Hello, > > > > I needed a stylesheet switcher for a project I''m working on and > > checked out the most common used stylesheet switcher from this ALA > > article [1]. But I didn''t like all the global functions so I ported > > the functionality to a more prototypish switcher. > > > > Check it out and tell me what you think. > > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > > > > [1]: http://alistapart.com/stories/alternate > > > > Ciao > > Martin > > > > burnfield.com/martin > > pluxemburg.com > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > -- > Matthias Platzer > Geschäftsführer > ------------------------------------------- > knallgrau new media solutions gmbh > pezzlgasse 7|1, A-1170 wien > phone: +43 - 1 - 522 76 37 > fax: +43 - 1 - 522 76 38 > mobil: +43 - 699 - 1134 0946 > http://www.knallgrau.at > > weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Reall? I googled for any rewrites but couldn''t find any. Anyway it didn''t take so much time anyway since it''s a small and simple class. Martin On 7/13/06, Andrew Tetlaw <atetlaw-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On the back of that email at least 10 people on this list have now > hacked one up. > > On 13/07/06, Matthias Platzer <matthias-jvEZf8eMbRz0+o74n3fu+Q@public.gmane.org> wrote: > > too bad that there is no Cookies "Class" in prototype > > > > matthias > > > > Martin Ström schrieb: > > > Hello, > > > > > > I needed a stylesheet switcher for a project I''m working on and > > > checked out the most common used stylesheet switcher from this ALA > > > article [1]. But I didn''t like all the global functions so I ported > > > the functionality to a more prototypish switcher. > > > > > > Check it out and tell me what you think. > > > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > > > > > > > [1]: http://alistapart.com/stories/alternate > > > > > > Ciao > > > Martin > > > > > > burnfield.com/martin > > > pluxemburg.com > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > -- > > Matthias Platzer > > Geschäftsführer > > ------------------------------------------- > > knallgrau new media solutions gmbh > > pezzlgasse 7|1, A-1170 wien > > phone: +43 - 1 - 522 76 37 > > fax: +43 - 1 - 522 76 38 > > mobil: +43 - 699 - 1134 0946 > > http://www.knallgrau.at > > > > weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > -- > Andrew Tetlaw > htp://tetlaw.id.au > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >
So does this stylesheet switcher actually save the preferred stylesheet in IE? I ask because I was just looking at the code and it is using an unlooad event that I thought gets stepped on in IE by prototype without a patch. Brandon On 7/13/06, Martin Ström <martinstromlists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Reall? I googled for any rewrites but couldn''t find any. Anyway it > didn''t take so much time anyway since it''s a small and simple class. > > Martin > > On 7/13/06, Andrew Tetlaw <atetlaw-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On the back of that email at least 10 people on this list have now > > hacked one up. > > > > On 13/07/06, Matthias Platzer <matthias-jvEZf8eMbRz0+o74n3fu+Q@public.gmane.org> wrote: > > > too bad that there is no Cookies "Class" in prototype > > > > > > matthias > > > > > > Martin Ström schrieb: > > > > Hello, > > > > > > > > I needed a stylesheet switcher for a project I''m working on and > > > > checked out the most common used stylesheet switcher from this ALA > > > > article [1]. But I didn''t like all the global functions so I ported > > > > the functionality to a more prototypish switcher. > > > > > > > > Check it out and tell me what you think. > > > > > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > > > > > > > > > > [1]: http://alistapart.com/stories/alternate > > > > > > > > Ciao > > > > Martin > > > > > > > > burnfield.com/martin > > > > pluxemburg.com > > > > _______________________________________________ > > > > Rails-spinoffs mailing list > > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > > > > -- > > > Matthias Platzer > > > Geschäftsführer > > > ------------------------------------------- > > > knallgrau new media solutions gmbh > > > pezzlgasse 7|1, A-1170 wien > > > phone: +43 - 1 - 522 76 37 > > > fax: +43 - 1 - 522 76 38 > > > mobil: +43 - 699 - 1134 0946 > > > http://www.knallgrau.at > > > > > > weitere News im Knallgrau Weblog: > http://www.knallgrau.at/company/weblog > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > -- > > Andrew Tetlaw > > htp://tetlaw.id.au > > > > _______________________________________________ > > 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 >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Yes it works in MSIE6 (didn''t test in 5.x) without any patched unload. Do you know anything more about the bug(s)? On 7/13/06, Brandon Aaron <brandon.aaron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So does this stylesheet switcher actually save the preferred stylesheet in > IE? I ask because I was just looking at the code and it is using an unlooad > event that I thought gets stepped on in IE by prototype without a patch. > > Brandon > > > On 7/13/06, Martin Ström <martinstromlists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Reall? I googled for any rewrites but couldn''t find any. Anyway it > > didn''t take so much time anyway since it''s a small and simple class. > > > > Martin > > > > On 7/13/06, Andrew Tetlaw < atetlaw-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On the back of that email at least 10 people on this list have now > > > hacked one up. > > > > > > On 13/07/06, Matthias Platzer <matthias-jvEZf8eMbRz0+o74n3fu+Q@public.gmane.org > wrote: > > > > too bad that there is no Cookies "Class" in prototype > > > > > > > > matthias > > > > > > > > Martin Ström schrieb: > > > > > Hello, > > > > > > > > > > I needed a stylesheet switcher for a project I''m working on and > > > > > checked out the most common used stylesheet switcher from this ALA > > > > > article [1]. But I didn''t like all the global functions so I ported > > > > > the functionality to a more prototypish switcher. > > > > > > > > > > Check it out and tell me what you think. > > > > > > http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher > > > > > > > > > > > > > > > [1]: http://alistapart.com/stories/alternate > > > > > > > > > > Ciao > > > > > Martin > > > > > > > > > > burnfield.com/martin > > > > > pluxemburg.com > > > > > _______________________________________________ > > > > > Rails-spinoffs mailing list > > > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > > > > > > > > -- > > > > Matthias Platzer > > > > Geschäftsführer > > > > ------------------------------------------- > > > > knallgrau new media solutions gmbh > > > > pezzlgasse 7|1, A-1170 wien > > > > phone: +43 - 1 - 522 76 37 > > > > fax: +43 - 1 - 522 76 38 > > > > mobil: +43 - 699 - 1134 0946 > > > > http://www.knallgrau.at > > > > > > > > weitere News im Knallgrau Weblog: > http://www.knallgrau.at/company/weblog > > > > _______________________________________________ > > > > Rails-spinoffs mailing list > > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > > > > -- > > > Andrew Tetlaw > > > htp://tetlaw.id.au > > > > > > _______________________________________________ > > > 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 > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >