Re: [Rails-spinoffs] AJAX data grid for Rails?

2006-07-07 Thread Pete Forde
I apologize for being so behind on my reply to this, but I wrote an article earlier this year on just this: http://unspace.ca/discover/datagrid Hopefully you find it useful. Pete - Original Message - From: "Thomas Atwood" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 13, 2006 2:31 PM

[Rails-spinoffs] Re: $F - Is this the correct behaviour

2006-07-07 Thread Eric Anderson
Eifion wrote: I was using $F today to read the value of a SELECT element and found that if the value of one of the options is an empty string, the option's text is returned instead. For example in the code below, if One, Two [...snipped example...] Is this how $F is supposed to work? The sh

Re: [Rails-spinoffs] $F - Is this the correct behaviour

2006-07-07 Thread Michael Peters
Eifion wrote: > I was using $F today to read the value of a SELECT element and found > that if the value of one of the options is an empty string, the option's > text is returned instead. For example in the code below, if One, Two > Three or Four was the selected option then I'd get 1,2,3 or 4 fr

[Rails-spinoffs] $F - Is this the correct behaviour

2006-07-07 Thread Eifion
I was using $F today to read the value of a SELECT element and found that if the value of one of the options is an empty string, the option's text is returned instead. For example in the code below, if One, Two Three or Four was the selected option then I'd get 1,2,3 or 4 from $F, but if th

Re: [Rails-spinoffs] Event.observe(element, 'click', fn); vs. element.onclick = fn;

2006-07-07 Thread Ryan Gahl
Correct, and it also allows you to attach multiple event handlers to a single element/event pair, as well as detach them at will. It's just a more robust model.On 7/7/06, Tobie Langel <[EMAIL PROTECTED]> wrote: Hi all,I'm generating a new element through _javascript_ upon initializing aclass. This

[Rails-spinoffs] Event.observe(element, 'click', fn); vs. element.onclick = fn;

2006-07-07 Thread Tobie Langel
Hi all, I'm generating a new element through javascript upon initializing a class. This element needs to react to an onclick event. Is there a difference in using this: element = document.createElement("li"); element.onclick = this.handleClick.bindAsEventListener(this);

RE: [Rails-spinoffs] Re: Text sizing

2006-07-07 Thread Sam
Title: Message -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan GahlSent: Friday, July 07, 2006 9:58 AMTo: rails-spinoffs@lists.rubyonrails.orgSubject: Re: [Rails-spinoffs] Re: Text sizing A hack is nothing more than a creative solution, albeit s

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Ryan Gahl
Oh yea, don't get me wrong. Requirements are requirements, and I'm sure there are plenty of valid use cases, and your code is good. I'm just off on another of my rants :-) I guess I should have qualified my comments with "when talking about public facing sites/applications where standards and conve

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Siegfried Puchbauer
The application this code was written for is a little object browser with the ability to search, browse and view objects. It was a requirement of the customer not to break the functionality of the back- and forward button when you eg. move into a directory. AJAX was chosen for this application beca

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Ryan Gahl
Exactly the kind of thing I don't think is necessary or even good. You should port that idea over to a user control that acts as an undo/redo control, and does not mess around with the history hash. Not knocking your work, it's good code (except maybe for the document.write stuff -- use Builder in

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Siegfried Puchbauer
Hey guys,Some time ago I investigated some time on this topic and implemented a small solution based on prototype. It's tested in Firefox and IE6 (IMHO there is no working solution for Safari).Here is the mail I allready send to the list:  In one of my previous projects I had to satisfy the require

[Rails-spinoffs] slide transition effect for scriptalcoulous/ prototype?

2006-07-07 Thread Samuel DeVore
I was wondering if there are any examples of an implementation of the "Slide Transition Pattern" for scripta/proto?I found a nice one using the Yahoo UI stuff and was wondering if there was a similar set of transitions for this? http://developer.yahoo.com/ypatterns/pattern.php?pattern=slideYahoo UI

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Ryan Gahl
This really depends on the context of your usage of Ajax. Where each page is potentially it's own mini application (RIA), I personally would not expect the back button to act as an undo for the operations done within that application (for that it would probably be best to create your own "undo/redo

Re: [Rails-Spinoffs] Autocompleter without a default choice

2006-07-07 Thread Hirn, Joseph
2 things to try... 1) You could try using the document.onkeydown event to capture all enter keystrokes and submit the form before the autocompleter calls updateElement. 2) Try providing an updateElement function to the autocompleter which checks if the keystroke was an enter and either submits or

Re: [Rails-spinoffs] Re: Text sizing

2006-07-07 Thread Ryan Gahl
A hack is nothing more than a creative solution, albeit short term and subject to breaking under the changing terms of future environments. But, then you as the creative solution engineer just find the new solution, always looking for the possibility of a more long term fix but not afraid to resor

Re: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread devel - Fashion Content
Imo it's just one of the things you have to design for when you plan your web app. Let's say you have a page that shows a sorted table of information. Using Ajax you allow the user to change the sort order, and filter the view to only a certain match. Back button: Personally I wouldn't expec

RE: [Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back ButtonIssue)

2006-07-07 Thread Maninder, Singh
http://www.contentwithstyle.co.uk/Articles/38/ http://dev2dev.bea.com/pub/a/2006/01/ajax-back-button.html http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html Enjoy! -Mandy. ___ Rails-spinoffs mailing list Rails-spi

[Rails-spinoffs] Ajax Bookmarks & Browser Navigation (Back Button Issue)

2006-07-07 Thread Sergio Marques
Hi, I've been reading a lot of articles about the back button and bookmark issue for Ajax Web Applications, but i would like to know some more opinions about that question. I know that exists some libraries that try to solve this problem, but i'm not convinced. - will the future web browsers have

Re: [Rails-Spinoffs] Autocompleter without a default choice

2006-07-07 Thread Scott Fortmann-Roe
How do you make the autocompleter come up without a suggestion? The mouse thing is also important, but that's half the battle. Thanks, Scott On 7/6/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: On Thursday 29 June 2006 01:06, Scott Fortmann-Roe wrote: > Hi, > > I have an ajax auto completer fo

[Rails-spinoffs] [OT] Domain-specific type extensions

2006-07-07 Thread nick hemsley
Hey all, This is just a little heads up about a little script I have been using a bit & thought I'd put it out there (hopefully someone adds some other stuff so I dont have to do it all). Basically it works very similar to Element.extend (snarfed some of the code), but you can define functions p