[Rails-spinoffs] camelize bug?

2006-06-02 Thread Eric Anderson
I was looking at the source code for camelize and I am unclear what the following line does: var camelizedString = this.indexOf('-') == 0 ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) : oStringList[0]; From what I can tell the function wi

[Rails-spinoffs] Re: prototype patch submissions

2006-06-02 Thread Eric Anderson
Pete Forde wrote: http://dev.rubyonrails.org/ticket/5122 #5122 addressed adding document.getElementsByAttribute, alongside the existing document.getElementsByClassName. We've found that while it's I'm not arguing with the usefulness of this function but I am wondering why this should be used

Re: [Rails-spinoffs] prototype patch submissions

2006-06-02 Thread Dave Teare
document.getElementsByAttribute is a really cool idea! I currently use the CSS selector approach originally used in behaviour.js, but I like this approach much more. Thanks for sharing! On Friday, June 02, 2006, at 10:51 PM, Pete Forde wrote: >[reposted from rails-core] > >I've recently subm

[Rails-spinoffs] prototype patch submissions

2006-06-02 Thread Pete Forde
[reposted from rails-core] I've recently submitted two patches (#5122 and #5266) to the Rails trac. These patches are actually for Prototype. There appears to be very little discussion about Prototype on this list, but I wanted to share what I've been doing in the hopes of soliciting some feedbac

[Rails-spinoffs] gsub vs. replace

2006-06-02 Thread Eric Anderson
I was looking at the gsub method on the String.prototype object in Prototype. I was trying to determine the purpose of this method. It seems like it duplicates the functionality of the built-in replace() method. So: "red, blue, green".gsub(/, /, ' - '); "red, blue, green".replace(/, /g, ' - ')

Re: [Rails-spinoffs] Drag'n'Drop out of overflow:auto containers

2006-06-02 Thread Ryan Gahl
Meh... no I'm sorry I never got around to submitting a patch. I had good intentions to, but crazy life stuff has been keeping me from that sort of extra cirricular activity...Umm... as far as your event handling goes, it creates a clone, but I'm not sure at this point in time (it's been a while!!)

Re: [Rails-spinoffs] Drag'n'Drop out of overflow:auto containers

2006-06-02 Thread Jonathan Weiss
Fantastic, this is exaclty what I needed. Did you also submit it as a patch? I have one issue with this lib though. On the draggable elements I use a onclick handler to change the background color. This works on the first click but fails on the second. If I revert back to the original

Re: [Rails-spinoffs] Re: IE header max length (for X-JSON)

2006-06-02 Thread Dirk Eschler
Am Freitag, 2. Juni 2006 19:17 schrieb John Wang: > On 6/1/06, John Wang <[EMAIL PROTECTED]> wrote: > > Does anyone know what the max length for a header in IE is? When my > > X-JSON value is 138 bytes, it works fine but when it's 1659 it fails. Is > > this documented anywhere? > > I put up a blog

Re: [Rails-spinoffs] Drag'n'Drop out of overflow:auto containers

2006-06-02 Thread Jonathan Weiss
Ryan Gahl wrote: Check out my posts from back in February on this topic... my version of dragdrop.js uses cloning to overcome this problem... http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002599.html Fantastic, this is exaclty what I needed. Did you also submit it as

[Rails-spinoffs] Re: Group checkbox toggling

2006-06-02 Thread Kevin Olbrich
On Friday, June 02, 2006, at 2:49 PM, Eric Anderson wrote: >Kevin Olbrich wrote: >> I would like to put a checkbox in the column/row headers to toggle the >> boxes in a particular row or column. Each box has a name like >> 'position_A1' or 'position_H12'. > >Why not just use radio buttons. That i

[Rails-spinoffs] Re: Group checkbox toggling

2006-06-02 Thread Eric Anderson
Kevin Olbrich wrote: I would like to put a checkbox in the column/row headers to toggle the boxes in a particular row or column. Each box has a name like 'position_A1' or 'position_H12'. Why not just use radio buttons. That is what they are for and they will work without Javascript enabled.

[Rails-spinoffs] Group checkbox toggling

2006-06-02 Thread Kevin Olbrich
This isn't really a scriptaculous question, but it might be interesting anyway. I'm generating a rails app and in one form I have a grid of check-boxes (rows = A..H and col=1..12). I would like to put a checkbox in the column/row headers to toggle the boxes in a particular row or column. Each bo

Re: [Rails-spinoffs] Prototype/Scriptaculous beginer question

2006-06-02 Thread John Wang
On 6/2/06, Jean-Philippe Encausse <[EMAIL PROTECTED]> wrote: - Do you know a good SDA or RSA _javascript_ library other thatthis one: http://pajhome.org.uk/crypt/sda/index.html ? Take a look at Tom Wu's jsbn library: http://www-cs-students.stanford.edu/~tjw/jsbn/ HTH, John

[Rails-spinoffs] Re: IE header max length (for X-JSON)

2006-06-02 Thread John Wang
On 6/1/06, John Wang <[EMAIL PROTECTED]> wrote: Does anyone know what the max length for a header in IE is? When my X-JSON value is 138 bytes, it works fine but when it's 1659 it fails. Is this documented anywhere? I put up a blog entry on this. For now I'm just going to put the JSON string in the

Re: [Rails-spinoffs] Prototype/Scriptaculous beginer question

2006-06-02 Thread Tom Gregory
On Jun 2, 2006, at 8:42 AM, Jean-Philippe Encausse wrote: - Is there a way with prototype or scriptaculous libraries to get the selected text in an html page ? Or in a textarea ? The first Google hit for "javascript select text" answers your question: http://www.quirksmode.org/js/selected.h

Re: [Rails-spinoffs] Drag'n'Drop out of overflow:auto containers

2006-06-02 Thread Tom Gregory
Ah, yes. I did have this problem. I ended up getting around it in an odd sort of way: instead of making my list items draggables, I trapped the onclick for the list items, and manually created a div with a higher z-index, which I instantiated as a Draggable and fired the proper functions

[Rails-spinoffs] Prototype/Scriptaculous beginer question

2006-06-02 Thread Jean-Philippe Encausse
Hi ! Sorry if my 2 questions are stupid: - Is there a way with prototype or scriptaculous libraries to get the selected text in an html page ? Or in a textarea ? - Do you know a good SDA or RSA javascript library other that this one: http://pajhome.org.uk/crypt/sda/index.html ? Best Regards -

RE: [Rails-spinoffs] adding content upward during Effect.SlideXXXX

2006-06-02 Thread Paul Shannon
I was reading something on the wiki yesterday that may help as we are developing a slide out panel that goes from left to right. Have you tried using bottom: Xpx; instead of top: Xpx; when positioning the bottom content? Paul Shannon Web Applications Developer Codeweavers Limited -Origina

Re: [Rails-spinoffs] Ajax.Replacer

2006-06-02 Thread nick hemsley
The easiest is probably clear the containers contents in the onSuccess handler. This gets called just before the container gets updated. Nick On 6/1/06, Garito <[EMAIL PROTECTED]> wrote: Hi all! How can I do a Ajax.Replacer instead of Ajax.Updater? I created Ajax.Replacer but I would like to i