problem in loading milestone/timeline graph in my html page

Bug #421898 reported by Harry (OpenERP) on 2009-08-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
High
Edwin Grubbs

Bug Description

Hello!

I want to display milestone/timeline graph in my html page.
my html page :

<html>
    <body>
    <iframe src ="https://launchpad.net/openobject-addons/+timeline-graph?include_inactive=true&resize_frame=timeline-iframe&" width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

  </body>
</html>

but graph is always in loading phase and display javascript Error in console :
"Error: Permission denied to get property Window.document"

so
Can you tell me where I'm wrong ? How can display this timeline graph in my html page ?

Thanks in advance!

Related branches

summary: - problem in loading milestone/timeline graph in our site
+ problem in loading milestone/timeline graph in my html page
Edwin Grubbs (edwin-grubbs) wrote :

The problem appears to be caused by the javascript in the iframe trying to access its parent to resize the iframe. This works on launchpad, because the page with the iframe and the page inside the iframe are on the same domain name; therefore, the browser doesn't trigger a security error. This was not obvious in Firefox with Firebug, but there was a clear security error when testing it in Safari 4.

Changed in launchpad:
assignee: nobody → Edwin Grubbs (edwin-grubbs)
affects: launchpad → launchpad-registry
Changed in launchpad-registry:
status: New → Triaged
Edwin Grubbs (edwin-grubbs) wrote :

Here is a test file for QAing the fix on edge.

Changed in launchpad-registry:
milestone: none → 3.1.10
Changed in launchpad-registry:
status: Triaged → Fix Committed
Curtis Hovey (sinzui) on 2009-10-02
Changed in launchpad-registry:
importance: Undecided → High
Edwin Grubbs (edwin-grubbs) wrote :

You should now be able to embed the timeline graph into your website, but you will need to remove the "&resize_frame=timeline-iframe" from the url.

Harry (OpenERP) (hmo-tinyerp) wrote :

It's work!
Thanks You!

Curtis Hovey (sinzui) on 2009-10-09
tags: removed: graph
Curtis Hovey (sinzui) on 2009-10-31
tags: added: javascript
removed: timeline

Fixed released in launchpad-project 3.1.10.

Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers