Liferay iframe java script document unavible

I have a project based on liferay-portal-6.2-ce-ga5. On my page, I want to have an iframe with dynamic height.

Right now I have my iframe like this:

<iframe id="1231-iframe" nam="iframe-name" src="http://localhost:123/ca-clickableDummy/test.html" 

Page Content (on payara41):

 <!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> <div style="height: 600px;background-color: #3c763d"> sadas</div> </body> </html> 

but if I want to do something with the contents of the iframe, I get an error:

Error: Permission denied to access the “document” property

No matter what I do from jquery / js, I cannot access this property, which blocks me.

Can someone help me?

+5
source share

All Articles