Safari won't even start, half the time, when I try, using wine. IE6 is slow as hell, compared to any non-wine browser, and IE7 using IEs4Linux+wine, won't start at all.
FauxFaux
I've heard linux fanboys say that, gtk is terrible^Hy friendly to accessibility and pretty fonts and..
brianfreud
maybe the JS itself is faster, but what good is that if the browser is so much slower?
pronik
a russian saying goes "I'm selling it for what I bought it for" ;)
works without any changes to the search server, for the moment - wraps in what it needs to still work :)
ruaok
sigh.
brianfreud
?
ruaok thinks we could've handled it more easily working together at a later point in time.
ruaok
but I guess it HAD to get done now.
brianfreud
oh, the js code is quite easy to change, later - it's a matter of only about 5 lines for the wrapper
pronik
brianfreud: it looks weird currently, since the sort marker is too close to the next column. maybe put it to the left?
brianfreud
when we actually change things, later, I can wrap in real sorting, outside of pagination
pronik: if I put it there, it gets stuck on top of the text
pronik
weird
brianfreud
background-image :P
ruaok has quit
ruaok joined the channel
Muz
I AM. THE SCATMAN.
navap
beee bap bap bada bop, bee bap bap bada bop
Muz
FAUX IS BAD GIRL.
navap sings along, beee bap bap bada bop, bee bap bap bada bop
navap
brianfreud: There is "document.getElementById", but what if the the elements only have a value set, and no id? Anything I can do, or do I have to add Ids?
brianfreud
what element are you trying to get to?
navap
Its in a select box
"if (document.getElementById('1').selected) { .. }" but as I said, the select box only has values set, no ids.
brianfreud
on the tt site?
normally you have to walk down to it from the form
ruaok
on git: if i started a git rebase and things got fuxxored up, how can I start over?
pronik
git rebase --abort?
brianfreud
think it's git reset --hard
pronik
that's for merges I thought...
brianfreud: I'd like a favour from you ;)
ruaok
--abort worked. thanks
brianfreud
sure?
ruaok
yep
brianfreud
sorry, lol, meant pronik
pronik
since you are in js land anyway: how difficult would it be to implement a button which would call a server-side script with current URI, selected text and possibly dom path to the start of the selected text as parameters?
brianfreud
something like on click, POST url=http://foo&text=I am highlighted&dompath=this ?
why would you want to do it?
pronik
yes, exactly
I wish to have a "this translation is wrong" feedback from users or fellow developers/i18nizers
well, first, I would attach it to the right click menu, not just a regular left click
then I'd have to make sure all text was in <span>s
pronik
I'd like to have a button near uv's "feedback" or something like that
why the spans?
dull joined the channel
dull has left the channel
brianfreud
then I'd just (semi-pseudocode) $("span").bind("rightclick", function() { $.post("foo.url", { wrongtext: $(this).text() }, function() { alert("Thank you, this text has been reported"); }, text);
wrapping the text in a span just gives you a nice local element to both bind to and to extract .text() from
navap
What kind of javascript would let me clear a select form of any user selected values?
brianfreud
how about just using a reset button?
navap
That would reset the entire form thougu right?
brianfreud
yes
navap
Don't want that :p
Just the one form element
brianfreud
you just want to unset whatever is set in the option?
pronik
brianfreud: yeah, but I'd like it to work for the whole page, so binding it to some elements is not going to work
event bubbling: if I bind select() on <html>, will each select bubble to the top?
brianfreud
pronik: $("span").each(function() { do foo }); would attach that onclick to every single span on the page
navap
brianfreud: http://xabbu.net/mb/ar-filter.htm If you choose 1, a second select box pops up. But if the user goes back to 0, then the second select box disapears..but its value still remains and gets passed when they click submit.
I need the value to clear if/when the usur chooses 0.