HighDots Forums  

fenster neuladen

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss fenster neuladen in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stefan Becker
 
Posts: n/a

Default fenster neuladen - 10-18-2004 , 03:16 PM






var link
=link_intern('untermenue_intern.htm','untermenue', 'inhalt.htm','inhalt');
window.location.href=(link);

function link_intern(ziel_menue,menue,ziel_inhalt,inhalt)
{
alert(ziel_inhalt);
alert(inhalt);
menue_aendern=eval("parent."+menue);
inhalt_aendern=eval("parent."+inhalt);
menue_aendern.location.href=ziel_menue;
inhalt_aendern.location.href=ziel_inhalt;
}

Das steht im parent inhalt, problem ist nun, das im frame inhalt die seite
nicht geladen. Was kann der fehler sein?

Stefan



Reply With Quote
  #2  
Old   
J. Strübig
 
Posts: n/a

Default Re: fenster neuladen - 10-19-2004 , 07:09 AM






Stefan Becker wrote:
Quote:
var link
=link_intern('untermenue_intern.htm','untermenue', 'inhalt.htm','inhalt');
window.location.href=(link);
Die Klammern sind Überflüssig.


Quote:
function link_intern(ziel_menue,menue,ziel_inhalt,inhalt)
{
alert(ziel_inhalt);
alert(inhalt);
menue_aendern=eval("parent."+menue);
inhalt_aendern=eval("parent."+inhalt);
wozu eval?

parent.frames['menue'].location.href = ziel_menue;
parent.frames['inhalt'].location.href = ziel_inhalt;

Quote:
Das steht im parent inhalt, problem ist nun, das im frame inhalt die seite
nicht geladen. Was kann der fehler sein?
Keine Ahnuhng, bau mal:

alert(parent.frames['menue']);
alert(parent.frames['inhalt']);

Damit du weißt ob die Frames überhaupt so vorhanden sind.


Struppi.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.