From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Regarding org-ehtml feature not working Date: Fri, 02 Nov 2012 09:54:22 -0600 Message-ID: <877gq4gfv5.fsf@gmail.com> References: <87k3u4gp3t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUJZo-0007tT-D4 for emacs-orgmode@gnu.org; Fri, 02 Nov 2012 11:54:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUJZm-0003KB-PF for emacs-orgmode@gnu.org; Fri, 02 Nov 2012 11:54:32 -0400 Received: from mail-da0-f41.google.com ([209.85.210.41]:49430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUJZm-0003J7-HI for emacs-orgmode@gnu.org; Fri, 02 Nov 2012 11:54:30 -0400 Received: by mail-da0-f41.google.com with SMTP id i14so1815033dad.0 for ; Fri, 02 Nov 2012 08:54:29 -0700 (PDT) In-Reply-To: (Nitin Agarwal's message of "Fri, 2 Nov 2012 20:33:46 +0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nitin Agarwal Cc: emacs-orgmode@gnu.org, Eric Schulte , pranitha jasp Please try following the steps listed in this README file. https://github.com/eschulte/org-ehtml Note that they do *not* include starting a server with elnode-make-webserver. I believe that your problems is that elnode-make-webserver is creating a server which simply serves the files for download and you are not actually starting an org-ehtml server. Hope this helps, Nitin Agarwal writes: > 1. I downloaded the elnode package and tested it using the my-test-handler > function on a specific port. > 2. the elnode server worked fine and the prints the word HELLO! which is > defined in the my-test-handler function. > 3. then i installed the package org-plus-contrib-20120928. After the > installation of the package it showed passed but i failed due appear. > 4. then i installed the org-ehtml package and then make the server using > elnode-make-webserver and specified the directory where orgmode files are > kept. > then i have to take the handler function defined in the org-ehtml-server.el > file and get it evalauted in the buffer. the handler function name is > org-ehtml handler which i mentioned while starting the server for the > orgmode files. > 5. after that started the elnode server on the specific port and then when > i open the localhost on the same specified port then the files present are > being listed. > and when i open localhost:port-num/myfile.org if this file present in the > directory then it asks the user whether to save the file or to open it > using any editor same as when > the download option comes when saving files from the browser or so. > > So instead of opening the files in the browser as editable web page, it is > asking us whether to save it or not. > > i have attached one document which is written in details as on how to view > orgmode file as an editable web page.so you can have a look at that for > reference. > thanks > > > > On Fri, Niov 2, 2012 at 5:34 PM, Eric Schulte wrote: > >> I don't understand what exactly is wrong. >> >> Please post step-by-step instructions so that I can reproduce the >> problem locally. >> >> Thanks, >> >> Nitin Agarwal writes: >> >> > Hi, >> > >> > When i tried the org mode files to view as editable web page again on >> > different pc from scratch then the elnode server is working fine.i have >> > tested my elnode serve using the test-handler function.but after >> installing >> > the org-plus-20120928 and org-ehtml package i am not able to view the the >> > org-file as editable web page. >> > and it is asking me to download the file or to open it. the >> > org-ehtml-handler function did not came and theni took the org-ehtml >> > function from the source code of >> > org-ehtml-server.el file and evaluated the org-ehtml function in the >> buffer. >> > So help me in identifying the mistake.also tell me the correct >> > org-ehtml-handler function which i should mention while starting the >> elnode >> > server. >> > kindly reply back with your suggestions. >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte >> -- Eric Schulte http://cs.unm.edu/~eschulte