inc_header - Postet den (566 Views)
Starting Member
jeeper
Innlegg: 34
34
How do you get the login/logoff buttons to reload the page in the same frame? I moved my login to a side menu (using frames), but when I click login, it loads my side menu in the main frame.<
   
 Sidestørrelse 
Postet den
New Member
Sonic
Innlegg: 82
82
use in the login and logout script this java script to reload the main menu
-->
<%
case "login"
if strLoginStatus = 0 then %>
Username oder Passwort falsch
<meta http-equiv="Refresh" content="5; URL=<% = strReferer %>">
<% else %>
Login erfolgreich
<meta http-equiv="Refresh" content="2; URL=<% = strReferer %>">

<SCRIPT language="JavaScript">
<!--
parent.main.location.reload();
-->
</SCRIPT>
<% end if %>




<% case "logout" %>
Logout erfolgreich
<meta http-equiv="Refresh" content="2; URL=<% = strReferer %>">

<SCRIPT language="JavaScript">
<!--
parent.main.location.reload();
-->
</SCRIPT>


the green part is the name of your main frame
an example you can see at www.sonic.selfip.org/page/
<
ich finds genial... bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag smile
Postet den
Starting Member
jeeper
Innlegg: 34
34
doesn't work.
What I did was create a frames page with a side menu. The side menu calls the Inc_header.asp file. What can I add/change in that file to force the reload to occur in the main window?
If I add:
<SCRIPT language="JavaScript">
<!--
parent.main.location.reload();
-->
</SCRIPT>
to inc_header there is no change. If I put it in the sidemenu.asp it gives me a "data must be reloaded error" and loops over and over. <
 
Du må legge inn en melding