Forums
This topic is locked
Login and conditional region in Firefox
Posted 31 Jan 2005 13:56:53
1
has voted
31 Jan 2005 13:56:53 Ole Wegard Utne posted:
Hi thereFirefox refuses to read my conditional region (Advanced from Petrov) and also login. Is this perhaps because these regions are located in a library item, and is there a solution for this?
thanks in advance <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
-ole wegard utne
Replies
Replied 31 Jan 2005 19:46:52
31 Jan 2005 19:46:52 Chris Charlton replied:
<i>Advanced Conditional Region</i> is a server-side based product, so in a way there shouldn't be a browser issue since they parse (X)HTML. Can you please post some more info/detail of what is happening?
Replied 31 Jan 2005 20:20:06
31 Jan 2005 20:20:06 Ole Wegard Utne replied:
Even better: I'll post the code, and then you can visit the page www.taptellerfunnet.no/pages/start.asp
Navn: 123 Passord: 123 (bare in mind that it is a beta for the time beeing <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> )
here's the code:
<!-- InstanceBeginEditable name="member" --><!-- #BeginLibraryItem "/Library/Menu.lbi" -->
<link href="../xtra/main.css" rel="stylesheet" type="text/css">
<%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID"
<> "" Then
If (true Or CStr(Session("MM_UserAuthorization"
)=""
Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"
)>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then ' *** Show If User Not Logged In
%>
<form ACTION="<%=MM_LoginAction%>" METHOD="POST" name="login" target="_self" id="login">
<table width="240" height="140" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT">Du må være registrert
for å benytte<br>
denne tjenesten.<a href="regBruker.asp" target="_self"> Registrer deg her</a></span></td>
</tr>
<tr valign="middle">
<td width="53%" align="left" bordercolor="#666666"><font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font> <span class="listTXT">Brukernavn</span></td>
<td width="47%" align="left"><input name="UserName" type="text" id="UserName" size="16"></td>
</tr>
<tr valign="middle">
<td align="left"> <span class="listTXT">Passord</span></td>
<td align="left"> <input name="Password" type="password" id="Password" size="16">
</td>
</tr>
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT">Glemt passord? <a href="loginError.asp">Klikk
her</a></span>
<input type="submit" name="Submit" value="Logg inn"></td>
</tr>
</table>
</form>
<%
End If ' *** Show If User Not Logged In
%>
<%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID"
<> "" Then
If (false Or CStr(Session("MM_UserAuthorization"
)=""
Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"
)>=1) Then
MM_grantAccess = true
End If
End If
If MM_grantAccess Then ' *** Show If User Logged In
%>
<table width="240" height="140" border="0" cellpadding="4" cellspacing="0">
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT"><font color="#000033">Velkommen medlem
nr: <%=Session("MM_UserID"
%><br>
<%=Session("MM_Name"
%> <%=Session("MM_Familyname"
%></font></span></td>
</tr>
<tr valign="middle">
<td width="16" height="16" align="center" bordercolor="#666666"><img src="../img/Options16.png" width="16" height="16"></td>
<td width="195" height="16" align="left"><a href="kontrollpanel.asp" target="_self" class="listTXT">Min
brukerinfo</a></td>
</tr>
<tr valign="middle">
<td width="16" height="16" align="center"><img src="../img/Move16.png"></td>
<td height="16" align="left"><a href="meldinger.asp" target="_self" class="listTXT">Mine
meldinger (<%=(rsMessages_total)%><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle></a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Delete16.png" width="16" height="16"></td>
<td height="16"><a href="regTapt.asp" target="_self" class="listTXT">Registrere
ny tapt</a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Apply16.png" width="16" height="16"></td>
<td height="16"><a href="regFunnet.asp" target="_self" class="listTXT">Registrere ny funnet</a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Stop16.png" width="16" height="16"></td>
<td height="16"><a href="<%= MM_Logout %>" class="listTXT">Logg ut</a></td>
</tr>
</table>
<%
End If ' *** Show If User Logged In
%>
<!-- #EndLibraryItem --><!-- InstanceEndEditable -->
Thanks for your help!
Navn: 123 Passord: 123 (bare in mind that it is a beta for the time beeing <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> )
here's the code:
<!-- InstanceBeginEditable name="member" --><!-- #BeginLibraryItem "/Library/Menu.lbi" -->
<link href="../xtra/main.css" rel="stylesheet" type="text/css">
<%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID"
If (true Or CStr(Session("MM_UserAuthorization"
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then ' *** Show If User Not Logged In
%>
<form ACTION="<%=MM_LoginAction%>" METHOD="POST" name="login" target="_self" id="login">
<table width="240" height="140" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT">Du må være registrert
for å benytte<br>
denne tjenesten.<a href="regBruker.asp" target="_self"> Registrer deg her</a></span></td>
</tr>
<tr valign="middle">
<td width="53%" align="left" bordercolor="#666666"><font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font> <span class="listTXT">Brukernavn</span></td>
<td width="47%" align="left"><input name="UserName" type="text" id="UserName" size="16"></td>
</tr>
<tr valign="middle">
<td align="left"> <span class="listTXT">Passord</span></td>
<td align="left"> <input name="Password" type="password" id="Password" size="16">
</td>
</tr>
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT">Glemt passord? <a href="loginError.asp">Klikk
her</a></span>
<input type="submit" name="Submit" value="Logg inn"></td>
</tr>
</table>
</form>
<%
End If ' *** Show If User Not Logged In
%>
<%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID"
If (false Or CStr(Session("MM_UserAuthorization"
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"
MM_grantAccess = true
End If
End If
If MM_grantAccess Then ' *** Show If User Logged In
%>
<table width="240" height="140" border="0" cellpadding="4" cellspacing="0">
<tr align="left" valign="middle">
<td colspan="2"><span class="listTXT"><font color="#000033">Velkommen medlem
nr: <%=Session("MM_UserID"
<%=Session("MM_Name"
</tr>
<tr valign="middle">
<td width="16" height="16" align="center" bordercolor="#666666"><img src="../img/Options16.png" width="16" height="16"></td>
<td width="195" height="16" align="left"><a href="kontrollpanel.asp" target="_self" class="listTXT">Min
brukerinfo</a></td>
</tr>
<tr valign="middle">
<td width="16" height="16" align="center"><img src="../img/Move16.png"></td>
<td height="16" align="left"><a href="meldinger.asp" target="_self" class="listTXT">Mine
meldinger (<%=(rsMessages_total)%><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle></a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Delete16.png" width="16" height="16"></td>
<td height="16"><a href="regTapt.asp" target="_self" class="listTXT">Registrere
ny tapt</a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Apply16.png" width="16" height="16"></td>
<td height="16"><a href="regFunnet.asp" target="_self" class="listTXT">Registrere ny funnet</a></td>
</tr>
<tr align="left" valign="middle">
<td width="16" height="16" align="center"><img src="../img/Stop16.png" width="16" height="16"></td>
<td height="16"><a href="<%= MM_Logout %>" class="listTXT">Logg ut</a></td>
</tr>
</table>
<%
End If ' *** Show If User Logged In
%>
<!-- #EndLibraryItem --><!-- InstanceEndEditable -->
Thanks for your help!
Replied 31 Jan 2005 21:21:52
31 Jan 2005 21:21:52 Chris Charlton replied:
I tried logging in and seemed to login fine (on Firefox). I'm nost sure what region(s) you say are giving you trouble as I, unfortunately, don't speak much more than English/Spanish (some).
Point out which area(s) are misbehaving please. (If you could, s screenshot of IE->Firefox coparisons of what's behaving different would greatly help.)
Also, I'd <i>double</i> check your <i>Restrict User Access</i> Server-Behaviors, because you might have let slipped a userlevel that you don't allow...just saying, maybe.
Point out which area(s) are misbehaving please. (If you could, s screenshot of IE->Firefox coparisons of what's behaving different would greatly help.)
Also, I'd <i>double</i> check your <i>Restrict User Access</i> Server-Behaviors, because you might have let slipped a userlevel that you don't allow...just saying, maybe.
Replied 01 Feb 2005 10:42:55
01 Feb 2005 10:42:55 Ole Wegard Utne replied:
Hola Chris. Obviously you dont understand the norwegian <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Well here's the function: evaluate if the user is not logged inn or not.
if not ->show the login table.
if loged in -> show the table containing a menu for registered users.
By the way, only the start.asp has a login function that works. I havent copied the login action to the other pages yet, but it should be sufficient to revise the function.
thanks for your help
-ole wegard
I prefere this methode rather than having duplicate pages of everything.
I assume since it is working fine at your Firefox then mine has a bug.
Well here's the function: evaluate if the user is not logged inn or not.
if not ->show the login table.
if loged in -> show the table containing a menu for registered users.
By the way, only the start.asp has a login function that works. I havent copied the login action to the other pages yet, but it should be sufficient to revise the function.
thanks for your help
-ole wegard
I prefere this methode rather than having duplicate pages of everything.
I assume since it is working fine at your Firefox then mine has a bug.
Replied 01 Feb 2005 21:52:25
01 Feb 2005 21:52:25 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>...I assume since it is working fine at your Firefox then mine has a bug.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Maybe, make sure your Firefox is up-to-date. As for older Firefox users (under 1.0), don't worry too much about them, usually early adopters/savvy people who will notice that there's an update notice. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Maybe, make sure your Firefox is up-to-date. As for older Firefox users (under 1.0), don't worry too much about them, usually early adopters/savvy people who will notice that there's an update notice. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
