Closed
Bug 224176
Opened 21 years ago
Closed 21 years ago
Geneated page by JavaScript doesn't work
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 114461
People
(Reporter: literakr, Unassigned)
References
()
Details
(Whiteboard: DUPEME)
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 Gecko/20030210
If I generate page by JavaScript, then page is not displayed. There is code
like this one:
<A HREF='javascript:generatePage("str1","str2")'>Click</A>
where JavaScript function "generatePage(str1,str2)" is included by <SCRIPT>
element in HTML header element.
You can try this URL showing the problem:
http://cst.cz/~rliterak/literakr/travelling/montenegro03/film_01.html
JavaScript is located at this URL:
http://cst.cz/~rliterak/js/picture.js
Reproducible: Always
Steps to Reproduce:
1. http://cst.cz/~rliterak/literakr/travelling/montenegro03/film_01.html
2. Click to any picture in the table in above URL
Expected Results:
Show HTML page generated by JavaScript.
Microsoft Internet Explorer 6.0 works fine. Also the latest Opera works fine.
Comment 1•21 years ago
|
||
Mozilla's JavaScript console says that there is an error in picture.js -
generateHeader is not defined.
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
But why? I can't see there the problem. In my opinion "generateHeader" is
defined. What is wrong? I check the sources and still I can't the problem in
the source code...
So, MS IE probably found "generateHeader" if was displayed. If I dramatically
reduced the source code to only one function with call of only one
method "document.writeln" there were similar problems. Page was generated, but
browser still try to download something...
Modified and reduced source code looks like this one (picture.js):
function generatePage (pictureFilename, pictureDescription) {
document.writeln('<HTML><BODY>');
document.writeln('Test');
document.writeln('</BODY></HTML>');
}
Any idea? Thanks.
Reporter | ||
Comment 4•21 years ago
|
||
If everything is defined in only one function, then page is also generated with
some problems - browser still try to transfer some data from HTTP server.
Modified source code is available at this URL:
http://cst.cz/~rliterak/js/picture.modified.js
Probably dupe of bug 114461.
Comment 6•21 years ago
|
||
Exactly
*** This bug has been marked as a duplicate of 114461 ***
*** This bug has been marked as a duplicate of 114461 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Comment 7•21 years ago
|
||
Veriified Duplicate. Radim, you have been cc'ed on bug 114461
so you can follow progress on this issue -
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•