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 18:10:05 +0100 Message-ID: <20110110181005.4c7e147b@jersey.hansenet.de> References: <87633l228c.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0944799305==" Return-path: Received: from [140.186.70.92] (port=55027 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcLG4-0001N2-Ni for Emacs-orgmode@gnu.org; Mon, 10 Jan 2011 12:10:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcLG2-00029p-Ka for Emacs-orgmode@gnu.org; Mon, 10 Jan 2011 12:10:16 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:40721 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PcLG2-00025C-6m for Emacs-orgmode@gnu.org; Mon, 10 Jan 2011 12:10:14 -0500 In-Reply-To: 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 --===============0944799305== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/r8lg7/=XlLD1ZBiWHy0hQYS"; protocol="application/pgp-signature" --Sig_/r8lg7/=XlLD1ZBiWHy0hQYS Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Mon, 10 Jan 2011 13:28:37 +0000 (UTC) schrieb Andreas R=C3=BCtten : > Sebastian Rose gmx.de> writes: >=20 > >=20 > > 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) > >=20 > > M-x customize-variable RET org-export-html-style-include-scripts > >=20 > > You can turn the inclusion off in your `org-export-projects-alist': > >=20 > > :style-include-scripts nil > >=20 > > > > > > 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? > >=20 > > M-x customize-variable org-export-html-style-include-default RET > >=20 > > And per project in `org-export-projects-alist': > >=20 > > :style-include-default nil > >=20 > > HTH > >=20 > > Sebastian > >=20 > > _______________________________________________ > > 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 > >=20 > >=20 >=20 > Hy, >=20 > 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.=20 >=20 > But I still get these javascript=20 >=20 > >=20 > part in my exported html files. >=20 > Any further ideas how I can get rid of them? >=20 > My Org-mode version is 7.3 (release_7.4.153.ga0b8) >=20 >=20 > Regards, > Andreas >=20 >=20 I tried the same configuration with Org-mode version 7.3 (release_7.4.3.g76a2) and it works as expected. No embedded javascript. --=20 Andreas R=C3=BCtten mailto : AndreasRuetten@gmx.de PGP C1CC335C, A655 0268 CEA6 A3DA 30AA D356 A450 30BD C1CC 335C -- --Sig_/r8lg7/=XlLD1ZBiWHy0hQYS Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0rPW0ACgkQpFAwvcHMM1xDEQCgpPbBJx+2d5ELIfDeUiszQTZ5 K/oAoN0zbYLmfkE8GZchGmu9sFmCkKdU =UMtU -----END PGP SIGNATURE----- --Sig_/r8lg7/=XlLD1ZBiWHy0hQYS-- --===============0944799305== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0944799305==--