I have an implementation of Resizeable DIVs that is based on
the Draggable code from script.aculo.us. This is working for me, but is
only tested on Firefox 1.0.x and IE 6. On IE, the display isn’t
great at small sizes, and the DIV tends to jiggle.
This can work with the element also b
In the
Element.setOpacity method definition in effects.js, there is a line that sets
the opacity to 0.99 if the requested opacity is 1. This is clearly there
for a reason, but having a very slight transparency actually makes my pages
look bad – images are the worst, but I can see the b
I have a Draggable object that contains a SELECT with some
OPTION tags. When I select one of the OPTION tags, the entire Draggable
acts as though it is being dragged.
There is code in the Draggable object to stop this for
Firefox:
initDrag: function(event) {
if(Event.isLeftC
I have some code that that adds an
Element.replace() method to Prototype. This uses outerHTML if it’s available
and other DOM magic on Firefox.
I’ve sent this to Sam for possible
inclusion in future versions of Prototype.
http://blog.craz8.com/articles/2005/12/15/rails-rjs-template
t out when
I get a chance,
One more thing, it seems
msgHeadEl. Effect.Fade(...);";
doesn't work in firefox, only IE as far as I've tested.
can anyone suggest a solution?
Thanks,
Brian Peiris
On 12/18/05, Tom
Fakes <[EMAIL PROTECTED]>
wrote:
I have some code that th
12/18/05, Tom
Fakes <[EMAIL PROTECTED]>
wrote:
This
should work:
msgHeadEl. {new
Effect.Fade(...);};
From: Brian Peiris [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 18, 2005
1:56 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re:
[Rails-spinoffs] problems
an Peiris
On 12/18/05, Tom
Fakes < [EMAIL PROTECTED]>
wrote:
I'm assuming here that msgHeadEl isn't just the ID of the
element. If it is, then you need to do this:
$('msgHeadEl'). {new
Effect.Fade(...);};
The $() function in Prototype will look up the ID in t
;hello');}; //This doesn't work
at all
//msgHeadEl.onclick = "function() {alert('hello');};" //neither does
this
On 12/18/05, Brian Peiris <[EMAIL PROTECTED]> wrote:
> sorry, I've fixed that already, still doesn't work
>
quot;foo",
newEvent)[0];
//el.onclick = "alert('hello')"; //This works in IE but
not in firefox
el.onclick = function() {alert('hello');}; //This
doesn't work at all
new Insertion.Before("placeholder_event_di
I think I first saw this code on this list, and I think the
Ajax.Responders code is fairly new in Prototype:
Ajax.Responders.register({
onCreate: function() {
if($('busy') && Ajax.activeRequestCount>0)
Effect.Appear('busy',{duration:0.5,queue:'end'});
},
onComplete: function() {
>From a quick look at the source code, it looks like onComplete is only
called when the whole thing is done - in the case of Updater, right
after the update, in the case of PeriodicalUpdater, right after it has
been stopped.
It looks like you need to pass your callback method as an 'insertion'
met
e dispatching of onComplete functions...
Thx,
Nicky
On 21 Dec 2005, at 20:17, Tom Fakes wrote:
>> From a quick look at the source code, it looks like onComplete is
>> only
> called when the whole thing is done - in the case of Updater, right
> after the update, in the case
>From looking at the Prototype code, it looks like any text in the
'X-JSON' header will be eval'd and passed as the second parameter to
your onSuccess handler.
Your handler function could then be (using all the power of Prototype):
var handlerFunc = function(t, json)
{
// Update info container
I tried using Dojo's editor - 0.2.1 - and it crashes my Firefox every
time! I'm currently integrating tinyMCE, and after 60 minutes of work,
I almost have it working with my dynamic elements. tinyMCE is very
large though, but very feature rich.
One thing about the Silk icons - they are .png fil
iday, December 23, 2005 1:54 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Scriptaculous and Prototype based Rich
TextEditor
Hi Tom
I'm just about to start on integrating TinyMCE (which is a great editor)
with scriptaculous, any pointers on what you've learnt w
Check out mine here: http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerod Venema
Sent: Wednesday, January 04, 2006
7:28 AM
To:
Rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs]
Re
:[EMAIL PROTECTED] On Behalf Of Tom
Fakes
Sent: Wednesday, January 04, 2006
3:03 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs]
Resizeable
Check out mine here: http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable
From:
[EMAIL PROTECTED
I have some code replaces an existing HTML element with new HTML. It can be
found here:
http://blog.craz8.com/articles/2005/12/15/rails-rjs-templates-need-better-re
place-semantics
The last chunk of code in that entry is an extension to the Element class
that allows you to say:
Element
the string you pass in.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Fakes
Sent: Saturday, January 07, 2006 4:48 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Replacing an html chunk with a different
htmlchunk
I have som
Extending the draggable code to also do
resize is a tough challenge.
I have a Resizable class here that works
with Draggable (with some caveats): http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behal
How about this:
Some description
Then:
Effect.Slideshow("slideshow", { delay });
This would take all the children of 'slideshow', and hide them all except
the first, and then switching between them as before.
I like
Hill
Sent: Friday, January 13, 2006 1:04 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] anyone interested in an Effect.Slideshow?
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Tom Fakes
> Se
Combining Rails, Scriptaculous, Prototype, Ajax and AHAH! Very Web 2.0 - I
sense a Beta shortly followed by an IPO.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
Hill
Sent: Friday, January 13, 2006 1:13 PM
To: rails-spinoffs@lists.rubyonrails.or
I had to look it up too: http://microformats.org/wiki/rest/ahah
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Friday, January 13, 2006 1:18 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] anyone interested in
Could you set these as options with Appear and Fade as the defaults
{
showeffect: function() { Effect.Appear },
hideeffect: function() { Effect.Fade }
}
That way I can make it looks as screwy as I want!
Check out the Draggable.prototype d
Sweet!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
Hill
Sent: Wednesday, January 25, 2006 8:53 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Slideshow beta
Ok,
I finally got the slideshow code to a state worth s
One way to do this with minimal code at
resize time is to manipulate the style rule for a class that is used by every
image. I haven’t tried this, and this is something I’ve only
read the documentation for:
Set
a class on each image you want to resize together
On
initializ
27 matches
Mail list logo