From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas =?utf-8?b?UsO8dHRlbg==?= Subject: Re: turn off inclusion of JavaScript helper code? Date: Mon, 10 Jan 2011 13:28:37 +0000 (UTC) Message-ID: References: <87633l228c.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59164 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcHnu-0001xI-LH for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 08:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcHnt-0001oe-2s for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 08:28:58 -0500 Received: from lo.gmane.org ([80.91.229.12]:32885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcHns-0001oP-Nl for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 08:28:57 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PcHno-0007AO-65 for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 14:28:52 +0100 Received: from 213.191.78.58 ([213.191.78.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2011 14:28:52 +0100 Received: from AndreasRuetten by 213.191.78.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2011 14:28:52 +0100 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: emacs-orgmode@gnu.org Sebastian Rose gmx.de> writes: > > Stefan Vollmar nf.mpg.de> writes: > > Hello, > > > > in our org-mode generated HTML pages we find these snippets: > > > > > > > > We have just noticed that MS Internet Explorer complains that these > > lines pose a security risk (Firefox and Safari have no problem with > > them), deleting the JavaScript code solves the issue. I have found a > > link that might explain the problem: > > http://www.codingforums.com/archive/index.php/t-78039.html > > > > (the problem is limited to locally accessed HTML pages, not HTML > > content that is accessed over a network; we now use org-mode to > > generate a locally stored collection of online help files in HTML - so > > this is an awkward issue for us) > > M-x customize-variable RET org-export-html-style-include-scripts > > You can turn the inclusion off in your `org-export-projects-alist': > > :style-include-scripts nil > > > > > As our pages do not need this JavaScript code anyway, having a switch that prevents this code from being > included would be a good solution from our point of view. Naturally, we could have a "postprocessing" > script to remove the offending lines before releasing the HTML content, however, that seems such a crude approach. > > > > Here is a suggestion, maybe there could be a new switch for #+OPTIONS: > > > > javascript: turn on/off inclusion of JavaScript helper code for code highlighting > > > > and while we are at it: > > > > css: turn on/off inclusion of stylesheet? > > M-x customize-variable org-export-html-style-include-default RET > > And per project in `org-export-projects-alist': > > :style-include-default nil > > HTH > > Sebastian > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > Hy, I have "(setq org-export-html-style-include-scripts nil)" in my init.el and also ":style-include-scripts nil" in my "org-publish-project-alist" configuration. But I still get these javascript part in my exported html files. Any further ideas how I can get rid of them? My Org-mode version is 7.3 (release_7.4.153.ga0b8) Regards, Andreas