![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ich habe zwei Frames (TOP und MAIN). Im TOP will ich per <select einen bestimmten Absatz im MAIN aufrufen. |
|
Der Absatz ist per <a name="Absatz45>Absatz 45</a> markiert. Wie kann ich aus dem TOP herraus zu dieser Stelle in der MAIN-Seite springen, OHNE das die Seite neu gelanden wird. Die Seite darf nicht neu laden, da sie auf einem PDA läuft und über 300kb groß ist. |
#3
| |||
| |||
|
|
[1] Sorry, kein URL, da Netscapes Devedge derzeit von hier nicht erreichbar ist. |
#4
| |||
| |||
|
|
Benjamin M. Fischer <benno (AT) bmfo (DOT) de> typed: ich habe zwei Frames (TOP und MAIN). Im TOP will ich per <select einen bestimmten Absatz im MAIN aufrufen. Einen Frame "TOP" zu nennen halte ich für keine allzutolle Idee. Der Absatz ist per <a name="Absatz45>Absatz 45</a> markiert. Wie kann ich aus dem TOP herraus zu dieser Stelle in der MAIN-Seite springen, OHNE das die Seite neu gelanden wird. Die Seite darf nicht neu laden, da sie auf einem PDA läuft und über 300kb groß ist. Eine Zuweisung zu Location.hash sollte der Spezifikation nach nicht zu einem Neuladen der Seite führen [1]. Sofern sich der Hersteller des auf dem PDA verwendeten Brausers daran gehalten hat, ist dies hier zu tun: select ... onchange="window.parent.frames['MAIN'].location.hash =this.options[this.selectedIndex].value" ... option value="#absatz45">Absatz 45</option ... /select [1] Sorry, kein URL, da Netscapes Devedge derzeit von hier nicht erreichbar ist. ciao, dhgm |
#5
| |||
| |||
|
|
[1] Sorry, kein URL, da Netscapes Devedge derzeit von hier nicht erreichbar ist. Schon seit Tagen. Was ist da los? |
#6
| |||
| |||
|
|
Eine Zuweisung zu Location.hash sollte der Spezifikation nach nicht zu einem Neuladen der Seite führen [1]. [...] [1] Sorry, kein URL, da Netscapes Devedge derzeit von hier nicht erreichbar ist. |
|
hash ===== A string beginning with a hash mark (#) that specifies an anchor name in the URL. /Property of Location/ /Implemented in JavaScript 1.0/ Security --------- JavaScript 1.1. This property is tainted by default. For information on data tainting, see the Client-Side JavaScript Guide. Description ------------ The hash property specifies a portion of the URL. This property applies to HTTP URLs only. You can set the hash property at any time, although it is safer to set the href property to change a location. If the hash that you specify cannot be found in the current location, you get an error. Setting the hash property navigates to the named anchor without reloading ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the document. This differs from the way a document is loaded when other ^^^^^^^^^^^^^ location properties are set (see "How documents are loaded when location is set" on page 252). See RFC 1738 (http://www.cis.ohio-state.edu/htbin/rfc/rfc1738.html) for complete information about the hash. Examples --------- In the following example, the window.open statement creates a window called newWindow and loads the specified URL into it. The document.write statements display properties of newWindow.location in a window called msgWindow. newWindow=window.open ("http://home.netscape.com/comprod/products/navigator/ version_2.0/script/script_info/objects.html#checkbox_object") msgWindow.document.write("newWindow.location.href = " + newWindow.location.href + "<P>") msgWindow.document.write("newWindow.location.hash = " + newWindow.location.hash + "<P>") msgWindow.document.close() The previous example displays output such as the following: newWindow.location.href = http://home.netscape.com/comprod/products/navigator/ version_2.0/script/script_info/objects.html#checkbox_object newWindow.location.hash = #checkbox_object See also Location.host, Location.hostname, Location.href, Location.pathname, Location.port, Location.protocol, Location.search |
#7
| |||
| |||
|
|
Leider kommt dann eine Fehlermeldung: "Erlaubnis verweigert". |
|
[TOFU] |
#8
| |||
| |||
|
|
Wer Guide(s) und/oder Reference(s) für die lokale Benutzung möchte, kann diese (bitte mit Versionsangabe) per Mail bei mir anfordern, solange DevEdge nicht geht. Bei gesteigertem Interesse könnte ich mich auch dazu hinreißen lassen, diese temporär auf meinem noch recht begrenzten Webspace zur Verfügung zu stellen. |
#9
| |||
| |||
|
|
Benjamin M. Fischer <benno (AT) bmfo (DOT) de> typed: ich habe zwei Frames (TOP und MAIN). Im TOP will ich per <select einen bestimmten Absatz im MAIN aufrufen. Einen Frame "TOP" zu nennen halte ich für keine allzutolle Idee. Der Absatz ist per <a name="Absatz45>Absatz 45</a> markiert. Wie kann ich aus dem TOP herraus zu dieser Stelle in der MAIN-Seite springen, OHNE das die Seite neu gelanden wird. Die Seite darf nicht neu laden, da sie auf einem PDA läuft und über 300kb groß ist. Eine Zuweisung zu Location.hash sollte der Spezifikation nach nicht zu einem Neuladen der Seite führen [1]. Sofern sich der Hersteller des auf dem PDA verwendeten Brausers daran gehalten hat, ist dies hier zu tun: select ... onchange="window.parent.frames['MAIN'].location.hash =this.options[this.selectedIndex].value" ... option value="#absatz45">Absatz 45</option ... /select [1] Sorry, kein URL, da Netscapes Devedge derzeit von hier nicht erreichbar ist. ciao, dhgm |
![]() |
| Thread Tools | |
| Display Modes | |
| |