News for hackers. Stuff that matters.
Re:JQAPI - Alternative jQuery Documentation by fatbat on Thursday February 23, 2012 @03:34AM (#3624239)
"Just to make it clear, I only coded the navigation and re-styled the documentation."

It is not clear if you are hosting the documentation or not. I ask because I have encountered problems accessing the official jq doc sometimes. Would be nice if this was an updated "mirror". And I definitely like the search better. ;)

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:23AM (#3624992)
Yes, it also functions as a mirror. Even the official @jquery Twitter account referred to it several times when the official docs were down.

Thanks!

Re:JQAPI - Alternative jQuery Documentation by Xion on Thursday February 23, 2012 @03:40AM (#3624257)
Very nice work here! The search is definitely better than in original version, the docs itself are more tidily formatted and easier to read, and the whole website is just much more lightweight than the jquery.com version. I'm pretty certain I'll be using this when looking up jQuery docs now.

I have only one grudge so far: there seems to be no way of generating an URL to search query, as /#p=XXX only works if XXX is part of the API (e.g. jQuery.ajax) rather than arbitrary term (e.g. ajax). Were it corrected, it would be trivial to integrate JQAPI search into web browser, YubNub, shell, etc.

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:32AM (#3625026)
You're right. Search via URL is also on my to-do list.
Re:JQAPI - Alternative jQuery Documentation by canton on Thursday February 23, 2012 @12:19PM (#3625749)
Love better docs! Amusing fail though: impossible to scroll home page on my android device. Must be some kind of JS hook on scrolling that's breaking drag support.
Re:JQAPI - Alternative jQuery Documentation by ars on Thursday February 23, 2012 @04:32AM (#3624350)
Previous discussion on JQAPI: http://news.ycombinator.com/item?id=2611767 (I guess if the submission is old enough it can be repeated?)

This one is good too: http://www.visualjquery.com/ except that it hasn't been updated in ages.

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:27AM (#3625014)
Right, I totally remember that day. It was on the front page. Almost 15.000 hits :)
Re:JQAPI - Alternative jQuery Documentation by yatsyk on Thursday February 23, 2012 @04:26AM (#3624333)
I like http://jqapi.ru because I can search everything with Ctrl/Command-F on one page.
Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:26AM (#3625005)
I also planned to have a generated cheat sheet as a entry point for the new jQAPI.
Re:JQAPI - Alternative jQuery Documentation by ned on Thursday February 23, 2012 @03:36AM (#3624249)
Very nice. Better discoverability than http://dochub.io/ that is search only.
Re:JQAPI - Alternative jQuery Documentation by jablan on Thursday February 23, 2012 @04:13AM (#3624309)
Couple suggestions:

You should make the fact that this is downloadable and suitable for local/offline use more prominent.

I guess lots of people would benefit if you made the downloadable packages dynamic (e.g. "Zip me docs for jQuery vX.Y.Z and jQuery UI vY.Z.X"), similar to what railsapi does.

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:40AM (#3625051)
I planned filter functionality for the different versions of the docs. But I will not provide dynamic packages because I want jQAPI to be only client-side for easy mirroring.

An additional service would be possible thought.

Re:JQAPI - Alternative jQuery Documentation by switz on Thursday February 23, 2012 @03:36AM (#3624245)
I've been really enjoying using http://dochub.io/ recently.
Re:JQAPI - Alternative jQuery Documentation by bwarp on Thursday February 23, 2012 @04:29AM (#3624338)
Here I sit on an 8 core Xeon with 32Gb of RAM and Firefox and it's so slow that it's unusable...

I prefer clean, static documentation (like: http://docs.python.org/)

Re:JQAPI - Alternative jQuery Documentation by ilaksh on Thursday February 23, 2012 @06:58AM (#3624613)
Did you try it on Chrome?

What Firefox addons are you using?

Are you in Windows or Linux or Mac?

Firefox is slow as hell for me on Ubuntu (like a lot of things) but fast on Windows.

Also try turning off adblock and firebug.

Re:JQAPI - Alternative jQuery Documentation by bwarp on Thursday February 23, 2012 @08:05AM (#3624755)
No I will not use Chrome.

Firefox 10.0.2 on Windows 7 X64. Only addon is adblock plus.

Clicking "python (beta)" at the top results in a stop script after about 10 seconds.

Re:JQAPI - Alternative jQuery Documentation by switz on Friday February 24, 2012 @04:20AM (#3628554)
It's slow a bit at first, but if you let it sit for a while and keep it open it's quite smooth and seamless.
Re:JQAPI - Alternative jQuery Documentation by dustinlakin on Thursday February 23, 2012 @03:39AM (#3624254)
Wow this looks amazing too, thanks!
Re:JQAPI - Alternative jQuery Documentation by ranza on Thursday February 23, 2012 @03:52AM (#3624275)
Its a bit heavy but very cool!
Re:JQAPI - Alternative jQuery Documentation by rachelbythebay on Thursday February 23, 2012 @04:40AM (#3624361)
Something is very wrong with the scrolling of this page on iOS. It's like this page is missing the usual inertia which you will find nearly everywhere else.

Please, don't mess with the scrolling.

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:29AM (#3625018)
I didn't mess with the scrolling because I haven't planned to support iOS in the first place. Sooner or later that will be fixed.
Re:JQAPI - Alternative jQuery Documentation by tlianza on Thursday February 23, 2012 @04:01AM (#3624292)
Before a trip I went on a month ago, I grabbed the downloadable html version. It was an absolute lifesaver, and made my plane rides 10x more productive.

Many thanks to those who put it together.

Re:JQAPI - Alternative jQuery Documentation by kamjam on Thursday February 23, 2012 @06:51AM (#3624591)
That's a very good point, I haven't properly used jQuery since 1.4.2 and it would be good to catch up on the new features of the API during "dead time" like this.
Re:JQAPI - Alternative jQuery Documentation by damiongrimfield on Thursday February 23, 2012 @12:48PM (#3625882)
any chance you could avoid using the XHR to load content for the downloadable version?

i get this error in chrome: XMLHttpRequest cannot load file://localhost/Users/damion/Downloads/jqapi-latest/navigation.html. Origin null is not allowed by Access-Control-Allow-Origin.

in the meantime i've been using chrome as my browser, and safari as my dedicated jqapi renderer.

Re:JQAPI - Alternative jQuery Documentation by frederico on Thursday February 23, 2012 @09:30AM (#3625024)
Awesome; if you could add syntax highlighting I think this would be pretty dang perfect. Navigation is much easier.
Re:JQAPI - Alternative jQuery Documentation by VonLipwig on Thursday February 23, 2012 @05:37AM (#3624472)
Looks good and very useful. Any chance you can stop the keyboard popping up on the iPad when you touch the menu?
Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @09:25AM (#3624999)
I'd love to make it iPad compatible with the new version I am (slowly) working on. But there is a good chance I never will own a iPad ;) Have to see if I can co-work with somebody on that.
Re:JQAPI - Alternative jQuery Documentation by jonknee on Thursday February 23, 2012 @10:26AM (#3625227)
Do you have a Mac? You can run the iOS simulator and figure out when it's popping up and roughly what it looks like. In this case the problem is you're setting focus on the search field.

In iOS the keyboard automatically pops up when there is an input field focused. That's also why you need to have a touch event to set focus because it gets annoying having half the screen disappear (so for example when visiting Google the keyboard does not pop up and the search box does not have focus).

Re:JQAPI - Alternative jQuery Documentation by mustardamus on Thursday February 23, 2012 @10:38AM (#3625275)
Yes, I'm on a Mac. Good point with the simulator. Never looked into it though.
Re:JQAPI - Alternative jQuery Documentation by jonknee on Thursday February 23, 2012 @10:46AM (#3625322)
It's an easy change, you just need to move the searchFocus() call to outside of the touch event. This should do the trick:

   setTimeout(searchFocus, 0);
Update: I gave you a pull request on GitHub.