Re: [Rails-spinoffs] Re: Cross Broswer Fire Event

2006-06-12 Thread Brice Burgess
This link may or may not help. http://www.quirksmode.org/js/introevents.html http://www.quirksmode.org/js/events_tradmod.html It's a great discussion on JS events. And yes, element.fireEvent('onclick'/etc) is IE 5.5+ centric. ~ Brice ___ Rails-spino

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread Brice Burgess
($json)); it wouldn't work. However, I'm under the impression that I'm going about it in the wrong manner ;) Perhaps I set the header... and then the entire return is valid JSON? ~ Brice John Wang wrote: On 5/28/06, *Brice Burgess* <[EMAIL PROTECTED] <mailto:[EMAIL PR

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread Brice Burgess
Also note that from my experience, the X-JSON header is CASE SENSITIVE -- and must all be lowercase. ~ Brice John Wang wrote: On 5/28/06, *Dirk Eschler* <[EMAIL PROTECTED] > wrote: According to http://www.sergiopereira.com/articles/prototype.js.html, the

Re: [Rails-spinoffs] Canceling a specific effect

2006-05-23 Thread Brice Burgess
Martinez, Andrew wrote: You need to use beforeStartInternal not beforeStart. Here is an example: Thanks for showing me the example. I've tried it (& poked around in effects.js -- to find the useful inspect() function), so I came up with the following code: vis = $(this.headers[i]+'Tex

Re: [Rails-spinoffs] Canceling a specific effect

2006-05-22 Thread Brice Burgess
beforeStart: function(effect) { > if (menu.currentHeader == element) { > effect.cancel(); > } > } > > hope this helps > Nicholas > > On 5/22/06, Brice Burgess <[EMAIL PROTECTED]> wrote: > > Is there a way to cancel a specific effect? For instanc

[Rails-spinoffs] Canceling a specific effect

2006-05-22 Thread Brice Burgess
ction() { if (menu.currentHeader == element) { this.cancel(); } } }); } }, I'm not sure that this.cancel(); cancels the effect, nor that the comparisson (currentHeader == element) remains static to the original element the Effect was called for.

Re: [Rails-spinoffs] [ANN] Tooltips v1.1 Released

2006-05-08 Thread Brice Burgess
Pretty sweetness... Can a tooltip show the contents of a (w/ more "rich" content)? -- or is it limited to title tag of link? ~ Brice Ed C. wrote: All -- Thanks to those who sent me input! I'm proud to release my tooltips version 1.1 into the wild; it can be downloaded here: https://boy

Re: [Rails-spinoffs] Re: Stopping the Ajax.PeriodicalUpdater -- My Kludge?

2006-05-07 Thread Brice Burgess
James Gregory wrote: This is my fault, the page they were referring to is actually at the following address: http://blog.jagregory.com/articles/2006/01/09/prototype-periodicalexecuter- stop-javascript-function (watch for the word-wrap in the url) I apologise for the inconvenience, but my blogg

Re: [Rails-spinoffs] Stopping the Ajax.PeriodicalUpdater -- My Kludge?

2006-05-07 Thread Brice Burgess
The page you linked to doesn't work... I'm still having issues with this -- and having to rely on setTimeout -- even though it's bound. Here's the updated code:-- notice setTimeout(pb.stopper,300); -- [BEGIN] var pb = { init: function() { this.percent = 0; this.updater = new Ajax.Pe

[Rails-spinoffs] Stopping the Ajax.PeriodicalUpdater -- My Kludge?

2006-05-02 Thread Brice Burgess
uccess: pbCheck, onComplete: pbClean }); } var percent = 0; function pbCheck(request,json) { percent = json.percent; } setTimeout(pbKill,5000); function pbKill() { if (percent > 10) { pb.stop(); } else { setTimeout(pbKill,5000); } } function pbClean()