ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John.Bork <John.B...@target.com>
Subject Ambari Views Error
Date Mon, 23 Mar 2015 21:20:33 GMT
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



Mime
View raw message