Closed
Bug 206153
Opened 21 years ago
Closed 14 years ago
tips.dk - JavaScript doesn't load essential parts of pages
Categories
(Tech Evangelism Graveyard :: Danish, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: benno, Unassigned)
References
()
Details
(Whiteboard: [bug248549notfixed])
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; da-DK; rv:1.4b) Gecko/20030507
Build Identifier: Mozilla/5.0 (Windows; U; Win98; da-DK; rv:1.4b) Gecko/20030507
I told them, but they insist noone is using Mozilla. They check for browser
version, but only to ask people to download MSIE 6 or NN 6 - which doesn't work
either, I don't actually get that message but I see it in the source!
The source as it appears to Mozilla:
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Dansk Tipstjeneste A/S - Spil Lotto, Onsdags Lotto, Oddset, Tips,
Måljagt, Joker og Boxen.</title>
<meta NAME="title" content="Dansk Tipstjeneste A/S - Spil online på Lotto,
Onsdags Lotto, Oddset, Tips, Måljagt, Joker og Boxen. Se odds, livescore,
fodboldstatistik, lottotal og resultater.">
<meta NAME="description" content="Spil online på Oddset, Tips, Lotto, Måljagt,
Joker og Boxen hos Tipstjenesten. Se odds, livescore, fodboldstatistik, lottotal
og resultater.">
<meta NAME="keywords" content="bookmakere, boxen, dansk automatspil a/s, dansk
tipstjeneste a/s, dansk tipstjenste, dantoto a/s, den lange, fodbold statistik,
handicap odds, handicap-odds, joker, jokeren, lotto, lotto tal, lottotal,
miniquick, måljagt, odds, oddset, online spil, onlinespil, onsdags lotto,
onsdagslotto, pitstop, skrabelod, skrabelodder, spil online, sportsstatestik,
tips, tips & lotto.">
<meta HTTP-EQUIV="Content-Language" CONTENT="">
<title>Dansk Tipstjeneste</title>
<script language="javascript" src="/js/domain.js"></script>
<script language="javascript" type="text/javascript">
// Checkbrowser Object constructor - placed here for global referrence
function checkBrowser(){
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1;
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
return this;
}
var bw = new checkBrowser;
//Get arguments from querystring
function getArgs() {
var args = new Object();
var query = top.location.search.substring(1);
var pairs = query.split("&");
for(var i=0; i<pairs.length; i++){
var pos = pairs[i].indexOf('=');
if (pos == -1) continue;
var argname = pairs[i].substring(0,pos);
var value = pairs[i].substring(pos+1);
args[argname] = unescape(value);
}
return args;
};
var args = getArgs();
var niv1Sel;
var niv2Sel;
var niv3Sel;
if(args.setLevel){
niv1Sel = args.setLevel.split("_")[0];
niv2Sel = args.setLevel.split("_")[1];
niv3Sel = args.setLevel.split("_")[2];
}
</script>
</head>
<script language="javascript">
output='<frameset cols="*,770,*" frameborder="0" framespacing="0" border="0">';
output+='<frame src="framesetup\/blank.html" scrolling="no" noresize>';
output+='<frame src="framesetup\/main_frameset.html'+document.location.search+'"
name="contentArea" scrolling="no" noresize>';
output+='<frame src="framesetup\/blank.html" scrolling="no" noresize>';
output+='<\/frameset>';
document.write(output);
</script>
<noframes>
<a href="http://www.tips.dk/np_tips/index.html"><img
src="http://www.tips.dk/np_tips/pics/pixel.gif" border="0" align="right"></a>
<table width="100%" height="85%" border="0">
<tr align="center" valign="middle">
<td><b>Denne hjemmeside kræver en browser der kan vise frames og dynamisk
html.<br>
Download venligst en nyere browser.</b><br>
<br>
Anbefalede browsere: Microsoft Internet Explorer version 6 eller nyere,
Netscape version 6 eller nyere<br>
Disse kan downloades her: <a
href="http://www.microsoft.com">Microsoft.com</a> | <a
href="http://www.netscape.com">Netscape.com</a></td>
</tr>
</table>
</noframes>
</html>
Reproducible: Always
Steps to Reproduce:
1. Just click on one of the game types (i.e. "Den Lange") in the blue menu line.
2. Middle of page is blank
Actual Results:
Cannot gamble.
Expected Results:
Displayed a menu from which to place bettings. A lot of check boxes.
It used to work! Mozilla 1.3 made minor bugs though, so I told them. Maybe it's
the browser check that messes up things?
They suck.
They don't like people who doesn't use MSIE and their odds are too low!
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Hey... I'm a newbie to this so please don't be harsh on me if I didn't report
this properly. I did search the bug db and the bug MAY be there allready - but
not in words I understand. Also, this MAY not be a bug, but a case of Mozilla
harassment.
Comment 3•21 years ago
|
||
Confirming bug with Mozilla 2003051508 on WinNT4.0.
Reassigning to Browser-General for greater exposure.
Benno: if I click on "Den Lange" more than once, either in IE6
or Mozilla, I see this message highlighted in red in the center:
"Der er ingen kampe i denne spillerunde, der passer til dit valg.
Vælg venligst en anden mulighed fra listen ovenfor."
What does that mean? Thanks -
Assignee: rogerl → general
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → Browser-General
Ever confirmed: true
QA Contact: pschwartau → general
Reporter | ||
Comment 4•21 years ago
|
||
The text informs there's "no active games for your choice because of your
selection" - which is very weird because the default selection is any game. They
must have a problem since you can reproduce that in MSIE. Also, it seems the
other games (i.e. "Vinderen") are somewhat working - they all produce a layout
of checkboxes using some JavaScript?!
But I just get a blank center of the page. Therefore I just reinstalled Mozilla
1.3 DK and got the red message. I installed again 1.4b and get nothing...
Comment 5•21 years ago
|
||
OK, here is the URL for the central frame. It is the white-and-orange
table in the screenshot Benno provided in Comment #2 (via IE):
https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
If you enter this in IE6, you see the table. But Mozilla displays
only a blank page, with these errors in the JavaScript Console:
Error: double is a reserved identifier
Source File: https://games.tips.dk/DTCF/games/LNGN/scr.js
Line: 42, Column: 6
Source Code:
double--;
Error: missing variable name
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 50, Column: 4
Source Code:
var double = 0;
Error: cpr is not defined
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 311
Error: parent.control has no properties
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 321
Error: parent.control has no properties
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 321
Error: parent.control has no properties
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 322
Comment 6•21 years ago
|
||
Oops, I accidentally left out one more error:
Error: rest_m is not defined
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 323
Comment 7•21 years ago
|
||
Note: the errors involving |parent.control| are not important.
Such errors will occur whenever you load a frame independently.
The real problem is the site's use of the keyword |double|
as a variable name. That is a reserved word in JavaScript:
see http://www.mozilla.org/js/language/E262-3.pdf, Sect 7.5.3.
Mozilla correctly raises an error, and that error causes JavaScript
execution to a halt. That results in other errors afterwards, such
as this one from above:
Error: cpr is not defined
Source File: https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
Line: 311
The function cpr() is present in the file, but is not successfully
defined because of the |double| error that occurred earlier.
To prove this, I will attach a modified version of the central frame.
I have placed all JavaScript in-line, and replaced |double| with |doubleX|.
I also had to provide extra escaping in their debugInit() function.
That is, I changed this line:
sHtml += "</script>\n";
with: sHtml += "<\/script\>\n";
This is another mistake in the JavaScript. End-script tags must always
be escaped when they are provided via document.write(). Otherwise, the
HTML parser sees the end-script tag, ending the script block at that spot.
Finally, I removed all references to the |parent| object,
since we are loading the frame as an independent page; and I
commented out this line:
document.domain="tips.dk";
I will attach this modified file below -
Comment 8•21 years ago
|
||
Comment 9•21 years ago
|
||
SUMMARY:
Mozilla cannot load the site's central frame, given in Comment #5.
But with the |double| and "</script>" mistakes corrected, Mozilla
can load the modified file just fine.
Reassigning to Evangelism, so the site can be contacted about this -
Assignee: general → nitot
Component: Browser-General → Europe: West
Product: Browser → Tech Evangelism
QA Contact: general → brantgurganus2001
Version: Trunk → unspecified
Comment 10•21 years ago
|
||
I should note, the "</script>" error above only occurs because I placed
all the sites's JavaScript in-line in my attachment, for editing purposes.
It shouldn't be a problem in the actual site, since that line is part
of an external JS file: https://games.tips.dk/DTCF/games/LNGN/scr.js.
As such, the HTML parser shouldn't see it, so it shouldn't be a problem.
The real problem here is the site's use of a reserved word, |double|,
as a variable name. This variable is declared in the central frame,
and used in the external JS file:
https://games.tips.dk/DTCF/LNGN_getProgram.do?game=OPEN&sport=ALL
https://games.tips.dk/DTCF/games/LNGN/scr.js
That causes the principal error we saw in Comment #5 above.
Mozilla will throw an error on the use of any reserved word as
a JavaScript identifier name. The site can simply change |double|
to |_double| in both of these files, and the error will go away.
For a list of all reserved words, see the specification from ECMA:
http://www.mozilla.org/js/language/E262-3.pdf, Sections 7.5.1 - 7.5.3.
Updated•21 years ago
|
Summary: JavaScript doesn't load essential parts of pages → tips.dk - JavaScript doesn't load essential parts of pages
Comment 11•21 years ago
|
||
euro west non .com open bugs owned by tristan to other
Assignee: nitot → other
Component: Europe: West → Other
QA Contact: brantgurganus2001 → other
Reporter | ||
Comment 12•21 years ago
|
||
They still haven't fixed it.
Today I talked to some guy on the phone because my account was locked. This
happened because I tried to log on in IE and couldn't remember the last
character of my password - because I used Mozillas password manager when I made
my account and paid the 200 Dkr.
He told me the password remembering feature of IE is disabled on their site.
But, interestingly, not to Mozilla.
Comment 14•20 years ago
|
||
I wrote an e-mail to tips.dk about the problem.. here is the answer:
-- Danish --
Vi har løbende set en udvikling i brugen af Mozilla og er desværre godt klar
over at siden ikke kan bruges optimatlt af Mozillabrugere og at man ikke kan
spille via Mozilla.
Detrfor vil vi i efteråret med stor sandsynlighed påbegynde et
udviklingsarbejde, der sigter mod en egentlig implementering af Mozilla på
tips.dk. Dette er endnu ikke fastlagt og jeg kan derfor ikke give dig et mere
præcist svar.
-- end --
-- English translation --
We have seen a development in the use of Mozilla and know that the site can't be
viewed optimal by Mozilla users and that you can't play using Mozilla.
Because of this, we will most likely start in the fall to implement Mozilla on
tips.dk. This haven't yet been planned, so I can't give you a more precise answer.
-- End --
Updated•20 years ago
|
Whiteboard: [bug248549notfixed]
Comment 15•19 years ago
|
||
I havae just bought a game of Lotto with joker on tips.dk using Firefox 1.5.0.1 - so they might have fixed the problems they had. Can anyone confirm this? What about other games than Lotto?
Comment 16•14 years ago
|
||
INCOMPLETE due to lack of activity since the end of 2009.
If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.
Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•