Re: [Rails-spinoffs] Prototype $$ Question

2006-08-14 Thread Andrew Kaspick
To be a tad picky, uniq is only part of Array, not Enumerable in Ruby. On 8/14/06, Hill, Greg <[EMAIL PROTECTED]> wrote: I agree with Ryan, uniq saves you two letters and makes you cringe every time you write or read it. Ruby should seriously fix that. Greg _

Re: [Rails-spinoffs] $F

2006-07-13 Thread Andrew Kaspick
l in an AJAX context... ...point being... something is amuck, man... On 7/13/06, Andrew Kaspick <[EMAIL PROTECTED]> wrote: > I haven't been able to set properties using $(). I was referencing a > checkbox with this yesterday such as $('checkbox').disabled = false > a

Re: [Rails-spinoffs] $F

2006-07-13 Thread Andrew Kaspick
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Thursday, July 13, 2006 2:59 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] $F Should only return a value I believe. $('some_element') works in a similar fashion. It doesn't

Re: [Rails-spinoffs] $F

2006-07-13 Thread Andrew Kaspick
Should only return a value I believe. $('some_element') works in a similar fashion. It doesn't return the dom element directly in order for you to set properties on it, only read them. On 7/13/06, Keith Davis <[EMAIL PROTECTED]> wrote: Am I crazy or does $F only return the value of an eleme

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

2006-07-09 Thread Andrew Kaspick
Could always fork it and implement all the outstanding fixes into a new branch. Of course it wouldn't be distributed with rails, but if enough people start using the "improved" version then who knows what may happen. Of course this isn't the optimal solution, but at this point I'd opt for the "i

Re: [Rails-spinoffs] Text sizing

2006-07-05 Thread Andrew Kaspick
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Wednesday, July 05, 2006 1:49 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Text sizing I didn't see any reference to using pt for fonts. I use pt for most of my fonts and sizes seem

Re: [Rails-spinoffs] Text sizing

2006-07-05 Thread Andrew Kaspick
I didn't see any reference to using pt for fonts. I use pt for most of my fonts and sizes seem the same across browsers. Is there some big bad reason for not using pt for fonts that I'm unaware of? On 7/5/06, Sam <[EMAIL PROTECTED]> wrote: I've had to worry about how different browsers rend

Re: [Rails-spinoffs] Get Elements Within ID

2006-07-03 Thread Andrew Kaspick
I would have to think that $('abc').getElementsByTagName('span') would run faster than making use of $$. $$ would have to evaulate the entire document. Starting at a known parent should be much much faster. On 7/3/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: How about using the $$ selector?

Re: [Rails-spinoffs] Get Elements Within ID

2006-07-03 Thread Andrew Kaspick
So how would I loop over those childNotes and only touch the SPANs? Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Monday, July 03, 2006 1:51 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Get E

Re: [Rails-spinoffs] Get Elements Within ID

2006-07-02 Thread Andrew Kaspick
Well, $('abc').childNodes will get you the 3 tags you mention, but do you also want possible children of those tags too? On 7/3/06, Daniel Elmore <[EMAIL PROTECTED]> wrote: Is there a function that returns all the elements of a particular tag within a particular ID. Example:

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] vertical menus

2006-06-24 Thread Andrew Kaspick
below to a proto class yet? I'd be interested in > > throwing a menu into my toolbox, but I'm making a concerted effort to make > > everything into a clean proto class, thus avoiding nasty namesapce > > collisions down the road, and also enabling widgetization (new w

Re: [Rails-spinoffs] sortable tree problem

2006-06-21 Thread Andrew Kaspick
, and have exams, so don't have much time to work at this, but can try to sort it out if you do this. Sammi On 22/06/2006, at 1:23 PM, Andrew Kaspick wrote: > If you compare the dragdrop.js file that comes with scriptaculous and > then the copy at http://sputnik.pl/dev/labs/sorta

Re: [Rails-spinoffs] sortable tree problem

2006-06-21 Thread Andrew Kaspick
d this behavior work? Maybe you could add support and send me a patch? Sammi On 22/06/2006, at 5:30 AM, Andrew Kaspick wrote: > Looks like onDrop isn't fully supported in dragdrop.js > > The svn repo is missing onDrop functions that can found in your > version of the script from >

Re: [Rails-spinoffs] sortable tree problem

2006-06-21 Thread Andrew Kaspick
Looks like onDrop isn't fully supported in dragdrop.js The svn repo is missing onDrop functions that can found in your version of the script from http://sputnik.pl/dev/labs/sortable/js.php?dragdrop Any particular reason for this? Andrew On 6/21/06, Andrew Kaspick <[EMAIL PROTECTED

Re: [Rails-spinoffs] sortable tree problem

2006-06-21 Thread Andrew Kaspick
roblem, but the modification is small, so you can easily make it yourself to dragdrop.js until an official release is made. Sammi On 21/06/2006, at 7:31 PM, Andrew Kaspick wrote: > Hello, > > I'm having a problem when I set the tree option to true on Sortable. > If I set the option

[Rails-spinoffs] sortable tree problem

2006-06-21 Thread Andrew Kaspick
Hello, I'm having a problem when I set the tree option to true on Sortable. If I set the option to false my remote call works fine, but once I set it to true, I get some weird log errors from Webrick... undefined method `update' for "11":String /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/a

[Rails-spinoffs] vertical menus

2006-06-20 Thread Andrew Kaspick
Hello all, Not a directly related question to scriptaculous or prototype, but I am looking for a good, dynamic vertical javascript menu. I've done some searching and there are a lot of menu implementations out there. I'm looking for something more or less free, but will pay/donate a small fee t

Re: [Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Andrew Kaspick
I use this... http://homepage.ntlworld.com/bobosola/pnghowto.htm On 6/19/06, Casey O'Neill <[EMAIL PROTECTED]> wrote: I placed the following code in the window.onload method. It works but only on inline images. It will not work if the image is loaded through css. For the transparent PNG's I use

Re: [Rails-spinoffs] script.aculo.us AutoComplete Woes

2006-05-23 Thread Andrew Kaspick
gt; wrote: Good idea, can you show me how you did that? Daniel Elmore -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Tuesday, May 23, 2006 4:00 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] script.aculo.us AutoC

Re: [Rails-spinoffs] script.aculo.us AutoComplete Woes

2006-05-23 Thread Andrew Kaspick
.value = value; > > To this: > this.element.value = value.replace(/^\s*|\s*$/g,""); > > > Not sure why that wouldn't be there already. > > Daniel Elmore > > > -----Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Andrew &

Re: [Rails-spinoffs] script.aculo.us AutoComplete Woes

2006-05-23 Thread Andrew Kaspick
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Tuesday, May 23, 2006 3:14 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] script.aculo.us AutoComplete Woes I have used the informal class on my own stuff (which works), but when I select an item, some whit

Re: [Rails-spinoffs] script.aculo.us AutoComplete Woes

2006-05-23 Thread Andrew Kaspick
I have used the informal class on my own stuff (which works), but when I select an item, some whitespace is added before the selected text. It actually appears to be newlines that are being inserted into the textfield. Any ideas what may be causing this? Would this occur because of extra spacing

Re: [Rails-spinoffs] Prototype / Scriptaculous & Dojo

2006-05-20 Thread Andrew Kaspick
I believe the issue with the for loop was resolved quite a while ago. On 5/20/06, Jacob Rockowitz <[EMAIL PROTECTED]> wrote: I think this brings up the question of what is prototype.js NOT compatible with. I am curious if people have ran into issues with any of the common libraries like dojo, YU

Re: [Rails-spinoffs] Content Rotate, unwanted flashing on IE.

2006-05-19 Thread Andrew Kaspick
t time but then I started reading the documentation and noticed there was a slick little globe rotating images... -Andrew Martinez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Kaspick Sent: Friday, May 19, 2006 5:25 PM To: rails-sp

Re: [Rails-spinoffs] Content Rotate, unwanted flashing on IE.

2006-05-19 Thread Andrew Kaspick
Ok, forget that message. Somebody already posted that in another thread for this. On 5/19/06, Andrew Kaspick <[EMAIL PROTECTED]> wrote: Can you put up a public example of this in action so that we don't have to setup the code ourselves to see it? On 5/19/06, Eric Anderson <[E

Re: [Rails-spinoffs] Content Rotate, unwanted flashing on IE.

2006-05-19 Thread Andrew Kaspick
Can you put up a public example of this in action so that we don't have to setup the code ourselves to see it? On 5/19/06, Eric Anderson <[EMAIL PROTECTED]> wrote: I just wrote a stupid little JS object to rotate DOM Elements (mainly images) using Prototype and Script.aculo.us as support. Everyt

Re: [Rails-spinoffs] Effects fully display before effect

2006-04-28 Thread Andrew Kaspick
You're seeing this in browsers besides IE? On 4/28/06, Will Merydith <[EMAIL PROTECTED]> wrote: Why do effects that display an element (like Appear or Slide Down) start by displaying the element for a split second and then make the element disappear?

Re: [Rails-spinoffs] proposing $E & $T

2006-04-27 Thread Andrew Kaspick
I'm not questioning the usefullness of your functions, but there was already a discussion today regarding the use of $ functions and them polluting the namespace. I'm guessing the advice you'll be given is to not use the shortcut methods (which I tend to agree with). On 4/27/06, Faison, Sandford

Re: [Rails-spinoffs] Prototype based tabs and field validation. Enjoy!

2006-04-27 Thread Andrew Kaspick
Nice use of the effects with the validations, looks good. On 4/27/06, Andrew Tetlaw <[EMAIL PROTECTED]> wrote: > Thought I'd try and contribute to the growing prototype ecosystem. > > tabs: > http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/ > > field validation: > http://tet

Re: [Rails-spinoffs] generate scaffold not generating views

2006-04-20 Thread Andrew Kaspick
Wrong mailing list. Ask this question on the general rails mailing list, you should get your answer there. Thanks On 4/20/06, José Bonnet <[EMAIL PROTECTED]> wrote: > > Hi! > Sorry for the newbie question... > > I'm following the depot example in AgileWebDevelopmentWithRails. > Stangelly, genera

[Rails-spinoffs] Property not supported error with newest prototype.

2006-03-31 Thread Andrew Kaspick
I'm getting an error from IE on the following line in the newest prototype... element._extended = true; IE is saying that 'Object doesn't support this property or method'. I'm using IE6. Has anybody else had similiar issues? ___ Rails-spinoffs mailing

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
oh, a download, thought he was referring to an upload. forget my post. :) On 3/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > > But as you know, this ties up the browser and gives me little control > of > > the download. > > > I'm wondering, what control of the download do you need? The browser an

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
iframes are generally the approach used On 3/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > Downloading is a function of the browser itself, not supported in the > XMLHTTP object (you either get text or XML with it)... > > The only way I can think to initiate a file download without tying up > your

Re: [Rails-spinoffs] new version of RTWindows, a scriptaculous window system

2006-03-12 Thread Andrew Kaspick
Very sexy. :) Minor suggestion though. When the windows are stacked and I click the title bar for the window on the bottom of the stack, it doesn't appear on top right away until I start moving the mouse. And what's the area in the top left of the title bar for? The circular type spot? On 3/12

Re: [Rails-spinoffs] [PATCH] Allow Ajax.InPlaceCollectionEditor to load collection externally

2006-03-07 Thread Andrew Kaspick
Patches can be submitted at http://dev.rubyonrails.org/ for scriptaculous if you want a better shot at getting it into the main trunk. Just mentioning for those who may not know. On 3/7/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > Attached is a patch to allow Ajax.InPlaceCollectionEditor to loa

Re: [Rails-spinoffs] Ajax.InPlaceEditor - disabling the yellow highlight?

2006-03-03 Thread Andrew Kaspick
I just set my hightlight colour like so highlightcolor:'transparent' Best I could figure out. On 3/3/06, John Beppu <[EMAIL PROTECTED]> wrote: > Is there a way to disable Ajax.InPlaceEditor's yellow rollover highlight? > ___ > Rails-spinoffs mailing

Re: [Rails-spinoffs] [scriptaculous] Intermitently Disabling Clicks

2006-01-11 Thread Andrew Kaspick
I think there's a way to check if an effect is running, but am not 100% on what it is exactly. The effect does have a state var that should be set to 'finished' when it's done, but there is no method to check for that, so I'm not sure if it's recommended to use or not. if you do var e = new Effec

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
evalScripts is set to true by default using the rails helpers On 1/10/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > On Tuesday 10 January 2006 09:27, Dave Thomas wrote: > > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > > Can you not add the code i

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
Can you paste some of the generated html? On 1/10/06, Dave Thomas <[EMAIL PROTECTED]> wrote: > > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > > Can you not add the code in your display_cart view? > > > > Just put something like <%= visual_effec

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
Can you not add the code in your display_cart view? Just put something like <%= visual_effect :highlight, 'cart_item_'[EMAIL PROTECTED] %> in the display_cart template (maybe add some logic to only perform the effect if it's a xhr request) and since rendering of that view is essentially going to h

Re: [Rails-spinoffs] Scriptaculous + Prototype shrunk to < 50Kb

2006-01-04 Thread Andrew Kaspick
I was also thinking about packing the libs somehow as they are rather large.  The unpacked versions for development are fine, but it'd be nice to just run a script in a production environment to pack the libs down each time an upgrade of the libs are performed.  I see that packer is also available

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

2006-01-02 Thread Andrew Kaspick
Nice start. I also find the other editors to be too bulky. I also have a pretty full plate, but if I have some time to add something to it I will and forward it on. On 12/22/05, Pelle Braendgaard <[EMAIL PROTECTED]> wrote: > Hi Guys, > I'm currently using the Dojo Rich text editor on my site > h

Re: [Rails-spinoffs] extending prototype's classes

2005-12-15 Thread Andrew Kaspick
The prototype lib already has the enable and disable functions for the Form class to do what you want. On 12/15/05, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > Hi, I'm relatively new to javascript programming, and OOP in general, so > please be nice to me ;) > > My question is: > I'd like to exten

Re: [Rails-spinoffs] Prototype.js Hash Methods

2005-12-08 Thread Andrew Kaspick
Not sure if there are docs anywhere, but all those exxcept inspect make sense to me... 1. keys of the hash 2. values of the hash 3. converts your hash to a query string (just like it says) for use in urls 4. not sure exactly what it's doing without looking at the code 5. should work like the Merge

Re: [Rails-spinoffs] Can I pass options to these effects to control the speed?

2005-12-02 Thread Andrew Kaspick
The following will cause the effect to take 0.5 seconds to run. new Effect.BlindDown(elem_id, {duration:0.5}) There are many options that you can pass to the effects. On 12/2/05, bruce christie <[EMAIL PROTECTED]> wrote: > Hi There, > > I am playing around with Effect.Grow and Effect.BlindDown.

Re: [Rails-spinoffs] drag&drop multi

2005-12-01 Thread Andrew Kaspick
Shouldn't the selection revert back to one selected item when you click on a single item again without holding down one of the selection keys? That's how most multi select things work isn't it? Also, the behaviour seems different if you are working with one item as opposed to many... if I click o

Re: [Rails-spinoffs] Looking to develop for scriptaculous

2005-11-22 Thread Andrew Kaspick
Go with both. The Autocompleter allows both local and remote access as well. On 11/22/05, Casey O'Neill <[EMAIL PROTECTED]> wrote: > A hard part is deciding how to load the content. Do you do it all at > once so that it is a fluid experience or do you use callback methods > on each expand and the

Re: [Rails-spinoffs] Looking to develop for scriptaculous

2005-11-21 Thread Andrew Kaspick
We should have a scriptaculous spinoff site :) A page for new features that people are working on that will hopefully be integrated into scriptaculous itself... seems like there are various projects going on and they're going to be easy to lose track of for the rest of us. Could that go into the

[Rails-spinoffs] afterFinish option not working as expected

2005-11-17 Thread Andrew Kaspick
Hello, I'm trying to use the afterFinish parameter on the BlindDown effect, but it's not working as I expect it to. My function appears to be called just as the effect is starting, not when the BlindDown is complete (finished drawing). Here's the code that I'm using for the most part... Effect.B

Re: [Rails-spinoffs] cross-fade effect on elements updated by ajax.updater?

2005-10-20 Thread Andrew Kaspick
whole div, so I either > have the original div on page (before the ajax call), or the new one > (after the ajax call). I don't know how manipulate the two at the > same time. > > On 20. окт 2005., at 15:01, Andrew Kaspick wrote: > > > Could you not run a fade in

Re: [Rails-spinoffs] cross-fade effect on elements updated by ajax.updater?

2005-10-20 Thread Andrew Kaspick
Could you not run a fade in effect of the new element and a fade out effect of the old element in parallel? That should do it I think. On 10/20/05, Tench <[EMAIL PROTECTED]> wrote: > Hello. > > I was wondering if anybody could point me in the right direction of > creating a cross-fade effect for

Re: [Rails-spinoffs] Blind... Effects

2005-10-18 Thread Andrew Kaspick
Just as a small aside (and I realize this is just an example), but I'd recommend putting your own effects into a seperate js file (ie. myeffects.js) and included that along with effects.js. That way when you upgrade versions, you don't have to reapply your changes to the new effects.js. On 10/18/

Re: [Rails-spinoffs] Blind... Effects

2005-10-18 Thread Andrew Kaspick
You should be able to do it by using the current Blind functions as a guide to make your own work left and right. On 10/18/05, Marco M. Jaeger <[EMAIL PROTECTED]> wrote: > Hello, > > is there a way to basically achieve a BlindLeft and BlindRight effect and if > yes, how would I do that? > > Thank