[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 shown outside the containing div and the scroll bar does nothing


I think this is because the images have position=relative style applied 
by prototypes makepositioned function, but am unsure how to work around 
this. Below is the sample html I'm using (the img's postion relative is 
there as the draggable code generates that for the element):



   #scrollcontainer{
   width:200px;
   height:100px;
   border:1px solid #66;
   overflow:auto;
   }
img{
   float:left;
   width:60px;
   }
#inner{
   width:890px;
   border:1px solid red;
   }
   

   
   
   
   
   
   
   src="images/stories/clients/62/_thumbs/F11ADMIN01.GIF" style="position: 
relative;">
   src="images/stories/clients/62/_thumbs/F11ADMIN01.GIF" style="position: 
relative;">
   src="images/stories/clients/62/_thumbs/F11ADMIN01.GIF" style="position: 
relative;">
   src="images/stories/clients/62/_thumbs/F11ADMIN01.GIF" style="position: 
relative;">
   src="images/stories/clients/62/_thumbs/F11ADMIN01.GIF" style="position: 
relative;">

   
   
   
   
   
  
   


Alternatively you can see the site here:
http://www.folio11.co.uk/index.php?option=com_folio_dev&Itemid=23# (user 
demo, pw demo)
Press login, then "your folio pages" - the problem occurs with the "my 
folio images" and "My folio pages" sections


Does anyone know a work around for this?

Many thanks in advance!
Rob C
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 replies to contributors.


Maybe the solution would be to have a few other commiters?

This would discharge Sam from some of the work, and would enable the 
framework to improve at a more steady pace...


I also regret the lack of presence and interaction on the irc 
channel... of everyone.


I get better results when I post here than on irc, strange, no?

So if any of you guys wish to spend a bit more time on irc, discussing 
patches, improvement requests, etc, maybe this would help too...


Anyway, I hope we get this sorted out,

Best regards,

Tobie

PS I'd still like to thank Sam for the outstanding job he's been doing 
with Prototype!




From: "Andrew Kaspick" <[EMAIL PROTECTED]>

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 "improved" version.

Andrew

On 7/9/06, Michael Peters <[EMAIL PROTECTED]> wrote:



Todd Ross wrote:

I'd do it myself, but I'm sick of being ignored by Sam.

Todd "disgruntled contributor" Ross


I have to admit that it's kind of depressing to work with an open 
source project
with a distant (I'm sure others would use a stronger adjective) 
maintainer. I
can't say that I've ever seen Sam Stephenson on the mailing list and 
according
to comments from others, he doesn't seem to pay too much attention to 
the bug

tracker either. Does he prefer some other medium of communitcation?

As a user and want-to-be-contributor, it would be nice to hear about 
his roadmap
for future development, what things he wants help on, why some 
patches are

rejected, or even if he no longer has interest in the project.

Although I'm not a Rails person, the 4th section of rubyonrails.com 
is titled

"Get Involved".

--
Michael Peters
Developer
Plus Three, LP

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 the value is function)hthsigiOn 7/10/06, Fernando <
[EMAIL PROTECTED]> wrote: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?___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Mit freundlichen Grüßen
Siegfried Puchbauer
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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]> wrote:
Hi all,One of the strength of Prototype is the fact that it comes bundled withrails and is thus used by quite a large community.I really don't think a forked version would have much successconsidering this.
However, I do regret, as others, the fact that Sam is very distant andseldom replies to contributors.Maybe the solution would be to have a few other commiters?This would discharge Sam from some of the work, and would enable the
framework to improve at a more steady pace...I also regret the lack of presence and interaction on the ircchannel... of everyone.I get better results when I post here than on irc, strange, no?
So if any of you guys wish to spend a bit more time on irc, discussingpatches, improvement requests, etc, maybe this would help too...Anyway, I hope we get this sorted out,Best regards,Tobie
PS I'd still like to thank Sam for the outstanding job he's been doingwith Prototype!> From: "Andrew Kaspick" <[EMAIL PROTECTED]>>
> 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 "improved" version.>> Andrew>> On 7/9/06, Michael Peters <
[EMAIL PROTECTED]> wrote:>> Todd Ross wrote:>>> I'd do it myself, but I'm sick of being ignored by Sam.>> Todd "disgruntled contributor" Ross
 I have to admit that it's kind of depressing to work with an open>> source project>> with a distant (I'm sure others would use a stronger adjective)>> maintainer. I
>> can't say that I've ever seen Sam Stephenson on the mailing list and>> according>> to comments from others, he doesn't seem to pay too much attention to>> the bug>> tracker either. Does he prefer some other medium of communitcation?
 As a user and want-to-be-contributor, it would be nice to hear about>> his roadmap>> for future development, what things he wants help on, why some>> patches are>> rejected, or even if he no longer has interest in the project.
 Although I'm not a Rails person, the 4th section of rubyonrails.com>> is titled>> "Get Involved". -->> Michael Peters
>> Developer>> Plus Three, LP ___>> Rails-spinoffs mailing list>> 
Rails-spinoffs@lists.rubyonrails.org>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs>>___
Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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.rubyonrails.org/mailman/listinfo/rails-spinoffs


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

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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){Element.show('spinner')}
}

I have lots of Ajax.Updater()

var MyPageFunctions = {
  
   func1 : function() {
    
  var OptionForThisFunction =  {onComplete: function() { some code
} };

 //I would like that {options} be OptionForThisFunction + Default
Options

  new Ajax.Updater('bla','url', {options});
  },
  func2 : function() {
  var OptionForThisFunction =  {onComplete: function() { some other
code } };
  
 //I would like that {options} be OptionForThisFunction + Default
Options

  new Ajax.Updater('bla2','url', {options} );
  } 
  . . .
}

 there is a way to do this?

tks


Siegfried Puchbauer escreveu:
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 the value is function)
  
hth
  
sigi
  
  On 7/10/06, Fernando <
[EMAIL PROTECTED]> wrote:
  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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org

http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
  
  
  
  
  
-- 
Mit freundlichen Grüßen
  
Siegfried Puchbauer
  

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
  



___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 PROTECTED] Behalf Of Fernando
Sent: Monday, July 10, 2006 10:03 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] prototype hash method


"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){Element.show('spinner')}
}

I have lots of Ajax.Updater()

var MyPageFunctions = {
  
   func1 : function() {

  var OptionForThisFunction =  {onComplete: function() { some code } };

 //I would like that {options} be OptionForThisFunction + Default Options

  new Ajax.Updater('bla','url', {options});
  },
  func2 : function() {
  var OptionForThisFunction =  {onComplete: function() { some other code } 
};
  
 //I would like that {options} be OptionForThisFunction + Default Options

  new Ajax.Updater('bla2','url', {options} );
  } 
  . . .
}

 there is a way to do this?

tks


Siegfried Puchbauer escreveu: 
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 the value is function)

hth

sigi


On 7/10/06, Fernando < [EMAIL PROTECTED]> wrote: 
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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org 
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




-- 
Mit freundlichen Grüßen

Siegfried Puchbauer 

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
  
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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, v2);

This will preserve your function.

regards,

Tobie

On 10 juil. 2006, at 16:03, 
[EMAIL PROTECTED] wrote:



From: "Siegfried Puchbauer" <[EMAIL PROTECTED]>
Subject: Re: [Rails-spinoffs] prototype hash method
To: rails-spinoffs@lists.rubyonrails.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

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 the value is function)

hth

sigi

On 7/10/06, Fernando <[EMAIL PROTECTED]> wrote:


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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs





___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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  = {
   c: 'value for c',
   d: function(){some code...}
   };

var v3 = Object.extend(v1, v2);

This will preserve your function.

regards,

Tobie

On 10 juil. 2006, at 16:03, 
[EMAIL PROTECTED] wrote:



From: "Siegfried Puchbauer" <[EMAIL PROTECTED]>
Subject: Re: [Rails-spinoffs] prototype hash method
To: rails-spinoffs@lists.rubyonrails.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

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 the value is function)

hth

sigi

On 7/10/06, Fernando <[EMAIL PROTECTED]> wrote:


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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs





___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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.extend(v1, v2);

Hope this clarifies a bit.

Regards,

Tobie

On 10 juil. 2006, at 16:15, Tobie Langel wrote:


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, v2);

This will preserve your function.

regards,

Tobie

On 10 juil. 2006, at 16:03, 
[EMAIL PROTECTED] wrote:



From: "Siegfried Puchbauer" <[EMAIL PROTECTED]>
Subject: Re: [Rails-spinoffs] prototype hash method
To: rails-spinoffs@lists.rubyonrails.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

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();
// #b'}>


but v2.d will be ignored (type of the value is function)

hth

sigi

On 7/10/06, Fernando <[EMAIL PROTECTED]> wrote:


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?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs







___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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).
---

Since prototype.js has Object and Hash methods, maybe my question should
have been something like:  "What is the reasoning behind why prototype
offers different properties and methods for Hash and Object types?"

Sam





___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 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).---Since prototype.js has Object and Hash methods, maybe my question shouldhave been something like:  "What is the reasoning behind why prototype
offers different properties and methods for Hash and Object types?"Sam___Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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, the Hash functions do not handle values 
with type function. They still get copied around, but aren't visible from any 
of the hash functions like values() or keys().

My apologies for any confusion I may have caused out there.

Cheers


P.S: If what I've said has confused you, try this example and see for yourself.

var h1 = { a: 1, b: 2 };
var h2 = { c: 3, d: function() { alert('d exists'); } };
var mergedHsh = $H(h1).merge(h2);

mergedHsh.d();
alert(mergedHsh.inspect());

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sam
Sent: Monday, July 10, 2006 10:51 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] prototype hash method


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).
---

Since prototype.js has Object and Hash methods, maybe my question should
have been something like:  "What is the reasoning behind why prototype
offers different properties and methods for Hash and Object types?"

Sam





___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[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 that list.I'll do some pseudo-code for easier reading:   headlinesummary
    problemshaving problems with 
script.aculo.us this is where I'm facing difficulties. I want another table row to appear "onclick", like this: 
  full story here hide me but I don't want it to be visible at all except for when the user actually clicks "problems". I've tried various solutions, but to no avail. 
Perhaps a pair of fresh eyes could shed some light on the situation?-- Mvh,Eskil Kvalnes[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[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
 
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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] Behalf Of Sam
Sent: Monday, July 10, 2006 2:00 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Making HTML display-able on a page


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
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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", like this:
> 
>  
>   full story here hide me
>  
> 
> 
> but I don't want it to be visible at all except for when the user
> actually clicks "problems". I've tried various solutions, but to no avail.
> Perhaps a pair of fresh eyes could shed some light on the situation?

Just add a style="display:none" attribute to it.

-- 
Michael Peters
Developer
Plus Three, LP

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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-container');Oh, nice tip. Thanks. 
> this is where I'm facing difficulties. I want another table row to> appear "onclick", like this:>>  >   full story here > Effect.SlideUp(document.getElementById('info-container'))">hide me>  > >> but I don't want it to be visible at all except for when the user
> actually clicks "problems". I've tried various solutions, but to no avail.> Perhaps a pair of fresh eyes could shed some light on the situation?Just add a style="display:none" attribute to it.
Of course! However, this presented a new problem. Still using SlideDown/Up, but it doesn't "slide"at all. On SlideDown it just appears instantly and on SlideUp is takes 0.5s/1s before it disappears.
No sliding/fading/movement whatsoever. Seems strange to me... I had the desired effect when usingtext
--Michael PetersDeveloperPlus Three, LP___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Mvh,Eskil Kvalnes
[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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: [Rails-spinoffs] 
  Effect.SlideDown/Up() and HTML issues
  On 7/10/06, Michael 
  Peters <[EMAIL PROTECTED]> 
wrote:
  Eskil 
Kvalnes wrote:[snip]> 
>  >   
headlinesummary>  >>  >   
problemshaving> 
problems with script.aculo.us < 
http://script.aculo.us>>  You 
can just make 
  that  Effect.SlideDown('info-container');
  Oh, nice tip. Thanks. 
  > 
this is where I'm facing difficulties. I want another table row to> 
appear "onclick", like this:>>  >   full story 
here hide 
me>  > 
>> but I don't want it to be visible at all 
except for when the user > actually clicks "problems". I've tried 
various solutions, but to no avail.> Perhaps a pair of fresh eyes 
could shed some light on the situation?Just add a 
style="display:none" attribute to it. 
  Of course! However, this presented a new problem. Still using 
  SlideDown/Up, but it doesn't "slide"at all. On SlideDown it just appears 
  instantly and on SlideUp is takes 0.5s/1s before it disappears. No 
  sliding/fading/movement whatsoever. Seems strange to me... I had the desired 
  effect when usingtext
  --Michael 
PetersDeveloperPlus Three, 
LP___Rails-spinoffs 
mailing listRails-spinoffs@lists.rubyonrails.org 
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Mvh,Eskil Kvalnes [EMAIL PROTECTED] 

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 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-container');
  Oh, nice tip. Thanks. 
  > 
this is where I'm facing difficulties. I want another table row to> 
appear "onclick", like this:>>  >   full story 
here > 
Effect.SlideUp(document.getElementById('info-container'))">hide 
me>  > 
>> but I don't want it to be visible at all 
except for when the user > actually clicks "problems". I've tried 
various solutions, but to no avail.> Perhaps a pair of fresh eyes 
could shed some light on the situation?Just add a 
style="display:none" attribute to it. 
  Of course! However, this presented a new problem. Still using 
  SlideDown/Up, but it doesn't "slide"at all. On SlideDown it just appears 
  instantly and on SlideUp is takes 0.5s/1s before it disappears. No 
  sliding/fading/movement whatsoever. Seems strange to me... I had the desired 
  effect when usingtext
  --Michael 
PetersDeveloperPlus Three, 
LP-- Mvh,Eskil Kvalnes [EMAIL PROTECTED]
-- Mvh,Eskil Kvalnes[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 side 
effects, especially in IE.

As per Michael Peters, use DIV's.

-Andrew Martinez

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Michael Peters
Sent: Monday, July 10, 2006 4:18 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues


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

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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/Up to Grow/Shrink. Created a nice effect on the
contents of the table. Thanks a lot for your help and input! :)--Michael Peters
DeveloperPlus Three, LP___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Mvh,Eskil Kvalnes[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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, I'm just saying it doesn't always work or has weird side effects, especially in IE.
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 luxuryof not having to worry about IE at all; it's a private site for me and my friends
and we all use FF. As long as it works there, I don't care ;)-Andrew Martinez
-Original Message-From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]]On Behalf Of Michael PetersSent: Monday, July 10, 2006 4:18 PMTo: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issuesEskil 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 :)--Michael PetersDeveloperPlus Three, LP___Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs___
Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
-- Mvh,Eskil Kvalnes[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 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 side effects, especially in IE. 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 luxuryof not having to worry about IE at all; it's a private site for me and my friends and we all use FF. As long as it works there, I don't care ;)___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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. As long as it works there, I don't
care ;)


OK, that was just mean. "Hi guys! I live in a perfect world! Don't you wish
you could, too!? Nyah nyah!"

;-)

(Just kidding! Sort of. Most of us wish we never had to deal with IE.)
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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
> 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. As long as it works there, I don't
> care ;)

OK, that was just mean. "Hi guys! I live in a perfect world! Don't you wish
you could, too!? Nyah nyah!"

;-)

(Just kidding! Sort of. Most of us wish we never had to deal with IE.)
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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:



Script aculo has a "grow" effect, but can it do the following and if not is
there a prototype.js add-on that will?

I'd like to have an icon in the header / footer of a page which when
clicked, would be the source point for a window to "grow" and expand until
centered in the display.

Can "grow" do this with the right positioning?

Sam


___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[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 
other technique which casual visitors would not stumble 
upon?
 
Sam
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 available?


I've been using a technique where I've had a hidden  (where x = total number of columns). Inside the  I
have a  that is also hidden (display:none), when I start the
effect I show the  and then animate the  inside it. It
worked, but I'm not sure about browser portability the solution didn't
make it out of "idea-stage" (and I don't normally test with IE as I'm
a Mac-bigot).
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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? Oops, maybe you're not making AjaxContra, huh? :-O
On 7/10/06, Sam <[EMAIL PROTECTED]> wrote:







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 
other technique which casual visitors would not stumble 
upon?
 
Sam

___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


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 available workaround to this or a somewhat
> similar> function available?I've been using a technique where I've had a hidden colspan="x"> (where x = total number of columns). Inside the  Ihave a  that is also hidden (display:none), when I start the
effect I show the  and then animate the  inside it. Itworked, but I'm not sure about browser portability the solution didn'tmake it out of "idea-stage" (and I don't normally test with IE as I'm
a Mac-bigot).That is sort of how it is working now, although I had to change from SlideDown/Upto Grow/Shrink for an effect to show. My main goal was to animatethe new table row sliding from underneath the row above.
It seems to me that with your approach the row would just appearand then the effect would apply to the contents of that row.I could probably re-create the effect wanted, to a certain level,by using  and then
use _javascript_ to increment those numbers gradually. But that seems kind of half-assed in my opinion.
___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs-- Mvh,Eskil Kvalnes[EMAIL PROTECTED]
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs