4 ms·
I would have liked it the jQuery API documentation would be closer to the PHP.net documentation. For instance, I want to know the options for $.post - going to
by ecaron 14y ago
I would have liked it the jQuery API documentation would be closer to the PHP.net documentation. For instance, I want to know the options for $.post - going to http://api.jquery.com/post/ http://api.jquery.com/post/ would sure be nice (and even if it didn't exist, it could do a search for "you might have meant...")
For people unfamiliar with PHP.net's configuration, going to php.net/<function or whatever name> will go to the function if its known or search if it isn't (like http://php.net/strapos http://php.net/strapos)
- bmuon 14y agoIt does work like that http://api.jquery.com/addClass http://api.jquery.com/addClass. Wrong URLs could use some work though.
- leviathant 14y agoPerhaps something changed since you posted this, but when I view the documentation, the URLs do appear as you would have liked. Just substitute "$" with "jQuery" Some examples: http://api.jquery.com/jQuery.post/ http://api.jquery.com/jQuery.post/ http://api.jquery.com/remove/ http://api.jquery.com/remove/ http://api.jquery.com/last/ http://api.jquery.com/last/
- mildweed 14y agoAnother feature of php.net I wish this had: a "Related functions" or "See also" section.
- Mahn 14y agoThis would be useful actually. I wrote "if !hasClass addClass, else removeClass" countless times until I figured, hey, maybe jQuery has a toggleClass function, I should look it up. These situations could be avoided if a "related functions" section was there.
- fourstar 14y agoConsider talking to eddiemonge or one of the other team members on freenode about this: Getting involved (http://docs.jquery.com/Getting_Involved http://docs.jquery.com/Getting_Involved): Additionally most of the jQuery core development team can be found in the #jquery-dev IRC channel on irc.freenode.net.
- chrisguitarguy 14y agoHere you go: https://gist.github.com/4477015 https://gist.github.com/4477015 Replaces and error page in WordPress with a search for the request URI. Now we just need someone at jQuery HQ to use it. Still uses WP's built in search functionality, which is less than great.