Apache OpenOffice (AOO) Bugzilla – Issue 2496
opening html with java script is not saved
Last modified: 2005-03-25 21:55:43 UTC
Opening html with javascript in the head tags. modify html. save. javascript is lost.
Reassigned to Éric.
I can't reproduce this in a 641. If you still can reproduce it, please sumbit the script you are using.
closed
In OOO Writer/Web 1.9.79, I inserted the following simple (and useless) JavaScript function in a web page, using the "Insert Script" dialog, with the "Text" option selected: function jhsdfjk() { var n = 0; n++ } ...I then saved it and went to HTML view. Instead of The script, there was a URL to the webpage itself: <SCRIPT LANGUAGE="JavaScript"> file:///E:/Programs/OpenOffice2.0/Page.html </SCRIPT> It seems that text format JavaScript isn't supported in the "Insert Script" dialog. It always puts a URL. Once, it at least put a URL to what might have been a temporary file containing a script. I've tried several different means to do it, but I can't get it to retain a script in an HTML page.