Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Tim Bellinghausen
Hello Vasilis, Am Dienstag, den 15.08.2006, 18:10 +0300 schrieb Vasilis Dourdounis: > On some further research I noticed that, instead of adding the > observer to every element, you could simply do the following: thanks that looks like the perfect solution to me. I'll try it later, but I think th

Re: RE: RE: [Rails-spinoffs] OK. I'm confused again.

2006-08-15 Thread Ryan Gahl
I couldn't agree more. And as Thomas himself has expressed here... optimization is the very last thing you need to worry about.On 8/15/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > 1 - Is every object that is extended by Enumerable going to have iterable> class names?Yes but it will probably be n

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
> Exactly that is also my problem. Oky not mine but also a > customer of mine > wants the shift click. > Statement: Shift click does the same as click but opens in new window" > Problem: I have some functionality that changes a area you could name > display-area. The customer now argues that he ex

Re: RE: RE: [Rails-spinoffs] OK. I'm confused again.

2006-08-15 Thread Brandon Aaron
1 - Is every object that is extended by Enumerable going to have iterable class names? Yes but it will probably be necessary to overwrite the _each method so that the Enumerable knows how to iterate through your collection. At least this is my understanding. 2 - Just how much "baggage" is too

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Fabian Lange
Hi >- shift-click stuff shouldn't break things >(probably doesn't do what the user wants either, but...) Exactly that is also my problem. Oky not mine but also a customer of mine wants the shift click. Statement: Shift click does the same as click but opens in new window" Problem: I have some fun

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Bauser, Joseph (Joe)
I just don't use links for anything other than things which are supposed to navigate you to somewhere else. It just seems weird for me to (when I turn off javascript) have a link sitting on the page doing nothing. So I do something like: my link And it's always a valid link with or without j

[Rails-spinoffs] can sortable trees cross-sort with sortable lists?

2006-08-15 Thread Bob Pawlak
I am trying to set up a sortable tree (nested unordered lists) that will cross-sort with a sortable list (single-level unordered list), but it doesn't seem to work.  The sortable tree demo doesn't allow dragging between trees.  Is this something that anyone has tackled and come up with a soluti

Re: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Tom Gregory
I agree. As a "power user" who regularly opens links in multiple tabs any link to "nowhere" bothers me. Even Thomas' solution doesn't behave properly on a middle-click, (or shift-click, or whatever OS- specific combination I need to open a link in a new tab). If it must be a link, link it t

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Hill, Greg
I'm going to go against the grain here and say I hate it when people use # as the link. It makes the browser jump to the top of the page, and it adds a page to the history. Maybe most people prefer that, but I'm not one of them. Greg > -Original Message- > From: [EMAIL PROTECTED] [mailt

RE: RE: [Rails-spinoffs] OK. I'm confused again.

2006-08-15 Thread Sam
> It creates a new class/object representing the class names. The class > is called Element.ClassNames and it is extended by Enumerable. That > means you can iterate through the element's class names. Pretty cool. "Extended by Enumerable". Thanks. Now I know where to look. A good answer usually

Re: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Thomas Fuchs
"If I hit Ctrl+Alt+Del the computer reboots!" Anyway, the accepted "normal" solution to this is: bla This makes sure: - page will validate, as "#" is a valid URL - link doesn't do anything (expect for jumping to the top of the page) when Javascript isn't active - shift-click stuff shouldn't

RE: RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
Thanks everyone for your suggestions. I'm off to experiment. If I find anything useful, I'll post back. Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Brandon Aaron
Couldn't you just replace the href with javascript:void(0) on links that you are manipulating? This allows the link to function as expected when a user doesn't have Javascript enabled and I think it should address your clients concern. Brandon On 8/15/06, William Attwood <[EMAIL PROTECTED]> wrot

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread William Attwood
The difference between and is the first is an Anchor, while the second is a Link. If you want to link text but not have it be a 'link', try putting around the text and have your style/actions in that tag, including the mouseover effect. --William -Original Message- From: [EMAIL PROTEC

RE: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Maninder, Singh
By the way if you want your href also to work (ie allow users to right click and open in new window) you might want to put some link in the href and attach a function dynamically to the anchor elements onDomLoad. ie, you could have   Click here   And at the same, on dom load, you can get a

Re: [Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Ben Kimball
Sam wrote: problem. A customer posted a complaint yesterday about how I'm coding href's when an onclick event is used and the href should not be used. Stupid question: can you leave out the href entirely? Or does that break our good friend IE? Cheers, Ben -- Ben Kimball

[Rails-spinoffs] Completely off-topic, so flame me

2006-08-15 Thread Sam
  There's a lot of old-solutions to this problem lingering on Google, so it's difficult for me to determine if there's a more modern solution to this problem.  A customer posted a complaint yesterday about how I'm coding href's when an onclick event is used and the href should not be used. 

Re: [Rails-spinoffs] Creating a "shelf" for drag and drop

2006-08-15 Thread Ben Kimball
A couple more observations. Droppables.add(e, { hoverclass: 'over', onDrop: function (drag, drop) { drag.revert = false; drop.appendChild(drag); drag.style.position = 'absolute'; drag.style.left = drag.style.top = 0; }, }); }); Safari

Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Vasilis Dourdounis
Hello again,On some further research I noticed that, instead of adding the observer to every element, you could simply do the following:        Draggables.addObserver(new MyStartEndObserver($('MySortable'))) Handlers will be called only once, but this gives you no information on which element is dr

[Rails-spinoffs] [ANN] script.aculo.us 1.6.2 released

2006-08-15 Thread Thomas Fuchs
script.aculo.us 1.6.2 is ready for download at http://script.aculo.us/ downloads This release is a (mostly) bug-fix only service release. As always, thanks to all who did patches and/or reported issues! :) Reports (good or bad) are welcome. If you find something was omitted (that is, pendin

Re: Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Brandon Aaron
Gmail is great for mailing lists. Gotta love it. On 8/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: Huh? I use gmail now... it's supposed to handle this... When you hit reply, you're supposed to type at the top of the message, that's what is natural (I would never expect to have to scroll to the

Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Ryan Gahl
Huh? I use gmail now... it's supposed to handle this... When you hit reply, you're supposed to type at the top of the message, that's what is natural (I would never expect to have to scroll to the bottom to see someone's reply). When you click in the reply box in gmail (or any other mail program I'

Re: RE: [Rails-spinoffs] OK. I'm confused again.

2006-08-15 Thread Brandon Aaron
Back on topic... It creates a new class/object representing the class names. The class is called Element.ClassNames and it is extended by Enumerable. That means you can iterate through the element's class names. Pretty cool. On 8/14/06, William Attwood <[EMAIL PROTECTED]> wrote: It looks to me

Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Todd Ross
Ryan Gahl wrote: > When I joined the list I had my own etiquette issues which others politely > corrected for me (right Jeremy?)... so don't feel like I'm singling you out > or anything. It's just that from this message I can't see the previous > messages (I'd have to go dig through my deleted item

[Rails-spinoffs] Re: Ajax.Autocompleter with a twist

2006-08-15 Thread Tommy Skaue
Hi ColinI studied the code a bit, and it seems its somewhat different for the Ajax.Autocompleter compared to the Local.Autocompleter. To understand what really happens I've tried to wrap up some of the important events. 1) The ajax request will run onComplete when done, and if you look in the code,