PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Progress » Bug #29

HTML_Progress will fail when php script runs inside frames

Details

Submitted2003-09-22 17:30 UTC
Frominfo at rhalff dot com
Assignedfarell
StatusClosed
PackageHTML_Progress
PHP VersionIrrelevant
OSlinux
Roadmaps(Not assigned)

Comments

[2003-09-22 17:30 UTC] info at rhalff dot com

Description:
------------
The javascript of HTML_Progress will fail if the php script is run within a HTML frame.

The proper target would be 'self' and not parent I think.

sollution: change all occurences of parent. to self.

parent would only apply if the progress bar is in an other (parent) window then the running script, which is not likely to happen.

Reproduce code:
---------------
// calling example script from an iframe

<iframe src="docs/HTML_Progress/examples/progress1.php"></iframe>

Expected result:
----------------
Nice progressing bar.

Actual result:
--------------
in Mozilla:

Error: parent.addprogress is not a function
Error: parent.setmessage is not a function

in IE:

Object doesn't support this property or method.
!? :-D