Toon posts:

[ASP.net & Javascript] delay bij refreshen van frameset

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ellow!

Ik zit met een HTML pagina opgebouwd in de klassieke 3 frames. Als ik navigeer worden telkens 2 of soms alle 3 frames geupdate. Het mainframe en topframe zijn aspx pagina's.
Het probleem:
De inhoud van het topframe wordt aangepast adhv een variabele die wordt meegegeven als het mainframe geladen wordt. Dit werkt 80% van de tijd!
Soms is het echter zo dat als ik naar een pagina navigeer, het topframe geladen wordt met de gegevens die meegegeven werden in de vorige pagina van het mainframe.

Het lijkt er dus op dat het topframe al gerefreshed wordt als het mainframe nog niet geladen is.

Het javascript:
function config_update(){
parent.mainFrame.location.href="http://localhost/inventarisatie/configuratie_koppelen.aspx";
parent.leftFrame.location.href="navigatie.htm";
parent.topFrame.location.href="http://localhost/inventarisatie/top.aspx"
}
function pc_update(){
parent.mainFrame.location.href="http://localhost/inventarisatie/PC.aspx";
parent.leftFrame.location.href="navigatie.htm";
parent.topFrame.location.href="http://localhost/inventarisatie/top.aspx"
}
function b_koppelen_update(){
parent.mainFrame.location.href="http://localhost/inventarisatie/beeldscherm_koppelen.aspx";
parent.topFrame.location.href="http://localhost/inventarisatie/top.aspx"
}

function b_types_update(){
parent.mainFrame.location.href="http://localhost/inventarisatie/beeldscherm_types.aspx";
parent.topFrame.location.href="http://localhost/inventarisatie/top.aspx"
}
De aanroep:
<a href="http://localhost/inventarisatie/configuratie_koppelen.aspx" onClick="config_update(); return false;" target="mainFrame" class="navigatie">Configuratie</a>

De waarden die in het topframe moeten verschijnen worden in het gedeelte "Page load" van de pagina's die in het mainFrame komen gedeclareerd.

Nu dacht ik aan een of andere sleep methode in het javascript of zit het probleem ergens anders???

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 06-05 18:51

Creepy

Tactical Espionage Splatterer

Ik zie eigenlijk geen ASP terugkomen hier op een extensie .aspx na :)
move -> W&G

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 13:58

Pelle

🚴‍♂️

Kijk eens naar de functie setTimeout. :)