[Proto-Scripty] How to create a gentle image rollover?

2009-05-19 Thread MikeD
Hi there I searched in this group and web in general, but haven't found a solution for this on. Basically, I'd like to create an image rollover, except I'd like the effect to be gradual as opposed to the CSS trick. The only way I can see to accomplish this is to stack 2 images one on top of

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread Alesei Narkevitch
May be have multiple gif images with animations switch (JS) between each other? Whats so not straight forward about layers and opacity with css/js? On Mon, May 18, 2009 at 11:02 PM, MikeD photosforl...@gmail.com wrote: Hi there I searched in this group and web in general, but haven't found

[Proto-Scripty] I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
if (parent) { var subclass = function() { }; subclass.prototype = parent.prototype; klass.prototype = new subclass; parent.subclasses.push(klass); } How to understand these codes ? --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
On 5月19日, 下午6时52分, Eric smcdl6...@gmail.com wrote: if (parent) { var subclass = function() { }; subclass.prototype = parent.prototype; klass.prototype = new subclass; parent.subclasses.push(klass); } How to understand these codes ? If I was the author, I

[Proto-Scripty] Re: Adding properties to native objects

2009-05-19 Thread ColinFine
This is a case when you really truly want just the facilities that Javascript provides (prototypes rather than classes), and using (pretend) classes makes it harder not easier. Date,prototype.isEaster = function() { ... }; etc. Colin --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Tobie Langel
Hi Eric, If I was the author, I will new parent directly and assign it to klass.prototype. That would imply calling the initialize method of the parent class which is something you'd want avoid. So why use usbclass as broker ? subclass is an empty function (parent isn't: it calls

[Proto-Scripty] Re: Auto Submit on AutoComplete Selection Help

2009-05-19 Thread ColinFine
On May 18, 9:19 pm, Scott Z kol...@gmail.com wrote: Can anyone point me in the right direction to making my form submit when a selection is made from the autocomplete suggestions? Thanks! new Ajax.Autocompleter( ... onComplete: function() {form.submit()}, ... ); Where I've written 'form'

[Proto-Scripty] builder does not work

2009-05-19 Thread ioustinos
I have been using scriptaculous in one application of mine. Everything runs smoothly. Then i added the builder.js and changed the inclusion line into this script type=text/javascript src=js/scriptaculous.js? load=effects,dragdrop,controls,builder/script I dont get builder.node to work.I dont

[Proto-Scripty] Re: builder does not work

2009-05-19 Thread Szymon Wilkołazki
ioustinos wrote: I have been using scriptaculous in one application of mine. Everything runs smoothly. Then i added the builder.js and changed the inclusion line into this script type=text/javascript src=js/scriptaculous.js? load=effects,dragdrop,controls,builder/script Just a guess, but

[Proto-Scripty] Re: I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
I had understood it completely. I'm Chinese, sorry for my english. Best Thank you. On 5月19日, 下午7时28分, Tobie Langel tobie.lan...@gmail.com wrote: Hi Eric, If I was the author, I will new parent directly and assign it to klass.prototype. That would imply calling the initialize method of

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread MikeD
Perhaps straightforward is the wrong word...clumsy maybe? Image rollovers are so common, I guess I was hoping for a simpler solution, rather than having to add yet more markup to my layout and wrestle with 100% perfect stacking in all supported browsers. Simple image rollovers can be done with

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread solidhex
You shouldn't have to add too much in the way of markup, just a simple class on the images or the image link would work. You can also add some scriptaculous effects to the CSS similar to this method for some more panache : http://www.alistapart.com/articles/sprites2/ On May 19, 9:14 am, MikeD

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread Alesei Narkevitch
Well you can engage in use of :hover for empty html element, or you could probably have something like this, a href=#spanhome/span/a where span will include valid text which will represent link if css fails to load or search engine will crawl your site. But with css you can push out the text

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread Alesei Narkevitch
good call SOLIDHEX, you ve been added to my list of resources : ) that example i think will fit his need very well. On Tue, May 19, 2009 at 12:34 PM, solidhex patr...@solidhex.com wrote: You shouldn't have to add too much in the way of markup, just a simple class on the images or the image

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread solidhex
Well, i can't take credit for that technique - you can thank Dave Shea and A List Apart :D On May 19, 10:45 am, Alesei Narkevitch gnrlb...@gmail.com wrote: good call SOLIDHEX, you ve been added to my list of resources : ) that example i think will fit his need very well. On Tue, May 19,

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread MikeD
Perfect Solidhex, that's is exactly what I'm looking for! thanks! :) On May 19, 1:45 pm, Alesei Narkevitch gnrlb...@gmail.com wrote: good call SOLIDHEX, you ve been added to my list of resources : ) that example i think will fit his need very well. On Tue, May 19, 2009 at 12:34 PM,

[Proto-Scripty] Re: How to create a gentle image rollover?

2009-05-19 Thread Alesei Narkevitch
LOL i know, i was talking about your blog : ) On Tue, May 19, 2009 at 2:00 PM, solidhex patr...@solidhex.com wrote: Well, i can't take credit for that technique - you can thank Dave Shea and A List Apart :D On May 19, 10:45 am, Alesei Narkevitch gnrlb...@gmail.com wrote: good call

[Proto-Scripty] Re: Mouse coods

2009-05-19 Thread jk
How is that we don't loose context in some of those nested callbacks? Thanks. --jk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Re: Form.Serialize issue in Firefox 3.5

2009-05-19 Thread luellaj99
Doh! Well, as dumb as I'm feeling, I was actually glad to hear it was something so basic and simple. And it's not documented in any of the books I have - they all just have partial examples. It's working like a charm now! Thanks so much for your help. luella

[Proto-Scripty] Re: Adding properties to native objects

2009-05-19 Thread RobG
On May 19, 9:26 pm, ColinFine colin.f...@pace.com wrote: This is a case when you really truly want just the facilities that Javascript provides (prototypes rather than classes), and using (pretend) classes makes it harder not easier. Yes, although some may argue that it is better to create

[Proto-Scripty] Re: Changing href in onclick function

2009-05-19 Thread RobG
On May 15, 6:54 pm, marioosh marioosh@gmail.com wrote: I have a id=ph href=#. I want to do that (sorry for my poor english): When user click ph, i need to set href to some usable address (by sending request Ajax.Request) and fire onclick once again. That seems unnecessarily complex, why

[Proto-Scripty] Re: Adding properties to native objects

2009-05-19 Thread Gabriel Gilini
On Tue, May 19, 2009 at 8:16 PM, RobG rg...@iinet.net.au wrote: On May 19, 9:26 pm, ColinFine colin.f...@pace.com wrote: This is a case when you really truly want just the facilities that Javascript provides (prototypes rather than classes), and using (pretend) classes makes it harder not

[Proto-Scripty] script.aculo.us Draggable event priority

2009-05-19 Thread jk
Is there a way to make any events registered by Draggable have the lowest possible priority? I have tried to execute new Draggable at the last moment, but it still seems to commandeer mousedown event. Thanks. --jk --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Problem with this binding in class function

2009-05-19 Thread Dave L
I am trying to use pre-existing functions in a new prototype class but am having some trouble with binding. When I call a function within a function it says that one of my class variables is undefined. I have defined the class variable correctly I think: var DropDown = Class.create({