Re: [Rails-spinoffs] Dropables problem on scroll bars

2006-08-08 Thread Greg Militello
Ryan, If you need incentive, I'd be willing to donate. :) Something that will save me hours is worth something to me.   -GregOn Aug 8, 2006, at 10:16 AM, Ryan Gahl wrote:Mandy, I am so sorry I haven't done anything like that yet. I'll get there. I've just been so busy. One of my big projects is get

Re: [Rails-spinoffs] Dropables problem on scroll bars

2006-08-07 Thread Greg Militello
I am running into the same issue (as apparently most people)...Anyone have a working example of this?  -GregOn Aug 7, 2006, at 12:31 PM, Tom Gregory wrote:I've also done this. (In #1, I meant move the "Draggable" to a different DOM position, not the "Droppable", which is the same intent as Ryan's s

[Rails-spinoffs] Node wrapping, node replacement, magic buttons...

2006-05-05 Thread Greg Militello
Hey all,I was wondering if any of you has done any thing allong the lines of node wrapping?  For example, lets same I have a document containing: My element textAnd I want to wrap myElement with another node like this: My element textThe only solution I found was to do something like this: var myD

Re: [Rails-spinoffs] Drag and drop events. Or: How I learned totakeover the world.

2006-04-06 Thread Greg Militello
Ryan, Thanks, I think that makes a lot more sense to me now... Ian, That's pretty much what I'd like to do... However, most likely I will use my own code. The goal here is not to create a world class chess game, but simply to learn how to use this library. Who knows, maybe I'll m

[Rails-spinoffs] Drag and drop events. Or: How I learned to take over the world.

2006-04-06 Thread Greg Militello
Hey all, First, I just want to say thanks to all of you who read, and email here frequently.  So "Thanks". Second, I have a little pet project.  This one has not timelines, and is mainly meant for my own personal growth and _javascript_ goodness.  It is a drag and drop game, and it may not be 100%

Re: [Rails-spinoffs] droppables

2006-03-29 Thread Greg Militello
lement.parentNode.id); } } ); On Mar 29, 2006, at 3:24 PM, Greg Militello wrote: I am not sure how many of you are using d

[Rails-spinoffs] droppables

2006-03-29 Thread Greg Militello
I am not sure how many of you are using draggables/droppables but I thought I would do some experimentation and try and learn how to use them on my own. Well, I have draggables, and I have droppables. I do have one question for now. The droppable onDrop event seems to pass in 2 objects, the

Re: [Rails-spinoffs] Element.observe () binding

2006-02-10 Thread Greg Militello
guys think?  To much of a hack?  Is there a better way?-GregOn Feb 10, 2006, at 11:10 AM, Greg Militello wrote:Todd, I finally got it working, though IE is a lot slower than Safari, or Firefox. You can check out my code here,:http://thinkof.net/projects/js/highlight/highlight.htmlhttp://thinkof.net/pro

Re: [Rails-spinoffs] Element.observe () binding

2006-02-10 Thread Greg Militello
Todd, I finally got it working, though IE is a lot slower than Safari, or Firefox. You can check out my code here,: http://thinkof.net/projects/js/highlight/highlight.html http://thinkof.net/projects/js/highlight/javascript/highlight.js Or you can download the entire thing to

Re: [Rails-spinoffs] Element.observe () binding

2006-02-09 Thread Greg Militello
I also sent a previous email trying to explain my problem (it has my actual code referenced in it) subject: Re: [Rails-spinoffs] HighlightJS formerly: Element.observe () bindingSorry to keep email the list, I just want to solve this.Thanks all,-GregPS: Night all.On Feb 10, 2006, at 12:13 AM, Greg

Re: [Rails-spinoffs] Element.observe () binding

2006-02-09 Thread Greg Militello
This works: Event.observe(el, 'click', (function() { Element.addClassName(this, 'myClass'); } ));This works, just not the way I want: Event.observe(el, 'click', (function(event) { Element.addClassName(Event.element(event), 'myClass'); } ));However, getting this to work is my issue.  I still ne

Re: [Rails-spinoffs] HighlightJS formerly: Element.observe () binding

2006-02-09 Thread Greg Militello
Todd, I read your email and thought I should get around to posting the project anyway. So here's a link to the project: http://thinkof.net/projects/js/highlight/highlight.html If you open the relevant JS file: http://thinkof.net/projects/js/highlight/javascript/highlight.js You wil

[Rails-spinoffs] Element.observe () binding

2006-02-09 Thread Greg Militello
Hey all, I working on a project, but I am not sure I can do what I want to do.  The following works beautifully:Event.observe(el, 'click', function () { this.className += " myClass"; return false; }); I have also tried doing this:this.varname = 'test';Event.observe(el, 'click', function () { alert

Re: [Rails-spinoffs] each()

2006-02-09 Thread Greg Militello
(node.nodeName + ': ' + node.innerHTML); }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Militello Sent: Thursday, February 09, 2006 2:41 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] each() I have been r

[Rails-spinoffs] each()

2006-02-09 Thread Greg Militello
I have been reading the documentation at: http://www.sergiopereira.com/articles/prototype.js.html One of the examples does this: var someNodeList = $('lstEmployees').getElementsByTagName('option'); var nodes = $A(someNodeList); nodes.each(function(node){ alert(node.nodeName + ': ' + nod

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
eing able to direct browsers to the href value). Is there a way to access the tag of the element that the script is executed from?  (I know I may not always have a parent element, in a tag for instance.Thanks again,-GregOn Feb 7, 2006, at 10:43 AM, Greg Militello wrote:HA! At this point I don

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
HA! At this point I don't see myself not using prototype... It's just so nice. So no worries. -Greg On Feb 7, 2006, at 10:26 AM, Gregory Hill wrote: I never did like the eval () statement in my code. But quite frankly I had never heard of binding a variable to a function the w

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
before? The evals? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Militello Sent: Monday, February 06, 2006 9:14 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Notify JS updates, oh my Hey all, I just wanted to

[Rails-spinoffs] Notify JS updates, oh my

2006-02-06 Thread Greg Militello
Hey all, I just wanted to let you guys know that I updated my notify script. I still need to package it for easy download (next on my task list) but it does what I need it to do. Any thoughts, comments? http://thinkof.net/notify/index.html Also thanks to those of you who helped previous

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

2006-02-03 Thread Greg Militello
d of the element.  It *should* work that way, but I may have just been lucky in my own experiences. I apologize in advance if newlines get removed in this email. I have to use Outlook at work, and it’s retarded. Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Greg Militello S

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

2006-02-03 Thread Greg Militello
, like I said I apologize for not having more of an answer. If I get some time I’ll try to take a gander.  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Greg Militello Sent: Friday, February 03, 2006 12:51 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Ano

[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