Home » HTML » HTML_Progress » Bug #29
HTML_Progress will fail when php script runs inside frames
Details
| Submitted | 2003-09-22 17:30 UTC |
|---|---|
| From | info at rhalff dot com |
| Assigned | farell |
| Status | Closed |
| Package | HTML_Progress |
| PHP Version | Irrelevant |
| OS | linux |
| 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