| |
| |
| |
|
Page: 1 2 3
Comments:
<0> like gmail.com <1> onkeyup="functionname();" <2> but if he types fast then it will be called on all those letters <2> im doing an autosuggest script <2> i want to invoke something if there's a slight pause in typing
<0> answers.com has autosuggest script, but unfortunatelly it works only when typing. Does not work what pasting :(( <1> Use a timeout inside the function then. <2> hhhm <3> im trying to detect an event when something is pasted into textarea, for IE onpaste event occurs when the text hasnt been posted yet into the textarea, and onafterpaste doesnt work, any ideas? :S <3> how can i p*** a element reference in setTimeout method? if i do setTimeout("Resize(ta)",50); then it says ta is undefined <3> if i do setTimeout("Resize(" + ta + ")", 50); then it gives object undefined error <3> ta is declared locally within the function where setTimout is being called <1> setTimeout(function() { Resize(ta) }, 50); <3> thx <4> What is an easy way to get the browser window to scroll to the bottom of the page? <4> I know I use scrollTo, but what do I use for the second parameter? <5> any way I could create references to a couple of strings stored in an array? <6> elaborate. <5> var v = ['dsafdsa', 'dsafdsafdsa']; var a = &v[0]; var b = &v[1]; <5> something like that <6> no. <6> why do you need that?
<6> You *may* be able to work your way around it. <5> by creating an object for each of them? <6> no. <5> then? <6> Let me give you an example. <6> Hoooold it. <5> sure <6> function string_ref(array, index) { this.valueOf = function() { return array[index]; } }; var v = ['generic', 'content']; var a = new string_ref(v, 0); var b = new string_ref(v, 1); v[1] = 'foo'; alert(a+b); <5> hmm interesting <5> thank you <6> You'r welcome. <5> what will happen with a = 'sdf'; <6> that will break that analogy <6> you would have to do something like this. <6> function string_ref(array, index) { this.valueOf = function() { return array[index]; }; this.***ign = function(s) { array[index] = s; } }; var a = new string_ref(v, 0); a.***ign('foo'); <5> that's totally cool <5> thank you again <6> you'r still welcome ;) <5> :)
Return to
#javascript or Go to some related
logs:
#linux turksh cats kiss i5tak for many reasons, this queen of france has received a great deal of blame for in #linuxhelp #chatzone irssi Unable to connect server Invalid argument #skype undernet +gay #php #c
|
|