Issue 2496

Summary: opening html with java script is not saved
Product: Writer Reporter: ddaniels <ddaniels>
Component: uiAssignee: eric.savary
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 638   
Target Milestone: ---   
Hardware: Other   
OS: Windows 98   
Issue Type: FEATURE Latest Confirmation in: ---
Developer Difficulty: ---

Description ddaniels 2001-12-10 17:11:08 UTC
Opening html with javascript in the head tags. modify html. save. javascript is 
lost.
Comment 1 stefan.baltzer 2002-01-07 11:39:08 UTC
Reassigned to Éric.
Comment 2 eric.savary 2002-01-07 13:45:41 UTC
I can't reproduce this in a 641.
If you still can reproduce it, please sumbit the script you are using.

Comment 3 eric.savary 2003-02-13 15:35:41 UTC
closed
Comment 4 tburcham 2005-03-25 21:55:43 UTC
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.