-
18 Oct 2009 10:04 AM #1
API Documentation on local computer
API Documentation on local computer
I've been trying to access the API Docs bundled with the Extjs 3.0 download (under docs directory). It seems like opening the "index.html" should launch the API doc viewer, but it just hangs on "Loading". The index.html under the examples directory works OK.
Anything I can fix?
-
18 Oct 2009 1:27 PM #2
The docs use Ajax to fetch each page of documentation, which will not work from the file system. This means you must open the docs from a web server, local or otherwise.
-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
18 Oct 2009 2:40 PM #3
Thanks
I just had a profound DUH moment.
-
19 Oct 2009 7:33 AM #4
I happen to be a Perl hound, and I have Strawberry Perl on my Windows box which allows me to create a nice web-server with just this: (all from CPAN stock examples)
Note that I don't intend for this to become a "Perl thread" or a "Perl support thread." Merely to say that the task of creating a stand-alone server for your own personal box is a trivially easy thing to do in any number of readily available languages. You do have to be pointing your web-browser at some kind of locally-running server process which knows how to serve-up static files.Code:# # Perl makes some things extraordinarily simple. One of those "simple things" # is a stand-alone web server that runs in the palm of your hand. Or, in the Palm in your hand. # package MyServer; use base qw(HTTP::Server::Simple::CGI); use HTTP::Server::Simple::Static; # Automagically assume that the files to be served are in the same directory # we are ... no matter where "we" are. use FindBin qw($Bin); our $webroot = $Bin; # The request-handler, which we must (of course) define. sub handle_request { my ( $self, $cgi ) = @_; do { print "HTTP/1.1 404 Not Found\015\012"; print $cgi->header, $cgi->start_html('Not found'), $cgi->h1('404 - File Not Found'), 'The requested file could not be found on the local server.<br/>', $cgi->end_html; } unless $self->serve_static( $cgi, $webroot ); } package main; my $server = MyServer->new(); print STDERR "Local server started ...\n"; $server->run();
-
29 Oct 2009 7:27 AM #5
Are there any other documentation formats? E.g. chm or pdf?
I'm a jQuery developer
-
25 Nov 2009 2:30 PM #6
API Documentation on local computer
API Documentation on local computer
1. Download extension from this post
2. Copy localXHR.js inside $ext_directory/docs
3. Open $ext_directory/docs/index.html and insert the following after the line that includes ext-all.js:
4. Clear the cache of your browser (Ctrl-F5).Code:<script type="text/javascript" src="localXHR.js"></script>
5. Enjoy
----
Oooops, didn't notice it was a 3.x thread... I think it only works on 2.x, sorry!Last edited by krause; 25 Nov 2009 at 2:34 PM. Reason: Oooops, didn't notice it was a 3.x thread... I think it only works on 2.x, sorry!


Reply With Quote
