@# Quotes DB     useful, funny, interesting





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



Comments:

<0> i don't know wtf i was thinking getting an hp external dvd drive...it weighs a ton and ubuntu won't have anything to do with it.
<1> Does JavaScript have ***ociative arrays?
<2> yes, but don't use it. use the object hash table
<1> o rly?
<1> How do I use the object hash table
<2> http://www.andrewdupont.net/2006/05/18/javascript-***ociative-arrays-considered-harmful/
<2> var myhashtable = {a:1,b:2};
<0> bah
<0> who uses Array()
<0> hehe
<1> Err OK
<1> Well how am I going to push values into an object
<1> Only Array has push()
<0> Bilge, I stand corrected :-)
<2> bah, how you can push() key and value pair in Array?



<1> What?
<0> who?
<2> furtive: Starfox is very cool, I just didn't play the jap version much.
<0> they were selling a bunch of DS games at futureshop for $19
<1> I am the nubjub
<1> Can I spam
<1> nifCollapseButtons.push({alt: o.alt.split('|'), title: o.title.split('|')});
<1> alert(nifCollapseButtons[0]["alt"][0]);
<1> That's what I needed in the end
<1> Not a hash table exactly
<1> It's a rollover thing that changes images and stuff
<1> The source is <img src="../../img/news/f_b1a.gif" alt="Collapse|Expand" title="Collapses this news item|Expands this news item" ...
<1> So the alert outputs "Collapse"
<1> Just an attempt to keep text constants in the page source and not in the JS
<3> guys, i cant get an event handler to work with dynamically created elements in ie :(
<2> you need to learn what is Array and what is Object first
<2> read the link I gave u
<1> ...
<1> I did
<2> your code told me you have no clue
<1> Yes I just realised I fail anyway because I was meant to link that data with the object 'o' also
<2> ^voLdo- : how to you attach the event handler?
<1> And I have not
<3> var x = document.createElement("DIV") ........ x.onclick = function() { }
<3> it works with netscape
<1> OK I have all the fixies now
<1> nifCollapseButtons[o] = {alt: o.alt.split('|'), title: o.title.split('|')};
<1> alert(nifCollapseButtons[o]["alt"][0]);
<1> And yes nifCollapseButtons is new Object()
<1> Now do I win it?
<2> ^voLdo-, it work in ie too
<3> really? can you give me your test file?
<3> did you just use the same syntax?
<2> don't have one, but i know it will work for sure
<3> ok can you please look at my code?
<3> preview is here http://210.4.21.239/bart/calendar/
<3> you can look for a line "Prev.onclick" on /calendar.js
<1> ht311: do I win it now?
<2> I don't know what you mean
<2> ^voLdo- , hmm , I will try with a different append order?
<2> append all the element first and attach the event handler after?
<2> i check the element, i saw null in onclick ...
<2> Bilge: ask a proper question, I don't even know what you want now
<1> Have I got it right now
<2> i don't know . you can just test it. what is "o"
<1> It works fin
<1> fine
<2> So
<1> But you are such a one that can just look at the code and tell that it is wrong at a fundamental level
<1> <2> your code told me you have no clue
<1> What does the code tell you now?
<2> oh, it is wrong to use a object o as a key
<1> The object o is an element on the page
<2> it is kind of ok, but not recommended and it leak like hell
<1> Well I have no better way to uniquely identify every element
<1> Unless such thing as an internal ID exists
<2> put an id
<2> it is just sill not to have an id



<2> s/sill/silly
<1> I prefer to not have though I appreciate your input
<2> of course you are feel to bang your head on the wall later on
<1> I am very feel
<1> Je suis trs sentir
<3> ht311, yep, everything is appended first before the event handler
<3> ht311, did you check the link i gave? if yes, with what browser did you get the null onclick?
<2> ie
<2> you attach the Title after the onclick
<2> try the other way
<3> ci.appendChild(Title);
<3> this one?
<3> i have it before the onclcik
<2> can also try give an id to the button, document.getElementById("myNext").onclick = function ... after everything is done
<3> err ill try the other way
<3> yeah, ill think ill do that
<2> cause usally, I use innerHTML all the time
<3> i use innerHTML whenever necessary
<2> I do the oppsite :)
<3> ht311, the id solved it
<2> ic, it is the append order
<3> new prob, im trying to remove some tr's in a table
<3> so im looping and doing TableObject.removeChild(RowObject[i]);
<3> ie then again, says its an invalid argument
<2> hmm, the tr is the child of tbody
<3> argh, why didnt i think of that
<3> what other elements are there?
<2> thead and tfoot is optional
<2> ie always has a tbody even you don't have one
<2> not sure on ff
<3> ff doesnt care about tbody
<3> on my calendar app, i loop from rows 1 to 5 to remove the days and refill them..
<3> so i remove all those rows first
<3> but it just removes the first 3 :()
<3> :((
<3> http://210.4.21.239/bart/calendar/
<2> i think innerHTML will be much faster
<3> click the prev button
<3> ahh..
<3> no nodes
<3> ?
<3> tbodyObject.innerHTML = "" ?
<3> that what you mean?
<2> your rows.lenght changed during your removal
<2> i mean rebuilt the whole table and set the innerHTML to the container after
<3> nice
<3> ive been too addicted to nodes lol
<2> ie don't support to change the table.innerHTML
<3> ah
<3> where do you read about this stuff
<3> i dont suppose ill have you here all day lol
<2> everywhere, I just remember too much stuff
<2> i read the msdn reference in the begining
<2> www.quirksmode.org have some good article on innerHTML
<2> http://www.quirksmode.org/dom/innerhtml.html
<3> nice
<3> innerHTML is fast :)
<2> in IE, table and select don't support innerhtml.
<2> they invented the property but don't have a prefect implementation :)
<3> :(
<2> so you rebuilt the whole table, and just set it to the container's innerHTML after
<3> yep, thats just about it :)
<4> hi all I know el.cl***Name does not work in NN4 but is there another way to get the cl*** for an element (I know it's preverse to try to make nn4 work :) )
<2> yes, you are on you own to find out about that :D
<4> ht311: lol, thanks, thought that might be the case
<3> getElementsByCl***Name
<3> ht311: paying it forward :)
<2> you have a getElementsByCl***Name that work in NN4? LOL
<4> if you do hand it over :)
<3> :D
<3> im sorry i do not know what im talking about.
<4> tdamn .. you had my hopes up
<2> just let it go, don't try to dig it out from the grave
<3> ht311 => http://www.2golive.com/ramon/calendar/ :)


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#linux
emule-linspire
#linuxhelp
#linux
hackinbox
#windows
#php
#linux
#c++
mu maldade



Home  |  disclaimer  |  contact  |  submit quotes