Hallo,
Hallo Odium
was sind das für Parameter die du der Funktion bei OnClick übergibst?
Damit wird eine*.dot Datei in Word als ein neues Dokument geöffnet. Dies mache ich über VBScript. Das sieht so aus:
<script language="VBScript">
<!--
function load_word(mode, pfad)
'mode 0 = normal open
'mode 1 = open as dot
Set appWord = CreateObject("Word.Application")
' Display the application.
appWord.WindowState = 0
appWord.Height = 600
appWord.Width = 800
appWord.Left = 0
appWord.Top = 0
appWord.Visible = TRUE
' Open the document.
' mode 1 = dot file 0 = docfile
if mode = 1 then
appWord.Documents.Add (pfad)
end if
if mode = 0 then appWord.Documents.Open (pfad) end if
' Close the object variable.
Set appWord = Nothing
end function
-->
</script>
Das funktioniert auch ganz gut. Nur das der Button seine Farbe ändert klappt leider nicht
Parameter gehören in Klammern gesetzt...
onClick="javascript:funktion(param1,param2)"
Odium
Cu Thomas