@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> you have to manually remove the dom references
<1> how?
<2> set it to null
<1> thanks, another two questions: can I specify a destructor?
<1> so it will remove the references when t leaves the scope?
<2> nope, i hope there is one
<1> hmm
<1> and the 2nd: how do I specify a reference, like THIS IS REFERENCE not a copy
<1> ?
<2> it is always a reference
<0> all non primitives are p***ed by reference
<1> it is a primitive
<1> at least I think so
<0> then it cannot be by ref
<1> hmm
<1> tx



<1> no work-around for this?
<0> work around? you ask as though it's a bad thing
<1> it is not a good thing
<0> why would you want a reference to an integer?
<1> that's for sure
<1> heh, consider this:
<1> scrollTop
<0> an integer
<1> for cross-browser compatibility you have to search for it in more places
<1> now, if you want to set it
<1> you have to search again
<0> what?
<0> whatever book you're reading, burn it
<1> I'm not reading a book
<0> figure of speech
<1> I think you don't follow
<0> not sure why i try to help you
<1> it's a discussion, I'm not asking help right now
<0> but you clearly are in need of it
<1> let's say you want to set the scroll to some value
<1> are you following?
<1> you want to scroll the page to some value
<1> now, to do that, you'll have to look in document.documentElement
<0> wrong
<1> in document.body
<1> wrong?
<0> wrong
<1> where do you have to look then?
<0> scrollTop is a member of the window cl***
<1> unfortunatly it isn't there most of the time
<0> you need to ***ert it
<1> by the way, scrollTop doesn't appear as a property of the window element, not from what w3c is saying about it
<0> and yet, there it is
<0> what's your point?
<1> the point is that a value may not reside in the same place
<1> and a global reference will be really useful
<0> best pick a better example then
<1> when you want to set it
<1> well, you got the point
<0> you're talking about a cross-browser api
<0> setScrollTop
<1> why execute a function every time you have to set something when you could just use the reference
<0> because there is no reference -- have you not been following?
<1> that's the point, now do you see why it's not a good thing that it's missing?
<0> nope
<1> k...
<0> you clearly need a better grasp of the js language if you cannot see why primitives need to p*** be value
<1> why would they have to be p***ed by value? come on, and those references are not eaven real references
<1> are pointers
<1> since you can set them to null after you're done with them
<0> so you'd have 1+1 use references?
<1> 1+1 is a constant
<0> 1 is a primitive
<1> 1 is a constant. x = 1; x is a variable
<0> wrong
<1> x is a primitive type
<1> as in "defined inside the core"
<0> check typeof on both
<1> they're both ints probably
<1> but 1 is a constant
<0> wrong



<2> there is no constant in js, primitive is primitive
<1> so there's no difference between 1 and x?
<1> where var x = 1;
<1> ?
<0> nope
<1> lol
<1> than 1 = 3; should make sens
<1> sense
<0> you can just lol yourself out the door
<0> getting a bit tired of this
<1> well, I think I have a point
<0> nope
<1> k
<3> what is the code to create a new HTML image ?
<3> the line of code
<0> document.appendChild(document.createElement("IMG").src = "foo.gif");
<3> thanks [Torgo] :)
<0> np
<1> can I define custom operators for my objects?
<0> such as?
<1> =
<0> to ***ign an object?
<1> no, the = operator
<0> yes, the ***ignment operator
<1> or any other
<1> something like this
<1> var x = new MyCl***(); x = 4; - and that would be evaluated to x = 4*2; let's say
<1> x being some private member of MyCl***
<1> the second x
<0> nope
<1> k, tx
<1> question: how do I refer to a higher scoper var? function () { this.x = 1; function () { xspace } }
<1> how do I refer to x from xspace?
<1> *scope
<0> should already be in scope
<1> I see, so x = 3; should be ok?
<0> try
<1> I've been forced several times to use this.x;
<1> but I'm in a lower scope and this.x will refer to that scope
<4> hello
<4> if I have a HTML code, with 4 select object with the same name "country", how can I know by javascript, what select object have a ONCHANGE event ????
<5> how do you write " signs to html text with document.write?
<5> ahh- single quotes:-P
<6> Hi, am wondering if anyone can point me in the right direction with a link or some info. Am wanting to have the bullets in my html <ul><li> list be visiable upon mouseOver.
<1> css
<1> look for display property
<7> it's not display
<1> oh, he doesn't want the whole list to be shown
<1> sorry, I haven't understood the question
<6> hmmm, maybe i could use li:hover or something
<7> just the bullets, or the whole list?
<1> list-style I guess
<6> the bullets
<7> liRef.style.listStyleImage = "???
<7> "
<6> so you mouse over and one shows up for the item you moused over, by default you see no bullets
<7> or .listStyleType = "???"
<7> yeah, can probably do it with li:hover
<6> i dunno, ill read up on thoes though
<6> hmmm ok
<7> check that IE supports it too
<6> k, thanx
<1> no
<1> it doesn't
<1> ie supports :hover only for anchors
<7> so you'll have to onmouesover it
<6> li:hover{display: inline;} to show it, and display: block to hide it works
<6> ie...what a pain
<1> lol
<1> no man
<1> display: block; shows it
<1> but as a block element
<1> you need display: none;
<1> that's what I thought first time I saw it too :P that it blocks the displaying :D


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

+Knoppix +install gmake
#linux
phillipiano sex
#windows
#MissKitten
#linuxhelp
mysql console into outfile csv
#windows
lofl
lis ppc instruction



Home  |  disclaimer  |  contact  |  submit quotes