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 :
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
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
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()
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
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
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,
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:
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
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
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
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
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
13 matches
Mail list logo