php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29749 [chm] bug in javascript
Submitted: 2004-08-19 02:33 UTC Modified: 2005-07-31 13:44 UTC
From: jccviking at att dot net Assigned: techtonik (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
 [2004-08-19 02:33 UTC] jccviking at att dot net
Description:
------------
I have found a bug on page tutorial.html
[chm date: 2003-09-06]...

When I try to:

 "Print the selected heading and all subtopics"

I get a bunch of script errors starting with:
 
Line:  43
Char:   4
Error: Object Expected

If I keep clicking the Yes button I get a bunch more.  All have a different line but all say Char 4, Object Expected.

JCC


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-02 13:34 UTC] goba@php.net
What skin are you using?
 [2004-09-03 13:49 UTC] nlopess@php.net
This is unrealted with the skin used. When you try to print all the subtopics it returns a couple of JS errors.
 [2005-04-27 16:59 UTC] vrana@php.net
The problem is with notes - HTML Help creates a file with its own <head> section without any <script src=""> thus loadNotes() failed. Solution may be to move <script src=""> to <body> but I don't know how to do it.
 [2005-07-31 13:44 UTC] techtonik@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Next saturday fixed version will be available for download.

Techinfo:
The problem actually in IE creates a temporary file in temp directory before printing with name like ~hh3434.htm and there is no _script.js to include in this dir, so loadNotes(); just undefined. Good points at http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=449&threadid=894002
http://www.experts-exchange.com/Web/Web_Languages/Q_21080682.html
http://www.faqts.com/knowledge_base/view.phtml/aid/887/fid/124

The problem fixed by checking if functions loadNotes() and displayPage() are present before calling them. We also need to unhide pageContent divs to get something on the paper even if there are no javascript errors. Now html files include default <style> block.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 16:01:28 2024 UTC