Hi John,

Perhaps you can have the link within your View to launch the Job History Server 
page in a new tab (I.e., target="_blank")?

Yusaku

From: "John.Bork" <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, March 24, 2015 6:20 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Ambari Views Error

Hi, I am developing a Ambari View in which one component of it is to provide 
links to jobs on the Job History Server. When the link is clicked, the iframe 
that held the view now goes to the Job History Server and throws the following 
error in the browser console.

Uncaught SecurityError: Blocked a frame with origin <Ambari View> from 
accessing a frame with origin <Job History Server> Protocols, domains, and 
ports must match. step9_view.js:1
App.MainViewsDetailsView.Em.View.extend.resizeFunction step9_view.js:1
(anonymous function)

The link is inserted into a bootstrap tblflat element row from which it can be 
clicked.

Also, after the link is clicked and the iframe opens the Job History Server, 
the iFrame height attribute is set to auto which causes the height to shrink 
between 100 and 200 pixels. Is this the correct action, or should the iframe be 
prevented from following the link in the first place? What is the expected 
behavior?


- John Bork


Reply via email to