[Proto-Scripty] [script.aculo.us : DND] Wrong draggable position on horizontal scrolling

2009-04-10 Thread E. Nadir
Hi everyone, I'm trying to move a draggable element in an horizontally scrollable div. The issue is that a gap is created between current mouse position and the position of the dragged element during the scroll. The issue is about IE and Firefox. click on the url for an example :

[Proto-Scripty] show hidden div if js is disabled

2009-04-10 Thread swdean
I am quite new to coding and I am trying to show div in case js is disabled the reason is because I set it to display: none any help very much appreciated thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: show hidden div if js is disabled

2009-04-10 Thread Szymon Wilkołazki
swdean wrote: I am quite new to coding and I am trying to show div in case js is disabled the reason is because I set it to display: none You should do it completely otherwise. Show div always, and hide it if javascript is enabled. div class=hideOnLoad /div script type=text/javascript

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread T.J. Crowder
Hi, this.MSOFindForm.getInputs('text').each(function(input) { Event.observe(input, 'keyup', this.Find.bindAsEventListener (this)); }); The above is part of the initialize event for the class MSOFindForm. A few things that may help: bindAsEventListener()

[Proto-Scripty] Re: show hidden div if js is disabled

2009-04-10 Thread RobG
On Apr 10, 11:09 am, swdean magic...@gmail.com wrote: I am quite new to coding and I am trying to show div in case js is disabled the reason is because I set it to display: none Don't do that, consider the noscript element. URL http://www.w3.org/TR/html4/interact/scripts.html#edef-NOSCRIPT

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread Ryan Gahl
Thanks for jumping in TJ, great response! FWIW, I know bindAsEventListener isn't actually legacy - I guess I was just being a bit lazy in my response and was sort of just implying that it probably wasn't needed (I have never had to use it). You certainly have a knack for the more detailed

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread T.J. Crowder
Hey Ryan, Thanks. It was too long, though, really. FWIW, I know bindAsEventListener isn't actually legacy... Yeah, I was thinking about that, and since one of its two main reasons for being is DOM0-style handlers, legacy isn't necessarily the wrong word... :-) BTW, meant to mention: Note,

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread Ryan Gahl
That's not bind(), that's Event.observe(). bind() is general-purpose, knows nothing about events. D'oh! That's an obvious blunder in my reply. Thanks :) Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile:

[Proto-Scripty] Re: show hidden div if js is disabled

2009-04-10 Thread swdean
Hey thank you guys I am gonna do a bit more homework on this Thanks for the tips for now! :) On Apr 10, 2:01 pm, RobG rg...@iinet.net.au wrote: On Apr 10, 11:09 am, swdean magic...@gmail.com wrote: I am quite new to coding and I am trying to show div in case js is disabled the reason is

[Proto-Scripty] Please indicate me what 'preInitCallback' is

2009-04-10 Thread ryan
this is a script from an open source script. there is a preInitCallback defined as boolean(i mean, it's inited as fault), but in the initGrid function, it's working like a function (this.preInitCallback(this);). So is this a special usage of prototype? this code confused me so much, any help will

[Proto-Scripty] Re: show hidden div if js is disabled

2009-04-10 Thread Szymon Wilkołazki
swdean wrote: Hey thank you guys I am gonna do a bit more homework on this Thanks for the tips for now! :) You should read about the techniques of progresive enhancement and unobtrusive javascriot. The first one stays, that a website should be one hundred percent usable without any

[Proto-Scripty] Autocomplete word disappears as soon as it's fully typed

2009-04-10 Thread Robert
I'm using the scriptaculous Autocompleter on our website. As I begin typing in a word, e.g., Science, the word appears at the top of the list as expected. But as soon as I type in the last letter of the word, the word disappears and drops to the bottom of the list. I've looked at other demos

[Proto-Scripty] Element.insert() for white-space

2009-04-10 Thread FigglesKoy
I noticed today that in using Elment.insert() in IE7, that if you just send spaces, they won't show up. So for example: div id=testid/div script $('testid').insert('hi').insert(' ').insert('there'); /script Will give in IE7: hithere In FF3: hi there So, FF3 will insert a single space (for