109 karma · joined January 29, 2010
Btw, I was hoping this article was about ternary operator shorthand. (e.g. result = a > b ? x : y;) In that case I would have said HELL YES.
Once I upgraded to 3.6.10 worked awesome.
If it's just you using this, I would say don't give a crap. But if you plan to allow others to use it and it gains a userbase at all you might consider a similar approach for obvious reasons.
Cheers!
Suggestion: It appears that the searches sometimes stacked up in queue if I typed fast. (i.e. if I typed a long sentence quick the results continued to flash different content many times, playing catch-up. Looked through the JS quick and I see you are trying to prevent this with runningRequest1/2 so maybe it's the short delay in the .fadeTo() after the GET callback. Try moving the runningRequest = false into the fadeTo callback.
Also, .fadeTo() has a default queue of it's own. You could also add .stop() like this:
$('#function').html(data).stop().fadeTo('fast',1);
Otherwise, really cool! I use "site:php.net foobar" most of the time but this would be a great little widget.But I'm being facetious. I like to play devil's advocate. :o)
Time and time again at work or on freelance projects, I find myself pulling other people's weight. Now this sounds conceited, but sometimes it's just the truth, and I'm sure you can't have any of that in a start-up, if you want to succeed!