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 there
Firefox 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:
&lt;!-- InstanceBeginEditable name="member" --&gt;&lt;!-- #BeginLibraryItem "/Library/Menu.lbi" --&gt;
&lt;link href="../xtra/main.css" rel="stylesheet" type="text/css"&gt;
&lt;%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID" &lt;&gt; "" Then
If (true Or CStr(Session("MM_UserAuthorization")="" Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization")&gt;=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then ' *** Show If User Not Logged In
%&gt;
&lt;form ACTION="&lt;%=MM_LoginAction%&gt;" METHOD="POST" name="login" target="_self" id="login"&gt;
&lt;table width="240" height="140" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td colspan="2"&gt;&lt;span class="listTXT"&gt;Du m&aring; v&aelig;re registrert
for &aring; benytte&lt;br&gt;
denne tjenesten.&lt;a href="regBruker.asp" target="_self"&gt;&nbsp;Registrer deg her&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="middle"&gt;
&lt;td width="53%" align="left" bordercolor="#666666"&gt;&lt;font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"&gt;&nbsp;&lt;/font&gt;&nbsp;&nbsp;&lt;span class="listTXT"&gt;Brukernavn&lt;/span&gt;&lt;/td&gt;
&lt;td width="47%" align="left"&gt;&lt;input name="UserName" type="text" id="UserName" size="16"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="middle"&gt;
&lt;td align="left"&gt;&nbsp;&nbsp;&nbsp;&lt;span class="listTXT"&gt;Passord&lt;/span&gt;&lt;/td&gt;
&lt;td align="left"&gt; &lt;input name="Password" type="password" id="Password" size="16"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td colspan="2"&gt;&lt;span class="listTXT"&gt;Glemt passord? &lt;a href="loginError.asp"&gt;Klikk
her&lt;/a&gt;&lt;/span&gt;
&lt;input type="submit" name="Submit" value="Logg inn"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;%
End If ' *** Show If User Not Logged In
%&gt;
&lt;%
MM_authorizedUsers="1,2,3,4"
MM_grantAccess=false
If Session("MM_UserID" &lt;&gt; "" Then
If (false Or CStr(Session("MM_UserAuthorization")="" Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization")&gt;=1) Then
MM_grantAccess = true
End If
End If
If MM_grantAccess Then ' *** Show If User Logged In
%&gt;
&lt;table width="240" height="140" border="0" cellpadding="4" cellspacing="0"&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td colspan="2"&gt;&lt;span class="listTXT"&gt;&lt;font color="#000033"&gt;Velkommen medlem
nr: &lt;%=Session("MM_UserID"%&gt;&lt;br&gt;
&lt;%=Session("MM_Name"%&gt;&nbsp;&lt;%=Session("MM_Familyname"%&gt;&lt;/font&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="middle"&gt;
&lt;td width="16" height="16" align="center" bordercolor="#666666"&gt;&lt;img src="../img/Options16.png" width="16" height="16"&gt;&lt;/td&gt;
&lt;td width="195" height="16" align="left"&gt;&lt;a href="kontrollpanel.asp" target="_self" class="listTXT"&gt;Min
brukerinfo&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="middle"&gt;
&lt;td width="16" height="16" align="center"&gt;&lt;img src="../img/Move16.png"&gt;&lt;/td&gt;
&lt;td height="16" align="left"&gt;&lt;a href="meldinger.asp" target="_self" class="listTXT"&gt;Mine
meldinger (&lt;%=(rsMessages_total)%&gt<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td width="16" height="16" align="center"&gt;&lt;img src="../img/Delete16.png" width="16" height="16"&gt;&lt;/td&gt;
&lt;td height="16"&gt;&lt;a href="regTapt.asp" target="_self" class="listTXT"&gt;Registrere
ny tapt&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td width="16" height="16" align="center"&gt;&lt;img src="../img/Apply16.png" width="16" height="16"&gt;&lt;/td&gt;
&lt;td height="16"&gt;&lt;a href="regFunnet.asp" target="_self" class="listTXT"&gt;Registrere ny funnet&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left" valign="middle"&gt;
&lt;td width="16" height="16" align="center"&gt;&lt;img src="../img/Stop16.png" width="16" height="16"&gt;&lt;/td&gt;
&lt;td height="16"&gt;&lt;a href="&lt;%= MM_Logout %&gt;" class="listTXT"&gt;Logg ut&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;%
End If ' *** Show If User Logged In
%&gt;
&lt;!-- #EndLibraryItem --&gt;&lt;!-- InstanceEndEditable --&gt;

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-&gt;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 -&gt;show the login table.
if loged in -&gt; 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>

Reply to this topic