brianfreud: It's not weird, it's typical unixy regex format. Derived from sed or whatever.
2007-08-25 23744, 2007
brianfreud
thanks...
2007-08-25 23749, 2007
canidae
:)
2007-08-25 23703, 2007
brianfreud
why they mix regex and string formats as input... :P
2007-08-25 23741, 2007
canidae
probably because regexp is quite powerful, but i'm sure there's another method that takes two strings instead of regex + string
2007-08-25 23719, 2007
brianfreud
perhaps, though you wouldn't think the default replace method for the string class would use other than string,string
2007-08-25 23734, 2007
srotta
Well, why not.
2007-08-25 23703, 2007
brianfreud
and oddly, it still gives no space to hyphen replacement locally...
2007-08-25 23740, 2007
canidae
sure you did it right? if not you must be using another browser locally or something :p
2007-08-25 23701, 2007
brianfreud
var TestVar = form.inputbox.value.toString(); var catNum = "VSD-"+TestVar; var catNum2 = catNum.replace(/ /g,"-");
2007-08-25 23707, 2007
canidae
if you haven't already, you should get firefox addon "firebug", it'll tell you if your javascript is borked
2007-08-25 23718, 2007
brianfreud
oops, wrong cat (comes from an if)
2007-08-25 23733, 2007
brianfreud
this one: var catNum = "302 066 "+tempTestVar+" 2";
2007-08-25 23754, 2007
canidae
what's "tempTestVar"?
2007-08-25 23701, 2007
canidae
?
2007-08-25 23704, 2007
brianfreud
var tempTestVar = TestVar-6000;
2007-08-25 23715, 2007
canidae
try "alert(tempTestVar);" before that var catNum = "302 066 "+tempTestVar+" 2";
2007-08-25 23726, 2007
brianfreud
so "6202" in the text field, TestVar = 6202, catNum = 302 066 202 2, catNum2 ought to be 302-066-202-2
2007-08-25 23707, 2007
brianfreud
instead I get catNum2 = 302 066 202 2 (so tempTestVar correctly = 202)
2007-08-25 23754, 2007
brianfreud
I can pull it off with an if, just was trying to do it correctly, rather than hacked :P
2007-08-25 23704, 2007
canidae
err... are you doing the replace before or after var catNum = "302 066 "+tempTestVar+" 2";?
2007-08-25 23716, 2007
brianfreud
after
2007-08-25 23741, 2007
SerialNumber^ has quit
2007-08-25 23745, 2007
canidae
so... do a: var catNum = "302 066 "+tempTestVar+" 2"; alert(catNum); var catNum2 = catNum.replace(/ /g,"-"); alert(catNum2);
2007-08-25 23753, 2007
brianfreud
DOH!
2007-08-25 23755, 2007
srotta
And you're sure the browser rereads the JS source?
2007-08-25 23700, 2007
brianfreud is an idiot... goes to hide
2007-08-25 23731, 2007
brianfreud
document.getElementById("statusTime").getElementsByTagName("a")[2].href, not document.getElementById("statusTime").getElementsByTagName("a")[0].href :D
2007-08-25 23747, 2007
brianfreud
the var calculated correctly... I just assigned it to the wrong anchor :D
2007-08-25 23722, 2007
canidae kicks id3v2 repeatedly
2007-08-25 23751, 2007
copper calls the cops
2007-08-25 23734, 2007
copper
Until they get here I'm gonna film the whole scene with my cameraphone and I'll up it on the interwebs
2007-08-25 23706, 2007
aCiD2 joined the channel
2007-08-25 23718, 2007
Amblin- joined the channel
2007-08-25 23734, 2007
canidae
what the hell is the idea by limiting the tag to only have 1 TALB frame, one TIT2 frame, etc?
2007-08-25 23708, 2007
copper
Why do you want more than one?
2007-08-25 23735, 2007
canidae
because it's quite common that one track got more than one artist
2007-08-25 23752, 2007
copper
those are title frames
2007-08-25 23716, 2007
canidae
album and title, yes
2007-08-25 23722, 2007
canidae
but also TPE1 is limited to 1 frame
2007-08-25 23744, 2007
canidae
TXXX is the exception, but you can't have multiple "TXXX:ARTIST" frames, for example
2007-08-25 23700, 2007
copper
because TPE1 is the main artist
2007-08-25 23704, 2007
canidae
you'd have to make it "TXXX:ARTIST", "TXXX:ARTIST2", "TXXX:ARTIST3", etc
2007-08-25 23723, 2007
copper
even if you have a collaboration, TPE1 refers to the artist whose album the track is on, I assume
2007-08-25 23741, 2007
canidae
4.2.2 TPE4 Interpreted, remixed, or otherwise modified by
2007-08-25 23749, 2007
srotta
canidae: But you can have multiple values in one frame?
2007-08-25 23750, 2007
canidae
you can quite fine have more than 1 "lead performer"
2007-08-25 23753, 2007
canidae
no
2007-08-25 23758, 2007
canidae
only 1 value
2007-08-25 23728, 2007
srotta
canidae: No, multiple values, separated by null.
2007-08-25 23742, 2007
brianfreud
I thought that was one change from v2.3 to 2.4, allowing multiple values in those fields?
2007-08-25 23743, 2007
canidae looks in the document for any evidence of that...
2007-08-25 23717, 2007
copper
"There may only be one text information frame of its kind in an tag. All text information frames supports multiple strings, stored as a null separated list, where null is reperesented by the termination code for the charater encoding.