From mboxrd@z Thu Jan 1 00:00:00 1970 From: srandby@gmail.com Subject: Javascript Export Issue Date: Fri, 06 Mar 2009 21:30:14 -0500 Message-ID: <49B1DC36.1020505@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfmIt-0007eI-Oi for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfmIs-0007cr-67 for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:19 -0500 Received: from [199.232.76.173] (port=36131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfmIs-0007co-2D for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:18 -0500 Received: from yw-out-1718.google.com ([74.125.46.152]:13790) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfmIr-0005i6-Ou for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:17 -0500 Received: by yw-out-1718.google.com with SMTP id 6so414202ywa.66 for ; Fri, 06 Mar 2009 18:30:16 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "[Orgmode]" Greetings, When I export (using org-mode 6.23) to html an org file that has options for org-info.js, the html file contains this: Earlier versions of org-mode exported scripts this way: Today, I discovered that the first script listed above will work with Firefox, but not with Safari (I don't know about IE). After some research, I discovered several fixes, including the old way of exporting, the easiest being: I realize there are issues here with the differences between html browsers and xml browsers, so I've decided that I would like to have scripts (and styles) exported as separate files. Is this possible? When I export my org file to html, the html file contains one style section and two script sections. If these three were instead exported to separate files, that would eliminate the need to worry about how to enclose styles and scripts with comments in a way that works for all browsers. Of course, then org-mode would be creating four files instead of one, but I would like to have this option. Everything I've read about this matter recommends keeping styles and scripts as external files. When I create the three files manually and edit the html file appropriately, the html file lacks all the style and script code which is replaced by: Here gen-style.css contains the style generated by org-mode, style.css is my own style, org-html.js is the first script generated by org-mode, and mystery.js is the second script generated by org-mode (it is mysterious to me). Scott Randby