la la: target="bla" funzt bei frameset nicht!?

also....ich hab da so ein frameset mit 5 frames.

in einem der 5 ist eine select liste drin.wenn man in ihr etwas auswählt soll es in einem anderen frame angezeigt werden.

der frame in den es soll heißt "mitte".ich habe also in jeden link target="mitte" reingeschrieben...aber das funzt nicht.die neuen seiten bauen sich alle in dem winzigen frame mit der select list auf.

kann mir da jemand helfen?!

ich hab da noch ein bissl quellcode:
 --> das ist von meiner basis in der die framesets stehen!
<frameset cols="144,*">
<frame src="links.html" border="0" framesize="0" frameborder="0" noresize scrolling=no marginwidth=0 marginheight=0 framespacing="0">

<frame name="Mitte" src="InhaltIE.html" border="0" framesize="0" frameborder="0" noresize scrolling=no marginwidth=0 marginheight=0 framespacing="0">

<frame src="rechts.html" border="0" framesize="0" frameborder="0" noresize scrolling=no marginwidth=0 marginheight=0 framespacing="0">
</frameset>

--> das ist aus dem frame mit der select list:
<div style="position:absolute; left:180px; top:15px;">
<form><select name="auswahl" size="1" onchange="Go(this.form.auswahl)">
<option>Select list</option>
<OPTION VALUE="http://bla/blabla/blablablabla/bla.html" target="Mitte">bla</option>

danke an alle helfenden
gruß la la

  1. Hi versuchs mal damit:

    <form>
    <select name="to" size="1" onchange="javascript:parent.frames['Mitte'].location = this.form.to.options[this.form.to.selectedIndex].value;">
    <option value="bla.htm">bls</option>
    </select>
    </form>

    ff

    1. Hi versuchs mal damit:

      <form>
      <select name="to" size="1" onchange="javascript:parent.frames['Mitte'].location = this.form.to.options[this.form.to.selectedIndex].value;">
      <option value="bla.htm">bls</option>
      </select>
      </form>

      ff

      also...ich muß jetzt mal sagen: danke an euch alle...aber bisher funzt es nicht....ich denke es liegt daran das ich mehrere frames habe.

      ich habe die vorschläge bei 2-3 frames schon ausprobiert...ohne probleme...aber bei meinen 5en hat er keine lust.

      mein aufbau ist in etwa so:

      ________________
      |_______1_______|     in 2 steht die select liste,
      |_______2_______|     in 4 soll der text erscheinen.
      | |             |     ich glaube das liegt an nummer 3,wär der nicht
      |3|     4       |     würde nummer 4 sicherlich als parent anerkannt
      | |             |     werden...ich kann 3 aber nicht rausnehmen!
      |_|_____________|
      |_______5_______|

      Es würde mir helfen wenn mir jemand sagen könnte,ob man einen frame als parent bestimmen kann.

      danke bis zur nächsten nachricht
      gruß la la

      1. Hallo,

        ________________
        |_______1_______|
        |_______2_______|
        | |             |
        |3|     4       |
        | |             |
        |_|_____________|
        |_______5_______|

        Ändere Dein Frameset. Uns zwar steckst Du 3+4 in ein separates Frameset:

        <frameset rows="100,100,*,100" ...>
          <frame src="1.htm" ...>
          <frame src="2.htm" ...>
          <frame src="3.htm" name="content" ...>
          <frame src="4.htm" ...>
        </frameset>

        In Datei 3.htm steht dann:
        <frameset cols="100,*">
          <frame src="left.htm" ...>
          <frame src="main.htm" name="subcontent" ...>
        </frameset>

        Jetzt kannst Du von Deiner Verweisliste(bei Dir Frame2) aus den Contentframe(bei Dir Frame4) so ansprechen:
        top.content.subcontent.blablabla

        Die Namen für die Frames kannst Du natürlich noch anpassen.

        Gruß Markus

    2. Moin!

      Hi versuchs mal damit:

      <form>
      <select name="to" size="1" onchange="javascript:parent.frames['Mitte'].location = this.form.to.options[this.form.to.selectedIndex].value;">
      <option value="bla.htm">bls</option>
      </select>
      </form>

      Du schreibst jetzt zur Strafe hundertmal:

      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      "Es heißt location.href!"
      ...

      "location" ist ein Objekt, welches nicht direkt geändert werden kann. Es hat aber verschiedene Eigenschaften, die man ändern kann, unter anderem die URL. Man kann dort auch andere Dinge abfragen, wie z.B. den Suchparameter, den Hostnamen oder das verwendete Protokoll (steht zwar alles auch in location.href, aber dann müßte man es manuell vereinzeln).

      Ein weiterer beliebter Fehler: document.location.href
      Ist genauso falsch, weil location ein Unterobjekt von window ist, nicht von window.document :) .

      - Sven Rautenberg

      1. "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"
        "Es heißt location.href!"

        sorry, war ein verschreiber.
        ff

  2. Hi,

    kann mir da jemand helfen?!

    Mal sehen...

    Der Frameset hat damit schon mal nix zu tun.

    Hier passiert folgendes:

    <form>

    Anfang eines Formulars (leider fehlerhaft, BTW. Da muss eine action rein, also: <form action="irgendwas">)

    <select name="auswahl" size="1" onchange="Go(this.form.auswahl)">

    onChange (im übrigen ist JavaScript case-sensitiv, also bitte Groß-/Kleinschreibung beachten) rufst Du eine Funktion Go() auf, der Du den Wert "this.form.auswahl" mitgibt. Wundert mich dass das funktioniert, besser wäre this.form.auswahl.options[this.form.auswahl.options.selectedIndex].value - aber egal. Dieser Funktion übergibst den mit value definierten Wert:

    <OPTION VALUE="http://bla/blabla/blablablabla/bla.html" target="Mitte">bla</option>

    Halt eben: http://bla/blabla/blablablabla/bla.html. Dass da target steht, ist falsch und wird ignoriert.

    Deine Funktion Go() macht nun irgendwas mit http://bla/blabla/blablablabla/bla.html - was, wissen wir nicht, Du hast den Code nicht gepostet. Jedenfalls, wenn Du das Verhalten von Go() ändern willst, dann musst Du Go() entsprechend ändern und dort angeben, in welchem Frame der Link aufgehen soll.

    Grüße,

    Utz

    1. Hi,

      kann mir da jemand helfen?!

      Mal sehen...

      Der Frameset hat damit schon mal nix zu tun.

      Hier passiert folgendes:

      <form>

      Anfang eines Formulars (leider fehlerhaft, BTW. Da muss eine action rein, also: <form action="irgendwas">)

      <select name="auswahl" size="1" onchange="Go(this.form.auswahl)">

      onChange (im übrigen ist JavaScript case-sensitiv, also bitte Groß-/Kleinschreibung beachten) rufst Du eine Funktion Go() auf, der Du den Wert "this.form.auswahl" mitgibt. Wundert mich dass das funktioniert, besser wäre this.form.auswahl.options[this.form.auswahl.options.selectedIndex].value - aber egal. Dieser Funktion übergibst den mit value definierten Wert:

      <OPTION VALUE="http://bla/blabla/blablablabla/bla.html" target="Mitte">bla</option>

      Halt eben: http://bla/blabla/blablablabla/bla.html. Dass da target steht, ist falsch und wird ignoriert.

      Deine Funktion Go() macht nun irgendwas mit http://bla/blabla/blablablabla/bla.html - was, wissen wir nicht, Du hast den Code nicht gepostet. Jedenfalls, wenn Du das Verhalten von Go() ändern willst, dann musst Du Go() entsprechend ändern und dort angeben, in welchem Frame der Link aufgehen soll.

      Grüße,

      Utz

      ich tu dann mal den quelltext von der function go() rein:

      <script language="JavaScript">
      <!--
              function Go(form)
              {
              if(form.selectedIndex==0)
              null;
              else
              location = form.options[form.selectedIndex].value;
              }
      // -->
      </script>

    2. Hallo,

      <select name="auswahl" size="1" onchange="Go(this.form.auswahl)">

      onChange (im übrigen ist JavaScript case-sensitiv, also bitte Groß-/Kleinschreibung beachten)

      Da wird der Validator bei 'strict' aber meckern:
      http://www.w3.org/TR/html4/index/attributes.html

      -> onchange ist also richtig.

      Gruß Markus

      1. Hi Markus

        -> onchange ist also richtig.

        Nein, das stimmt nicht. "onchange" ist in http://www.w3.org/TR/html4/interact/scripts.html#adef-onchange als CT verzeichnet, was auf http://www.w3.org/TR/html4/types.html#type-script verweist, und dort steht laut und deutlich: "The case-sensitivity of script data depends on the scripting language." D.h., dem Validator ist Groß- und Kleinschreibung völlig egal, er hält sich einfach raus und "schiebt" die Verantwortung der Script-Sprache zu. Und die sagt: onChange.

        Grüße,

        Utz

        1. Hallo Utz,

          ja, mein Fehler. Neulich meckerte mir der Validator ein onChange an, das war aber XHTML1.0 strict.

          Gruß Markus

        2. Hallo !

          -> onchange ist also richtig.

          Nein, das stimmt nicht. "onchange" ist in http://www.w3.org/TR/html4/interact/scripts.html#adef-onchange als CT verzeichnet, was auf http://www.w3.org/TR/html4/types.html#type-script verweist, und dort steht laut und deutlich: "The case-sensitivity of script data depends on the scripting language." D.h., dem Validator ist Groß- und Kleinschreibung völlig egal, er hält sich einfach raus und "schiebt" die Verantwortung der Script-Sprache zu. Und die sagt: onChange.

          Das stimmt so auch wieder nicht!

          Die von dir verlinkte Quelle bezieht sich auf den Attributwert (also onchange="DAS_HIER"), nicht aber auf den Attributnamen 'onchange' selbst.

          Für diesen gilt folgendes:

          nach HTML 4.01:
          "Attribute names are always case-insensitive."
          (Quelle: http://www.w3.org/TR/html4/intro/sgmltut.html#idx-attribute-7)

          aber nach XHTML 1.0:
          "Element and attribute names must be in lower case"
          (Quelle: http://www.w3.org/TR/xhtml1/#h-4.2)

          Mit 'onchange' fährt man also besser.

          Gruß,

          kerki

          1. Hi Kerki,

            Das stimmt so auch wieder nicht!

            Die von dir verlinkte Quelle bezieht sich auf den Attributwert (also onchange="DAS_HIER"), nicht aber auf den Attributnamen 'onchange' selbst.

            Oh ja, Asche auf mein Haupt! Sorry.

            Grüße,

            Utz

    3. Hi,

      kann mir da jemand helfen?!

      Mal sehen...

      Der Frameset hat damit schon mal nix zu tun.

      Hier passiert folgendes:

      <form>

      Anfang eines Formulars (leider fehlerhaft, BTW. Da muss eine action rein, also: <form action="irgendwas">)

      <select name="auswahl" size="1" onchange="Go(this.form.auswahl)">

      onChange (im übrigen ist JavaScript case-sensitiv, also bitte Groß-/Kleinschreibung beachten) rufst Du eine Funktion Go() auf, der Du den Wert "this.form.auswahl" mitgibt. Wundert mich dass das funktioniert, besser wäre this.form.auswahl.options[this.form.auswahl.options.selectedIndex].value - aber egal. Dieser Funktion übergibst den mit value definierten Wert:

      <OPTION VALUE="http://bla/blabla/blablablabla/bla.html" target="Mitte">bla</option>

      Halt eben: http://bla/blabla/blablablabla/bla.html. Dass da target steht, ist falsch und wird ignoriert.

      Deine Funktion Go() macht nun irgendwas mit http://bla/blabla/blablablabla/bla.html - was, wissen wir nicht, Du hast den Code nicht gepostet. Jedenfalls, wenn Du das Verhalten von Go() ändern willst, dann musst Du Go() entsprechend ändern und dort angeben, in welchem Frame der Link aufgehen soll.

      Grüße,

      Utz

      danke erstmal...
      1. wie soll ich denn die funktion go ändern?!
      2. da sind übrigens noch viel viel mehr option values in meiner select list...ich kann also nicht was auch immer nach http://bla.../bla.html ausrichten

      1. Hallo,

        Das Beispiel in Selhtml hast Du gelesen? Das macht nämlich genau das, was Du willst.

        http://selfhtml.teamone.de/javascript/beispiele/verweisliste.htm

        Gruß Markus

        Im Übrigen: Du hast in den anderen Postings die Lösung schon gesagt bekommen, vielleicht solltest Du mal versuchen das umzusetzen?