@eyedeekay
+R4SAS
+dr|z3d
+not_bob_afk
+orignal
+postman
+qend-irc2p
+sourceress
Arch
Birdy
Danny
Irc2PGuest30010
Irc2PGuest36077
Irc2PGuest49364
Irc2PGuest51117
Irc2PGuest6564
Irc2PGuest65656
Irc2PGuest67278
Irc2PGuest74235
Irc2PGuest83482
MatrixBot
Onn4l7h
Over
Sleepy
Teeed
Yotsu
_bob_
aargh3
ac9f
acetone_
ahiru
anontor
b3t4f4c3__
cims
dr4wd3_
duanin2
eche|off
f00b4r
hababam_
hagen_
leopold
makoto
marek
marek22k
n2
nilbog
noidea
nyaa2pguy
o3d3_
poriori
profetikla
r00tobo
rapidash
solidx66
stormycloud[m]
test7363673
uop23ip
urist_
user_
w8rabbit
zelgomer
zzz
zzz
ok I banged out a search backend in 10 minutes, tell me where the search box should go
dr|z3d
either above the main torrent table, zzz, or in the navigation bar.
zzz
maybe upper right in line with the header?
dr|z3d
the header being the nav bar?
dr|z3d
question: is the search going to be a single field option without any checkbox or other modifiers?
dr|z3d
if you're intending to implement advanced features, you know, like start - end date fields/dropdowns, or whatever, or search based on status.. then a separate panel is probably better.
zzz
notbob said keep it simple
dr|z3d
ok
dr|z3d
well, try the nav bar first. you can style the search so that it blends in rather than looks like an input box slap bang in the nav.
dr|z3d
if you make it a separate method, then you can insert it wherever you like
dr|z3d
(without having to mess around with the markup)
dr|z3d
public string getSnarkSearch() {..} or whatever
zzz
and from yesterday:
zzz
<zzz> ok plus standalone, a little janky but not bad dr|z3d
zzz
<zzz> why in the world are you doing a XHR for all.css every 5 sec?
zzz
right now it's just ?s=foo
dr|z3d
xhr for the css?
zzz
yes
dr|z3d
you'll have to remind me. where am I doing that?
dr|z3d
oh, all.css
zzz
open inspector
zzz
I forget what js it was coming from
dr|z3d
that'll be torrentDisplay.js
zzz
yeah line 121
zzz
fugly
dr|z3d
bah, behave.
dr|z3d
you're right though, for that specific filter ie none it doesn't need to pull all.css
zzz
should be a way to get the cached resource or something if you really need it
dr|z3d
for any other filter, it does.
dr|z3d
or maybe not. been a while since I had a proper look at that. the filter css ensures we hide the relevant trs.
dr|z3d
all.css is 571b total as transferred, so no biggy. but yeah, I'm tending towards not pulling anything other than the html in ajax requests, generally speaking.
dr|z3d
maybe I'll optimize that and have the js inject the css into <head> instead. dunno. thanks for bringing it to my attention.
zzz
yeah, obviously harmless, but funky
zzz
ok lets see how bad this looks:
zzz
out.write("<form action=\"" + _contextPath + "\" method=\"GET\">" +
zzz
"<input type=\"text\" name=\"s\" size=\"20\" class=\"search snarkNav\">" +
zzz
"</form>");
dr|z3d
I'd suggest you want a button there. that's the visual cue. then you can hide the actual input until mouseover.
dr|z3d
a button being an icon instead of the standard styled square button.
zzz
yeah its funky, speaking of
dr|z3d
:)
dr|z3d
when you say funky I think of Miles Davis or James Brown. more the latter.
dr|z3d
anyways, re i2p+ snark, the filter bar should give you some idea of a query param based alternative.
zzz
did we decide we should AND or OR multiple search terms?