Re: [Rails-spinoffs] javascript woes with radio button groups

2006-06-30 Thread Andrew Tetlaw
Prototype already has an observer for this. Form.Element.Observer I think. It uses a time based periodical check for a changed value so it doesn't rely on events. On 01/07/06, Sam <[EMAIL PROTECTED]> wrote: If all else fails, setup a 100ms periodic timer event handler. Loop thru the radio butto

RE: [Rails-spinoffs] javascript woes with radio button groups

2006-06-30 Thread Sam
If all else fails, setup a 100ms periodic timer event handler. Loop thru the radio buttons, and you can decide when to move on from there. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/

RE: [Rails-spinoffs] javascript woes with radio button groups

2006-06-30 Thread Gregory Hill
You could set a variable onmouseover, and when onclick is fired check for that variable to make sure they moused over the item first. Of course, you'd then also have to clear the variable onmouseout to make sure they didn't just keep the mouse moving. Why do you care to differentiate between a cl

[Rails-spinoffs] javascript woes with radio button groups

2006-06-30 Thread Jeremy Kitchen
Ok! So I have this survey project I'm working on where there are a list of questions but only one shows up at a time. That part's easy. And, it is fully functional as we speak (and I think even 'live') however. My boss wants to be able to have the survey go to the next question when a u

Re: [Rails-spinoffs] Speeding up Prototype's $$ Selector

2006-06-30 Thread Andreas Wahlin
It works wonders for unobtrusive scripting $$('a.noFollow').each(function(el) { el.onclick = function() { return(false); } }); ok, so not the finest thing to do, but now all links with the class of noFollow won't do squat :) Andreas I saw something about the $$ selector on a review site,

Re: [Rails-spinoffs] Speeding up Prototype's $$ Selector

2006-06-30 Thread Andrew Kaspick
I can't find anything right off the top of my head, but it's basically a way to select dom elements using css style selectors. So just use some css syntax in quotes and you should get all elements matching that selector. As a side note, the css syntax it accepts is quite thorough, so don't think

RE: [Rails-spinoffs] Speeding up Prototype's $$ Selector

2006-06-30 Thread Keith Davis
I saw something about the $$ selector on a review site, but I see nothing about this in the documentation. Can someone point me to it? Keith Davis (214) 906-5183 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Rumble Sent: Thursday, June 29, 2006 3

RE: [Rails-spinoffs] Ajax.Request synchronization (onSuccess beforeonComplete?)

2006-06-30 Thread Sam
Title: Message Not sure if (2) is suggesting overlapping execution, but onComplete will be called after your onSuccess handler exits.   Sam     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hirn, JosephSent: Friday, June 30, 2006 10:34 AMTo: rail

[Rails-spinoffs] Ajax.Request synchronization (onSuccess before onComplete?)

2006-06-30 Thread Hirn, Joseph
2 questions regarding the synchronization of these events.   1)   is onSuccess called before onComplete ( I assume it is) 2)   if called after, is onComplete called after the onSuccess method has completed or are you at the mercy of synchronization issues?   Hopefully someone

[Rails-spinoffs] sync reads or big files problem

2006-06-30 Thread Zahhar Kirillov
Hello, friends! I vahe a problem using prototype1.4 in IE6. I am trying to create bandwidth speed test tool. The idea is to download one by one X times (i.e. 10) one and the same ASCII-file with size = 1MB. I would like to measure time and speed of each run, to display the intermediate results af

Re: [Rails-spinoffs] Very Strange IE behavior

2006-06-30 Thread Jerod Venema
Hey Thomas, I'm definately no guru when it comes to IE's fun randomness, but here're a couple thoughts: 1) You've got your

[Rails-spinoffs] Very Strange IE behavior

2006-06-30 Thread Thomas Lohbeck
Hello With your help I managed to programm a nice slider page: http://www.vum.ch/schulfernsehen/ It works fine on IE and FF. So I integrated the page into the clients CMS now its not working sometimes on IE. Error on line 155 file slider.js (this.handles[handleIdx].style[this.isVertical() ?

Re: [Rails-spinoffs] Ajax.Updater

2006-06-30 Thread Thomas Fuchs
The Ajax calls can also respond to specific status codes, not only a genral "success/failure" scheme.If the server isn't available, you'll get nothing back, btw. ;)Anyway, a possible and "clean" alternative is to use custom HTTP headers (Prototype already does this with support for a JSON header an