Das Notes Forum
Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: CLI_Andreas_Schmidt am 22.07.05 - 13:59:01
-
Hi @all,
ich habe ein JavaScript menü (Verzeichnisbaum) der auf und zu klappen soll. --> Grundsätzlich läuft das ganz gut, nur soll beim Start alle Einträge komprimiert sein. Das läuft leider nicht. Der ganze Baum ist voll geöffnet und jetzt will ich ja nicht bei jedem Start die Gliederung zusammenklicken. Kennt jemand das Problem. ????
Print {<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">}
Print "<SCRIPT TYPE=" & {"Text/JAVASCRIPT"} & " LANGUAGE=JAVASCRIPT>"
Print "function outline(id)" & "{"
Print "if(document.getElementById(id).style.display == 'none')"
Print "{"
Print "document.getElementById(id).style.display = 'block';"
Print "}"
Print "else"
Print "{"
Print "document.getElementById(id).style.display = 'none';"
Print "}"
Print "}"
Print "</script>"
Print "</HEAD>"
Print "<Body>"
-
Kannst du nicht einfach die von Notes generierte Html Seite
a) speichern
b) als Attachment dranhängen.
Axel
PS: benutze bitte die gmail.Adresse, ICQ oder die Arcor Tel.nr. Auf dem Nokia gibts technische Schwierigkeiten :-)
-
Wird das script überhaupt ausgeführt?
-
ja wird ausgeführt, denn die Gliederung geht auf und zu. Nur beim Start ist sie komplett geöffnet. Und das ist unschön, weil man dann erst alles per Hand zuklappen muss.
-
Wird das Script zum Zusammenklappen beim Start ausgeführt ?
-
Hi @all,
ich habe den Fehler gefunden. Ich hatte folgendes vergessen. [ style="display:none" ]
Danke für die Hilfe.
Hier für Interessierte ein Beispiel-Code für Notes
Print "<HEAD>"
Print "<STYLE TYPE=" & {"text/css">}
Print "a {"
Print "cursor:pointer;cursor:hand;"
Print "font-family: Arial,Helvetica;"
Print "font-size: 11px;"
Print "color: black;"
Print "}"
Print "Body {" & "background:#FFEEC1;"
Print "}"
Print "</STYLE>"
Print {<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">}
Print "<SCRIPT TYPE=" & {"Text/JAVASCRIPT"} & " LANGUAGE=JAVASCRIPT>"
Print "function outline(id)" & "{"
Print "if(document.getElementById(id).style.display == 'none')"
Print "{"
Print "document.getElementById(id).style.display = 'block';"
Print "}"
Print "else"
Print "{"
Print "document.getElementById(id).style.display = 'none';"
Print "}"
Print "}"
Print "</script>"
Print "<TITLE></TITLE>"
Print "</HEAD>"
Und hier findet Ihr den grundsätzlichen Aufbau.
http://www.patshaping.de/hilfen_ta/dyn-nav/
Gruss und Danke