[Rails-spinoffs] Resizeable DIVs

2005-12-02 Thread Tom Fakes
I have an implementation of Resizeable DIVs that is based on the Draggable code from script.aculo.us.  This is working for me, but is only tested on Firefox 1.0.x and IE 6.  On IE, the display isn’t great at small sizes, and the DIV tends to jiggle.   This can work with the element also b

[Rails-spinoffs] Element.setOpacity issue in script.aculo.us effects

2005-12-08 Thread Tom Fakes
In the Element.setOpacity method definition in effects.js, there is a line that sets the opacity to 0.99 if the requested opacity is 1.  This is clearly there for a reason, but having a very slight transparency actually makes my pages look bad – images are the worst, but I can see the b

[Rails-spinoffs] Bug in script.aculo.us Draggable in 1.5

2005-12-16 Thread Tom Fakes
I have a Draggable object that contains a SELECT with some OPTION tags.  When I select one of the OPTION tags, the entire Draggable acts as though it is being dragged.   There is code in the Draggable object to stop this for Firefox:     initDrag: function(event) {     if(Event.isLeftC

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
I have some code that that adds an Element.replace() method to Prototype.  This uses outerHTML if it’s available and other DOM magic on Firefox.   I’ve sent this to Sam for possible inclusion in future versions of Prototype.   http://blog.craz8.com/articles/2005/12/15/rails-rjs-template

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
t out when I get a chance, One more thing, it seems msgHeadEl. Effect.Fade(...);"; doesn't work in firefox, only IE as far as I've tested. can anyone suggest a solution? Thanks, Brian Peiris On 12/18/05, Tom Fakes <[EMAIL PROTECTED]> wrote: I have some code that th

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
12/18/05, Tom Fakes <[EMAIL PROTECTED]> wrote: This should work:     msgHeadEl. {new Effect.Fade(...);};   From: Brian Peiris [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 18, 2005 1:56 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] problems

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
an Peiris On 12/18/05, Tom Fakes < [EMAIL PROTECTED]> wrote: I'm assuming here that msgHeadEl isn't just the ID of the element.  If it is, then you need to do this:   $('msgHeadEl'). {new Effect.Fade(...);}; The $() function in Prototype will look up the ID in t

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
;hello');}; //This doesn't work at all //msgHeadEl.onclick = "function() {alert('hello');};" //neither does this On 12/18/05, Brian Peiris <[EMAIL PROTECTED]> wrote: > sorry, I've fixed that already, still doesn't work >

RE: [Rails-spinoffs] problems with quotes and escaping

2005-12-18 Thread Tom Fakes
quot;foo", newEvent)[0]; //el.onclick = "alert('hello')"; //This works in IE but not in firefox el.onclick = function() {alert('hello');}; //This doesn't work at all new Insertion.Before("placeholder_event_di

RE: [Rails-spinoffs] Observing Ajax Requests?

2005-12-18 Thread Tom Fakes
I think I first saw this code on this list, and I think the Ajax.Responders code is fairly new in Prototype: Ajax.Responders.register({ onCreate: function() { if($('busy') && Ajax.activeRequestCount>0) Effect.Appear('busy',{duration:0.5,queue:'end'}); }, onComplete: function() {

RE: [Rails-spinoffs] Prototype: correct useage of onComplete withAjax.PeriodicalUpdater

2005-12-21 Thread Tom Fakes
>From a quick look at the source code, it looks like onComplete is only called when the whole thing is done - in the case of Updater, right after the update, in the case of PeriodicalUpdater, right after it has been stopped. It looks like you need to pass your callback method as an 'insertion' met

RE: [Rails-spinoffs] Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater

2005-12-21 Thread Tom Fakes
e dispatching of onComplete functions... Thx, Nicky On 21 Dec 2005, at 20:17, Tom Fakes wrote: >> From a quick look at the source code, it looks like onComplete is >> only > called when the whole thing is done - in the case of Updater, right > after the update, in the case

RE: [Rails-spinoffs] Re: ajax - multiple updates on singlexmlhttprequest

2005-12-22 Thread Tom Fakes
>From looking at the Prototype code, it looks like any text in the 'X-JSON' header will be eval'd and passed as the second parameter to your onSuccess handler. Your handler function could then be (using all the power of Prototype): var handlerFunc = function(t, json) { // Update info container

RE: [Rails-spinoffs] Scriptaculous and Prototype based Rich Text Editor

2005-12-22 Thread Tom Fakes
I tried using Dojo's editor - 0.2.1 - and it crashes my Firefox every time! I'm currently integrating tinyMCE, and after 60 minutes of work, I almost have it working with my dynamic elements. tinyMCE is very large though, but very feature rich. One thing about the Silk icons - they are .png fil

RE: [Rails-spinoffs] Scriptaculous and Prototype based Rich TextEditor

2005-12-23 Thread Tom Fakes
iday, December 23, 2005 1:54 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Scriptaculous and Prototype based Rich TextEditor Hi Tom I'm just about to start on integrating TinyMCE (which is a great editor) with scriptaculous, any pointers on what you've learnt w

RE: [Rails-spinoffs] Resizeable

2006-01-04 Thread Tom Fakes
Check out mine here: http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerod Venema Sent: Wednesday, January 04, 2006 7:28 AM To: Rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Re

RE: [Rails-spinoffs] Resizeable

2006-01-04 Thread Tom Fakes
:[EMAIL PROTECTED] On Behalf Of Tom Fakes Sent: Wednesday, January 04, 2006 3:03 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Resizeable   Check out mine here: http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable     From: [EMAIL PROTECTED

RE: [Rails-spinoffs] Replacing an html chunk with a different html chunk

2006-01-07 Thread Tom Fakes
I have some code replaces an existing HTML element with new HTML. It can be found here: http://blog.craz8.com/articles/2005/12/15/rails-rjs-templates-need-better-re place-semantics The last chunk of code in that entry is an extension to the Element class that allows you to say: Element

RE: [Rails-spinoffs] Replacing an html chunk with a different htmlchunk

2006-01-07 Thread Tom Fakes
the string you pass in. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fakes Sent: Saturday, January 07, 2006 4:48 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Replacing an html chunk with a different htmlchunk I have som

RE: [Rails-spinoffs] extend classes

2006-01-08 Thread Tom Fakes
Extending the draggable code to also do resize is a tough challenge.   I have a Resizable class here that works with Draggable (with some caveats): http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behal

RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?

2006-01-13 Thread Tom Fakes
How about this: Some description Then: Effect.Slideshow("slideshow", { delay }); This would take all the children of 'slideshow', and hide them all except the first, and then switching between them as before. I like

RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?

2006-01-13 Thread Tom Fakes
Hill Sent: Friday, January 13, 2006 1:04 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow? > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Tom Fakes > Se

RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?

2006-01-13 Thread Tom Fakes
Combining Rails, Scriptaculous, Prototype, Ajax and AHAH! Very Web 2.0 - I sense a Beta shortly followed by an IPO. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Friday, January 13, 2006 1:13 PM To: rails-spinoffs@lists.rubyonrails.or

RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?

2006-01-13 Thread Tom Fakes
I had to look it up too: http://microformats.org/wiki/rest/ahah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Friday, January 13, 2006 1:18 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] anyone interested in

RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?

2006-01-13 Thread Tom Fakes
Could you set these as options with Appear and Fade as the defaults { showeffect: function() { Effect.Appear }, hideeffect: function() { Effect.Fade } } That way I can make it looks as screwy as I want! Check out the Draggable.prototype d

RE: [Rails-spinoffs] Slideshow beta

2006-01-25 Thread Tom Fakes
Sweet! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Wednesday, January 25, 2006 8:53 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Slideshow beta Ok, I finally got the slideshow code to a state worth s

RE: [Rails-spinoffs] resizing multiple images usinggetElementsByClassName

2006-01-31 Thread Tom Fakes
One way to do this with minimal code at resize time is to manipulate the style rule for a class that is used by every image.  I haven’t tried this, and this is something I’ve only read the documentation for:   Set a class on each image you want to resize together On initializ