Rest assured my branch will definitly bring that – you have to have ids to attach a label to inputs (and you have to have labels!)
2007-08-27 23902, 2007
brianfreud
lol
2007-08-27 23914, 2007
aCiD2
I can't decide which page to work on next
2007-08-27 23940, 2007
brianfreud
hey, one thing I was fighting with yesterday... do you know how to have transparent overlapping <div>s without the top div blocking interaction with the lower divs?
2007-08-27 23910, 2007
brianfreud
I finally ended up just playing with the width so they didn't technically overlap
2007-08-27 23940, 2007
aCiD2
What did the divs contain?
2007-08-27 23944, 2007
aCiD2
as in, where's the interaction?
2007-08-27 23948, 2007
Jugdish
here's something i've never understood...when you view someone else's votes, why does it set all the vote options to their votes? if you just click "Enter votes" you'll vote exactly like them on everything O_o
Jugdish - I looked at that code a while back. It's actually coded to do just that, as it pretends you are that voter to pull up the votes list
2007-08-27 23951, 2007
Jugdish
weird
2007-08-27 23905, 2007
aCiD2
Have we got a bug filed?
2007-08-27 23934, 2007
Jugdish
don't think so
2007-08-27 23936, 2007
aCiD2
lol, that's neat (but in a bad way :P)
2007-08-27 23945, 2007
brianfreud
if voter_id= , it assumes it is you. if voter_id= has a value, it assumes that the voter is you (and thus loads their votes), but then looks at who you really are to see if you've actually voted
2007-08-27 23901, 2007
aCiD2 goes to look into making a new UserPreference
2007-08-27 23902, 2007
brianfreud
comes in handy sometimes :)
2007-08-27 23936, 2007
brianfreud
would actually be nice if you could go further, say, where voter_id=foo and voter_id-bar both voted yes or both voted no
2007-08-27 23949, 2007
brianfreud
hmmm, ok, "document.getElementsByTagName("input").filter is not a function"
2007-08-27 23913, 2007
brianfreud
oh... might help if I aimed at the iframe...
2007-08-27 23932, 2007
Jugdish
this whole "taxonomy" feature is going to add a lot of confusion. everytime someone says "tag" we'll have to clarify whether we mean a "tag" in the taxonomy sense or a "tag" as in "tagging my mp3 files"
2007-08-27 23902, 2007
brianfreud
I think we'll have to, at some point, specify exactly what each term means, so we're clear in what we're talking about
2007-08-27 23923, 2007
brianfreud
"album" for example, has at least 3 different uses in three different levels atm
2007-08-27 23939, 2007
Jugdish
heh
2007-08-27 23959, 2007
aCiD2
I always try to use the term "release"
2007-08-27 23903, 2007
Jugdish
the term "release" gets especially confusing when you start looking at the server code
2007-08-27 23915, 2007
brianfreud
hmmm, still having problems here acid...
2007-08-27 23928, 2007
brianfreud
"frames[0].document.getElementsByTagName("input").filter is not a function"
2007-08-27 23931, 2007
Jugdish
because what we call a "release event" is called a "release" in the server code, and what we call a "release" is called "album"
2007-08-27 23950, 2007
aCiD2
brianfreud: browser?
2007-08-27 23953, 2007
brianfreud
FF
2007-08-27 23956, 2007
aCiD2
version?
2007-08-27 23900, 2007
brianfreud
2.0.0.6
2007-08-27 23902, 2007
aCiD2
hmm
2007-08-27 23910, 2007
aCiD2
full line?
2007-08-27 23913, 2007
brianfreud
should be Gecko 1.6 compliant, right?
2007-08-27 23923, 2007
brianfreud
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
2007-08-27 23948, 2007
aCiD2
I get filter is not a function too
2007-08-27 23950, 2007
aCiD2
hmm
2007-08-27 23906, 2007
Jugdish has never heard of .filter, but that doesn't really mean anything :P
2007-08-27 23923, 2007
brianfreud
Implemented in: JavaScript 1.6 (Gecko 1.8b2 and later)
2007-08-27 23930, 2007
aCiD2
Seems getElementsByTagName dosen't return an actual array
getElementsByTagName returns an element collection or something
2007-08-27 23901, 2007
aCiD2
a "live NodeList"
2007-08-27 23906, 2007
Jugdish
an Element[]
2007-08-27 23919, 2007
aCiD2
"elements is a live NodeList of found elements in the order they appear in the tree."
2007-08-27 23949, 2007
Jugdish
The NodeList interface defines a read-only, ordered list (i.e., an array) of Node objects. The length property specifies how many nodes are in the list, and the item( ) method allows you to obtain the node at a specified position in the list. The elements of a NodeList are always valid Node objects: NodeLists never contain null elements.
2007-08-27 23938, 2007
aCiD2
Yea, but it's not actually an array, which sucks :P
2007-08-27 23901, 2007
aCiD2
guess you'll have to do a crappy procedural foreach if on it Brian :(
2007-08-27 23909, 2007
aCiD2
or convert it to an array
2007-08-27 23934, 2007
brianfreud tries to figure out how that would be done :P
2007-08-27 23956, 2007
aCiD2
I'd do this:
2007-08-27 23956, 2007
brianfreud
until this week, my javascript was in the x=y+z level... :P
2007-08-27 23914, 2007
aCiD2
var inputOriginal = document.getElementByTagName('input');
2007-08-27 23920, 2007
aCiD2
var inputNew = [];
2007-08-27 23907, 2007
aCiD2
for(var i = 0; i <= inputOriginal.length; i++) { if(inputNew.name.matches(/^labelname/) { inputNew.push(inputOriginal[i]); }}
2007-08-27 23911, 2007
aCiD2
I think that should work
2007-08-27 23917, 2007
brianfreud
I think I get i, up until the push, let me see if it works...
2007-08-27 23939, 2007
aCiD2
(This is why I use mootools and hate straight javascript. "Oh yea, this is ALMOST an array, buttttt you can't do this, this or this. Oh yea, and it doesn't work in these browsers UNLESS you do this and this")
2007-08-27 23956, 2007
aCiD2
push adds an item to the end of an array
2007-08-27 23915, 2007
aCiD2
so you're basically creating a new array, with only inputs that begin with "labelname" in their name attribute
2007-08-27 23941, 2007
brianfreud
so the result is then that inputOriginal becomes an array of objects returned from the loop?
2007-08-27 23907, 2007
aCiD2
inputOriginal is all the <input> fields
2007-08-27 23919, 2007
aCiD2
inputNew will be all the <input name="labelname..."> fields
2007-08-27 23907, 2007
brianfreud
oh, I see, you're copying the value of inputOriginal[i] into inputNew[inputNew.length++]
2007-08-27 23926, 2007
aCiD2
yea
2007-08-27 23930, 2007
brianfreud
got it
2007-08-27 23903, 2007
brianfreud
how is the matches working though? if inputNew is a new array, won't inputNew.name be null?
2007-08-27 23926, 2007
aCiD2
whoops, typo :P
2007-08-27 23934, 2007
aCiD2
That should be if(inputOriginal[i].name.matches
2007-08-27 23937, 2007
brianfreud
lol, ok
2007-08-27 23955, 2007
stochasticism has quit
2007-08-27 23945, 2007
aCiD2
hmm
2007-08-27 23955, 2007
aCiD2 wonders why his user preference doesn't set correctly
2007-08-27 23933, 2007
brianfreud
hmm, slowly getting there... inputOriginal.name has no properties... :P
2007-08-27 23922, 2007
aCiD2
inputOriginal[i]?
2007-08-27 23943, 2007
brianfreud
ah
2007-08-27 23953, 2007
aCiD2
that working?
2007-08-27 23923, 2007
brianfreud
no, it doesn't like the .matches() - trying it a little differently...
2007-08-27 23938, 2007
cooperaa joined the channel
2007-08-27 23944, 2007
brianfreud
hmmm "inputOriginal[i] has no properties" in for(var i = 0; i <= inputOriginal.length; i++) { if(/^labelname/.test(inputOriginal[i].name)) {
2007-08-27 23927, 2007
brianfreud
and inputOriginal.length = 32, so it definately is finding the <input>s...
was there already some discussion wether extra title information "instrumental" should be included in the track title, even if there seem to be no non-instrumental version?