Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error: Expected ')' in IE

Quote Reply
Error: Expected ')' in IE
(Gossamer Links 3.3)

No error in Mozilla Firefox.

Line: 18
Char: 30
Error: Expected ')'
Code: 0
URL: homepage

<script type="text/javascript">
//<![CDATA[
registerEvent(window, 'onload', function () {
var loginbar = document.getElementById('loginbar');
if (!loginbar)
return;
var loginlink = loginbar.firstChild;
if (loginlink.className != 'out')
return;
var cookies = document.cookie.split(';');
for (var i = 0; i <cookies.length; i++) {
Line 18: if (cookies.match(/^\s* /s=[0-9a-f]{32}\s*$/)) {
loginlink.href = 'http://www. .com/cgi-bin/user.cgi?logout=1';
loginlink.className = 'in';
loginlink.firstChild.nodeValue = 'Logout';
break;
}
}
});
//]]>
</script>

So what is the problem?

Last edited by:

HopeForYou: May 27, 2009, 2:34 PM
Quote Reply
Re: [HopeForYou] Error: Expected ')' in IE In reply to
What is your Setup => User Options => user_cookie_prefix set to?

Adrian
Quote Reply
Re: [brewt] Error: Expected ')' in IE In reply to
brewt wrote:
What is your Setup => User Options => user_cookie_prefix set to?


it was "/ "

now "glinks_usercookieprefix_" and the issue is resolved.

Thank you!
http://www.hopeforyou.com

Last edited by:

HopeForYou: May 31, 2009, 6:24 PM