Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

Problem changing src of an iframe in HTML-component when using Render all pages in one HTML file option

My Project has a main page and a child iframe that changes the URL conforming to the options I set.

I am using the following line to change the URL src in the child iframe:

Appery('workArea').html("");

where :
workArea = the name of the HTML component.
myPage.html = the page I want to display inside de iframe.

And it works fine, but when I set the option in the Project Apps Setting and test, the App it does not find the iframe page.

What is the correct sintax to call a URL inside the iframe using this option.

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

Problem changing src of an iframe in HTML-component when using Render all pages in one HTML file option

Hello Joni,

We are working on this issue and will report to you as soon as we have some update.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Problem changing src of an iframe in HTML-component when using Render all pages in one HTML file option

Hello Joni,

If you set "Render all pages in one HTML file" Appery.io generates only one html file, so there are no any another html files. If you want to put a page content to the html file, please read it with jquery selector, e.g.:

prevar myPage = $('[data-url="myPage"]');/pre

Return to “Issues”