problem in loading milestone/timeline graph in my html page

Bug #421898 reported by Harry (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
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
Revision history for this message
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
Revision history for this message
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)
Changed in launchpad-registry:
importance: Undecided → High
Revision history for this message
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.

Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

It's work!
Thanks You!

Curtis Hovey (sinzui)
tags: removed: graph
Curtis Hovey (sinzui)
tags: added: javascript
removed: timeline
Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote : Bug 421898 Fix released

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.