"Syntax error" on button click in iframe (SQL Report)

In the application, I show the SQL report inside iframe. Inside the report there are several buttons for expanding the tree. When I open the URL directly in the browser (Internet Explorer 11), I can use these buttons without any problems. When you click on the buttons with iframe, the following error appears:

SCRIPT1002: Syntax error

I do not know how to handle this error, since there is no error when opening the report directly ...

This may not be necessary, but here is the code iframe:

<iframe name="iframe1" id="iframe1" src="MyUrl/MyReport?SomeParameters"></iframe>

I tried adding rs:Embed=trueto the url but nothing changed.

It may be a problem with the browser, but then the report should not load correctly when you open it directly, or am I mistaken? How can I show the report inside iframeas it is?

+4
source share
1 answer

I found the problem thanks to @grafgenerator. He suggested using Chrome. Due to some settings, I could not upload it to the server. When I wanted to change the settings, I noticed that JavaScript was not activated. After its activation, the errors disappeared.

+2
source

Source: https://habr.com/ru/post/1660374/


All Articles