1. #1
    Ext User
    Join Date
    Aug 2008
    Location
    Silicon Valley
    Posts
    28
    Vote Rating
    0
    DocSavage is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Aug 2008
    Location
    Silicon Valley
    Posts
    28
    Vote Rating
    0
    DocSavage is on a distinguished road

      0  

    Default


    Thanks I just had a profound DUH moment.

  4. #4
    Ext User
    Join Date
    Aug 2009
    Posts
    588
    Vote Rating
    1
    Mike Robinson is on a distinguished road

      0  

    Default


    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)
    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();
    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.

  5. #5
    Ext User Snowcore's Avatar
    Join Date
    Oct 2009
    Posts
    9
    Vote Rating
    0
    Snowcore is on a distinguished road

      0  

    Default


    Are there any other documentation formats? E.g. chm or pdf?

  6. #6
    Sencha User krause's Avatar
    Join Date
    Jun 2008
    Posts
    53
    Vote Rating
    0
    krause is on a distinguished road

      0  

    Lightbulb 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:
    Code:
    <script type="text/javascript" src="localXHR.js"></script>
    4. Clear the cache of your browser (Ctrl-F5).
    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!

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi