readium / readium-shared-js

Repository for the shared JavaScript libraries that are used in the SDK-Launchers and other applications developed on top of the SDK
BSD 3-Clause "New" or "Revised" License
78 stars 102 forks source link

Readium fails when using readium index page as source inside iframe on IE #330

Open mahag opened 8 years ago

mahag commented 8 years ago

I have an html page with iframe that has source to readium viewer link as follows

<iframe width="100%" height="500px" id="ifjdfnkjvnjjbk" src="http://example.com/cloud-reader-lite/index.html?epub=epub_content/test.epub" runat="server" ></iframe>

This does open on google chrome but it fails on IE. It shows the book title on top but fails to open the file the loading circle keeps on running and nothing is displayed untitled6

How could this be solved?

rkwright commented 8 years ago

@mahag Are there any errors in the console?

mahag commented 8 years ago

Yes there is an access denied error even though I have added document.domain script as suggested when I looked about this issue on some forums. untitled1

mahag commented 8 years ago

I did try few things in order to skip this error. I added correct domain value in my html page and I was able to skip the error at that point of code but I received the same error on another location inside readium JavaScript file as shown in img untitled7 Any ideas?