Re(21): framesetprob
Geizhals » Forum » Programmierung » framesetprob (33 Beiträge, 171 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
.  Re: framesetprob  (Tom2k am 03.03.2004, 16:18:24)
..  Re(2): framesetprob  (psychorat am 03.03.2004, 16:41:33)
...  Re(3): framesetprob  (Tom2k am 03.03.2004, 17:03:39)
....  Re(4): framesetprob  (psychorat am 04.03.2004, 21:39:48)
.....  Re(5): framesetprob  (Tom2k am 04.03.2004, 22:18:54)
......  Re(6): framesetprob  (Tom2k am 04.03.2004, 22:23:00)
.......  Re(7): framesetprob  (psychorat am 04.03.2004, 22:33:33)
........  Re(8): framesetprob  (Tom2k am 04.03.2004, 22:42:11)
.........  Re(9): framesetprob  (psychorat am 04.03.2004, 22:53:27)
.........  Re(9): framesetprob  (psychorat am 05.03.2004, 15:11:31)
..........  Re(10): framesetprob  (Tom2k am 05.03.2004, 16:05:44)
...........  Re(11): framesetprob  (psychorat am 05.03.2004, 17:57:23)
............  Re(12): framesetprob  (Tom2k am 05.03.2004, 18:41:35)
.............  Re(13): framesetprob  (Tom2k am 05.03.2004, 19:04:20)
..............  Re(14): framesetprob  (psychorat am 07.03.2004, 11:44:15)
...............  Re(15): framesetprob  (Tom2k am 07.03.2004, 14:08:34)
...............  Re(15): framesetprob  (Tom2k am 07.03.2004, 14:10:38)
................  Re(16): framesetprob  (m3t4tr0n am 07.03.2004, 18:19:29)
.................  Re(17): framesetprob  (Tom2k am 07.03.2004, 18:31:44)
................  Re(16): framesetprob  (psychorat am 07.03.2004, 18:30:56)
.................  Re(17): framesetprob  (Tom2k am 07.03.2004, 18:32:56)
..................  Re(18): framesetprob  (psychorat am 07.03.2004, 20:25:59)
...................  Re(19): framesetprob  (Tom2k am 07.03.2004, 23:33:59)
....................  Re(20): framesetprob  (Tom2k am 07.03.2004, 23:47:26)
...................  Re(19): framesetprob  (Tom2k am 09.03.2004, 00:03:46)
....................  Re(20): framesetprob  (psychorat am 10.03.2004, 09:08:58)
.....................
Re(21): framesetprob
10.03.2004, 10:53:06
halli hallo.

also jetzt hab ich mal ein bisschen gegoogelt und eine lösung gefunden (und getestet!) die funktioniert (zumindest bei mir in IE6 und Opera 7.23).
Ich hab keine Ahnung warum es nicht so funktioniert wie ich ursprünglich geglaubt hatte, vermutlich ist das frameset noch nicht ganz geladen, wenn er schon die Änderung daran vornehmen will. Wenn man nämlich über einen Link "parent.mainFrame.location.href = 'impr.htm';" ausführt, dann klappt das eh.

Also nochmal ganz langsam.
Deine index.htm hat jetzt so auszusehen:

<html>
<head>
<script type="text/javascript">
<!--
  window.onload=function(){
    var d=document.location.search;
    if(d!='')top.frames[fname].document.location.href=d.substring(d.lastIndexOf('?')+1,d.length);
  }
//-->
</script>
</head>
<frameset rows="*,30" framespacing="0" frameborder="no" border="0">
  <frameset cols="*,700,*" frameborder="no" border="0" framespacing="0">  
    <frame src="left.htm" name="leftFrame" scrolling=no noresize>
    <frameset rows="100,*" frameborder=no border="0" framespacing="0">
      <frame src="top.htm" name="topFrame" scrolling=no noresize>
      <frame src="main.htm" name="mainFrame">
    </frameset>
    <frame src="right.htm" name="rightFrame" scrolling=no noresize>
  </frameset>
  <frame src="footer.htm" name="footerFrame" scrolling=no noresize>
</frameset>
</html>


und die impr.htm so:

<html>
<head>
<script type="text/javascript">
<!--
  if(self.location==top.location)self.location="index.htm?impr.htm";
//-->
</script>
</head>
<body>
  so klappts auch mitm nachbarn ;-)
</body>
</html>

Also ich habs getestet und so gehts!

lg
tom2k

Antworten PM Alle Chronologisch Zum Vorgänger
 
Melden nicht möglich
......................  Re(22): framesetprob  (Tom2k am 10.03.2004, 11:02:40)
.......................  Re(23): framesetprob  (psychorat am 12.03.2004, 08:01:37)
........................  Re(24): framesetprob  (Tom2k am 12.03.2004, 12:45:12)
.........................  Re(25): framesetprob  (psychorat am 12.03.2004, 14:08:00)
..........................  Re(26): framesetprob  (Tom2k am 12.03.2004, 16:23:29)
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung