[Rails-spinoffs] Clicking a Draggable

2006-02-03 Thread Douglas Livingstone
Is there a standard way to catch single click on Draggable divs? Ideally I'd be able to receive an x,y position of a click on a div (I'm thinking onmouseup) when the map has not been dragged, but when the map is dragged, I don't receive (or can easily ignore) an onclick event. I this something I

Re: [Rails-spinoffs] Rich Text Editor

2006-02-03 Thread Roberto Saccon
No, I just played a bit with the existing code and tried to understand what it does. But if I manage to add something to it,  I will post it here .. On 2/3/06, Jerod Venema <[EMAIL PROTECTED]> wrote: You have anything started? I'll take a shot at adding some of the basics...-JerodOn 2/3/06, Rober

Re: [Rails-spinoffs] Rich Text Editor

2006-02-03 Thread Jerod Venema
You have anything started? I'll take a shot at adding some of the basics...-JerodOn 2/3/06, Roberto Saccon < [EMAIL PROTECTED]> wrote:I was experimenting with that  Rich Text Editor, It worked reasonably well on those platforms I tested, but it had some features missing and asintermediates solutio

RE: [Rails-spinoffs] overloading dragdrop.js

2006-02-03 Thread Ryan Gahl
You're welcome! I've never seen a lick of Ruby, other than Why's Poignant Guide (love the cartoon foxes). I'm using proto and scriptaculous in a .NET environment. Goes to show you how versatile these scripts are. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beha

RE: [Rails-spinoffs] overloading dragdrop.js

2006-02-03 Thread Jason Kunesh
Thanks, Ryan. I've learned more about .js with script.aculo.us and Rails from reading this mailing list than anything. Thanks again! --- Ryan Gahl <[EMAIL PROTECTED]> wrote: > Override endeffect of the draggable when you create > it... > > new Draggable(element, {endeffect: yourFunction}); >

RE: [Rails-spinoffs] overloading dragdrop.js

2006-02-03 Thread Ryan Gahl
Override endeffect of the draggable when you create it... new Draggable(element, {endeffect: yourFunction}); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Kunesh Sent: Friday, February 03, 2006 5:06 PM To: Rails-spinoffs@lists.rubyonrails.org Sub

[Rails-spinoffs] overloading dragdrop.js

2006-02-03 Thread Jason Kunesh
Hi everybody- First time poster, please be gentle. I have written a little rails app where you can create divs and move them around via Thomas' wonderful dragdrop.js. I would like to be able to fire an AJAX event to update the top and left of the dragged object upon release. I see many AJAX link_

Re: [Rails-spinoffs] help with syntax

2006-02-03 Thread Deco Rior
If I drop an image onto a textarea is there any easy way to determine the text position that the image was dropped on? Deco ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinof

Re: [Rails-spinoffs] Anonymous function variable scope issue

2006-02-03 Thread Greg Militello
Greg, Wow.  Thanks  there is a lot to read in there  I'll try and look into this in a bit.  But it looks like you may have solve my issues.  Woo hoo. You guys all rock, BTW.  I signed up for this list and I keep gleaming more and more.  _javascript_ OO is daunting at first, but it helps kno

RE: [Rails-spinoffs] Anonymous function variable scope issue

2006-02-03 Thread Gregory Hill
Well, try this:   objAlertOverlay. () {eval ("new "+this.options.outEffect+ " ('"+ this.options.idPrefix+"'+ 'AlertOverlay');"); return false;}.bind(this); That should bind your function to the ‘this’ object, so you can then reference any values from ‘this’. As for avoiding eval, you can

RE: [Rails-spinoffs] help with syntax

2006-02-03 Thread Louis Walch
thanks Ryan!! > I guess the first step is reading up on OOP in javascript... > > http://www.webreference.com/js/column79/ > http://www.codeproject.com/aspnet/JsOOP1.asp > > Then, check out the definitive prototype.js guide... > > http://www.sergiopereira.com/articles/prototype.js.html > > > > > -

RE: [Rails-spinoffs] help with syntax

2006-02-03 Thread Ryan Gahl
I guess the first step is reading up on OOP in javascript... http://www.webreference.com/js/column79/ http://www.codeproject.com/aspnet/JsOOP1.asp Then, check out the definitive prototype.js guide... http://www.sergiopereira.com/articles/prototype.js.html -Original Message- From: [EM

[Rails-spinoffs] help with syntax

2006-02-03 Thread Louis Walch
im not a javascript programmer... so be nice. scriptaclous uses a differnt format for writing functions and code then i am used to. are there books or tutorials for helping a beginner understand how to write like this and what everything is? that said... i was readding this webpage: http://partic

Re: [Rails-spinoffs] Anonymous function variable scope issue

2006-02-03 Thread Greg Militello
Ryan, I don't expect an answer, I just thought I'd ask. ;)  If you get time, I'll take whatever insight you can give.  As far as the speed issue, I have been thinking about turning the Effects off by default as well as they are not really needed.   eval() is always my enemy.  But to be honest, I am

RE: [Rails-spinoffs] autocomplete on safari = focus end of line

2006-02-03 Thread Louis Walch
i wish but i work in a mac friendly office, and firefox on mac is not that hot. > "easy" remedy? Don't worry about Safari ;-) > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Louis > Walch > Sent: Friday, February 03, 2006 1:45 PM > To: rails-s

RE: [Rails-spinoffs] autocomplete on safari = focus end of line

2006-02-03 Thread Ryan Gahl
"easy" remedy? Don't worry about Safari ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Louis Walch Sent: Friday, February 03, 2006 1:45 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] autocomplete on safari = focus end of line i

[Rails-spinoffs] autocomplete on safari = focus end of line

2006-02-03 Thread Louis Walch
i have an autocomplete set up on a textarea. it works fine, but in safari, when you select a word from the dropdown, it does not focus the cursor at the end of the line. can you think of an easy remedy? thanks. ___ Rails-spinoffs mailing list Rails-spinof

Re: [Rails-spinoffs] Rich Text Editor

2006-02-03 Thread Roberto Saccon
I was experimenting with that  Rich Text Editor, It worked reasonably well on those platforms I tested, but it had some features missing and asintermediates solution I integrated TinyMCE into the apps I am developing. But I am still interested in a prototype bases simple Rich Text Editor, and if n

RE: [Rails-spinoffs] Anonymous function variable scope issue

2006-02-03 Thread Ryan Gahl
I apologize for this incomplete response, as I don’t have time right now to look at the script in whole, but I did check out your page. In FF 1.5 your alerts are VERY slow. Based only on your email, I’m assuming that is due in large part to your usage of the eval() statement, and that you s

[Rails-spinoffs] Anonymous function variable scope issue

2006-02-03 Thread Greg Militello
Hey all, I joined this list mostly because I don't see too much in the OO _javascript_ arena, and I have q's (of course).I have a little pet project I am working on, you can see it here:http://thinkof.net/notify/index.html I have a class Notify.Alert() that takes some options and displays a div ale

RE: [Rails-spinoffs] Scriptaculous: Newbie question - Effect.fade

2006-02-03 Thread Gregory Hill
You could do something like: new Effect.Fade(element, { to: 0.1, afterFinish: function () { Element.setOpacity(element, 0) }); That way it'll fade until it's almost gone, then disappear without actually dropping the element off the page. Greg > -Original Message- > From: [EMAIL PROTECTE

Re: [Rails-spinoffs] Scriptaculous: Newbie question - Effect.fade

2006-02-03 Thread Benjamin Mack
Hey Mike, maybe... this is a CSS question, and if I'm right, you can use several options: either define every div inside another div with a certain width / height that does not go away (or use table cells - the old way ;-)). ... like that and it should work. Also you can po

[Rails-spinoffs] Scriptaculous: Newbie question - Effect.fade

2006-02-03 Thread Mike Thirlwell (CBJ Digital Ltd)
Hi there, Is it possible to do an effect.fade without removing the hidden document from the flow when in becomes invisible? I have a line of images (initially all invisible) [] [] [] [] [] And a list of links - link 1 - link 2 - link 3 - link 4 - link 5 And what I want to happen is to have

[Rails-spinoffs] Rich Text Editor

2006-02-03 Thread Jerod Venema
I know I saw something a while back about a simple Rich Text Editor; did that go anywhere? I'd love to see something as simple as the one google uses in gmail. If not, I'll get started on it :-D.-Jerod ___ Rails-spinoffs mailing list Rails-spinoffs@lists.

[Rails-spinoffs] Contribute: Center extension to Prototype's Position object

2006-02-03 Thread Siegfried Puchbauer
If anyone is intrested, i was hardly missing such a feature in prototype (for displaying well formatted error dialogs and things like that):    Position.center = function(element){         var options = Object.extend({             zIndex: 999,            update: false         }, arguments[1] || {})

Re: [Rails-spinoffs] this pointer in Event.observe function

2006-02-03 Thread Dirk Eschler
Am Freitag, 3. Februar 2006 10:11 schrieb Thomas Fuchs: > Or use: > > Element.setStyle(Event.element(evt), { border: '...' }); > > (especially useful if you need to set more than one style). > > -Thomas Dicovering a new useful feature every day. :) Thanks Thomas! -- Dirk Eschler

Re: [Rails-spinoffs] Stupid drag/drop add on

2006-02-03 Thread Thomas Fuchs
You can use the snap option with a function for this (and even more complicated variants),see the last example in:test/functional/dragdrop6_test.html(comes with the script.aculo.us download).-ThomasAm 03.02.2006 um 02:45 schrieb Manuele: To constraint the movement to a specific area, I added the f

Re: [Rails-spinoffs] this pointer in Event.observe function

2006-02-03 Thread Thomas Fuchs
Or use:Element.setStyle(Event.element(evt), { border: '...' });(especially useful if you need to set more than one style).-ThomasAm 02.02.2006 um 16:50 schrieb Siegfried Puchbauer:Event.element(evt).style.border = '...' does the trick for youbrgds sigi2006/2/2, Dirk Eschler <[EMAIL PROTECTED]>: Am