[Rails-spinoffs] draggables in IE visible outside div with overflow=hidden

2006-07-10 Thread Rob Clayburn
Hi All I have a series of images that I'm showing in a table inside a with overflow:auto on. Each of the images is a dragable. In firefox this works as expected (if the image list is longer than the div scroll bars appear to scroll the div and scrolling works). However in IE the images are

[Rails-spinoffs] prototype hash method

2006-07-10 Thread Fernando
var v1 = { a: 'value for a', b:'value for b' } var v2 = { c: 'value for c', d: function(){some code...} }; var v3 = v2.merge(v1); I'm getting an error doing this... what is wrong? ___

Re: [Rails-spinoffs] Maintainer?

2006-07-10 Thread Tobie Langel
Hi all, One of the strength of Prototype is the fact that it comes bundled with rails and is thus used by quite a large community. I really don't think a forked version would have much success considering this. However, I do regret, as others, the fact that Sam is very distant and seldom r

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Siegfried Puchbauer
try it this way:var v1 = { a: 'value for a', b:'value for b' }; var v2 = { c: 'value for c', d: function(){} }; var v3 = $H(v2).merge($H(v1)); v3.inspect();// # but v2.d will be ignored (type of th

Re: [Rails-spinoffs] Maintainer?

2006-07-10 Thread Brandon Aaron
I would agree that a forked version would most likely hurt prototype in the long run since it is tightly integrated with rails.I think having a few more commiters that all share the same vision would greatly benefit the prototype framework and community. On 7/10/06, Tobie Langel <[EMAIL PROTECTED]>

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Sam
Title: Message Is it easy to explain the difference between a hash   var myHash = {a: 'value for a'}   and an object   var myObject = {a: 'value for a'}   Sam ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonr

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Michael Peters
Sam wrote: > Is it easy to explain the difference between a hash > > var myHash = {a: 'value for a'} > > and an object > > var myObject = {a: 'value for a'} There is no difference between those. They are both associative arrays (hashes). -- Michael Peters Developer Plus Three, LP __

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Fernando
"but v2.d will be ignored (type of the value is function)" ok, but so how to do this : I have Default Options for all my Ajax.Updater() DefaultOptions = { asynchronous:true, evalScripts:true, onLoaded:function(request){Element.hide('spinner')}, onLoading:function(request){

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Bauser, Joseph (Joe)
When he said ignored, I think he only meant for the inspect function (which doesn't print d even though it exists). The functions will still be merged together into v3 since the $H() function doesn't discriminate by type AFAIK. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Tobie Langel
Hi Fernando, why don't you just use Object.extend: var v1 = { a: 'value for a', b:'value for b' }; var v2 = { c: 'value for c', d: function(){some code...} }; var v3 = Object.extend(v1, v

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Fernando
tks Tobie, I'm new to javascript and prototype framework, I will use Object.extend: tks Tobie Langel escreveu: Hi Fernando, why don't you just use Object.extend: var v1 = { a: 'value for a', b:'value for b' }; var v2 = {

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Tobie Langel
Actually, Fernando, I must have been thinking slowly... Using Object.extend like that will also extend v1 to contain v2, which is probably not what you wanted... this would do the trick: var v3 = {}; Object.extend(v3, v2); Object.extend(v3, v1); If you just wanted to add v2 to v1: Object.e

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Sam
Sam wrote: > Is it easy to explain the difference between a hash > > var myHash = {a: 'value for a'} > > and an object > > var myObject = {a: 'value for a'} There is no difference between those. They are both associative arrays (hashes). --- S

Re: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Brandon Aaron
Here it is as a one-liner that I use often to merge a set of options with a default:options = Object.extend(Object.extend({}, _defaultOptions), options);_defaultOptions =  your defaultsoptions = passed in options and then the merged options BrandonOn 7/10/06, Sam <[EMAIL PROTECTED]> wrote: Sam wrot

RE: [Rails-spinoffs] prototype hash method

2006-07-10 Thread Bauser, Joseph (Joe)
The Hash that prototype declares provides associative array functionality, like returning of keys and values, stuff that Object doesn't provide on it's own. It's intent is to act like an associative array, where Object is intended to be used as an Object. Contrary to my previous understanding,

[Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
Hello,I'm hoping this is the right place to ask these kind of questions. If not, please excuse me. Anyway, the problem I'm having is that I have a HTML tableshowing some tabular data and I want to use Effect.SlideDown /Up to allow the user to interactively show "details" for each item ( etc) in tha

[Rails-spinoffs] Making HTML display-able on a page

2006-07-10 Thread Sam
Title: Message For error reporting purposes, I'd like to take the data returned from an Ajax call, which should contain HTML, and display that HTML in an error reporting page.   Does prototype.js have a method which will convert an HTML string to display format?   Sam  

RE: [Rails-spinoffs] Making HTML display-able on a page

2006-07-10 Thread Bauser, Joseph (Joe)
Depends what you mean. A good place to check for functionality in prototype is http://www.sergiopereira.com/articles/prototype.js.html You can go there and search to see if it has the functionality you want. Cheers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Beh

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Michael Peters
Eskil Kvalnes wrote: [snip] > > > headlinesummary > > > > problemshaving > problems with script.aculo.us > You can just make that Effect.SlideDown('info-container'); > this is where I'm facing difficulties. I want another table row to > appear "onclick",

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
On 7/10/06, Michael Peters <[EMAIL PROTECTED]> wrote: Eskil Kvalnes wrote:[snip]> >  >   headlinesummary>  >>  >   > Effect.SlideDown(document.getElementById('info-container'))">problemshaving> problems with script.aculo.us < http://script.aculo.us>>  You can just make that  Effect.SlideDown('info-

RE: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Bauser, Joseph (Joe)
If I remember correctly, you can't use that effect on tables. But I may be mistaken. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Eskil KvalnesSent: Monday, July 10, 2006 4:05 PMTo: rails-spinoffs@lists.rubyonrails.orgSubject: Re: [Rail

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
On 7/10/06, Bauser, Joseph (Joe) <[EMAIL PROTECTED]> wrote: If I remember correctly, you can't use that effect on tables. But I may be mistaken.You seem to be right... no available workaround to this or a somewhat similarfunction available? On 7/10/06, Michael Peters <[EMAIL PROTECTE

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Michael Peters
Eskil Kvalnes wrote: > > > On 7/10/06, *Bauser, Joseph (Joe)* <[EMAIL PROTECTED] > > wrote: > > If I remember correctly, you can't use that effect on tables. But I > may be mistaken. Use divs :) -- Michael Peters Developer Plus Three, LP __

RE: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Martinez, Andrew
There are certain things you should not drag and drop, or animate. Some of these elements are input elements in FireFox, the other things are always tables. Tables do not lend themselves easily to anything dynamic. This isn't saying you can't, I'm just saying it doesn't always work or has weird

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
On 7/10/06, Michael Peters <[EMAIL PROTECTED]> wrote: Eskil Kvalnes wrote:>>> On 7/10/06, *Bauser, Joseph (Joe)* <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> If I remember correctly, you can't use that effect on tables. But I> may be mistaken.Use divs :)Hehe, I changed from SlideDown/U

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
On 7/10/06, Martinez, Andrew <[EMAIL PROTECTED]> wrote: There are certain things you should not drag and drop, or animate. Some of these elements are input elements in FireFox, the other things are always tables. Tables do not lend themselves easily to anything dynamic. This isn't saying you can't,

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Tom Gregory
Well, then you might try wrapping the entire table in a div, and applying the effect to that...TAGOn Jul 10, 2006, at 2:40 PM, Eskil Kvalnes wrote:On 7/10/06, Martinez, Andrew <[EMAIL PROTECTED]> wrote: There are certain things you should not drag and drop, or animate. Some of these elements are in

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Seth Dillingham
On 7/10/06, Eskil Kvalnes wrote: On 7/10/06, Martinez, Andrew wrote: > As per Michael Peters, use DIV's. I probably would've had I not had a lot of tabular data like this. I have the luxury of not having to worry about IE at all; it's a private site for me and my friends and we all use FF. A

Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Jerod Venema
IE freewhat a wonderful world it would be... On 7/10/06, Seth Dillingham <[EMAIL PROTECTED]> wrote: On 7/10/06, Eskil Kvalnes wrote: > On 7/10/06, Martinez, Andrew wrote: > > As per Michael Peters, use DIV's. > > I probably would've had I not had a lot of tabular data like this. I have >

Re: [Rails-spinoffs] What effect is this

2006-07-10 Thread Jerod Venema
Check out the "direction" parameter for grow. from the wiki: onclick="new Effect.Grow('content', {direction: 'top-left'});" I'd assume (though I haven't tried) that that would work nicely with a footer icon in the bottom right of your page... -Jerod On 7/9/06, Sam <[EMAIL PROTECTED]> wrote:

[Rails-spinoffs] Hiding an event to launch a debug window

2006-07-10 Thread Sam
Title: Message I'd like to leave some debug code on a website, the debug window made visible with an onClick event on some object, but requiring CTRL-ALT or some combination to be held down.   Is it possible to check state of keyboard keys in an onClick handler, or can anyone suggest some o

Re: Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Jon Tirsen
On 7/11/06, Eskil Kvalnes <[EMAIL PROTECTED]> wrote: On 7/10/06, Bauser, Joseph (Joe) <[EMAIL PROTECTED]> wrote: > > > > If I remember correctly, you can't use that effect on tables. But I may be mistaken. You seem to be right... no available workaround to this or a somewhat similar function

Re: [Rails-spinoffs] Hiding an event to launch a debug window

2006-07-10 Thread Ryan Gahl
Sure can... inspect the event object... i forget the exact names of the properties you want, but http://www.w3schools.com is great for looking this stuff up...and instead of Ctrl Alt, might i suggest something harder to guess, like: up, up, down, down, left, right, left, right, b, a, select, start?

Re: Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-10 Thread Eskil Kvalnes
On 7/11/06, Jon Tirsen <[EMAIL PROTECTED]> wrote: On 7/11/06, Eskil Kvalnes <[EMAIL PROTECTED]> wrote: On 7/10/06, Bauser, Joseph (Joe) < [EMAIL PROTECTED]> wrote:> >> >> >> > If I remember correctly, you can't use that effect on tables. But I may be> mistaken.>>> You seem to be right... no ava