Page 1 of 1

browser inside div

Posted: Fri May 23, 2014 8:19 am
by Terry Gilliver

I want to load an html page into the content area of the app so that I can still view my header and footer etc. If I were using ajax, i would create a div and then use ajax to load it. Is this possible in Appery?


browser inside div

Posted: Fri May 23, 2014 9:38 am
by Evgene Karachevtsev

Hello Terry,

Please take a look at this link: http://devcenter.appery.io/documentat...

Regards.


browser inside div

Posted: Fri May 23, 2014 12:09 pm
by Terry Gilliver

Hi Eugene,

I have tried your suggestion and it works fine for src='http://appery.io', but if you try replacing it with src='http://google.co.uk', you get an empty iframe. I also tried it with a facebook url 'https://m.facebook.com/Dougiesmeatsltd' and that doesn't work either.

I am a little confused as to why one url will work and not another?


browser inside div

Posted: Fri May 23, 2014 6:54 pm
by Kateryna Grynko

Hi Terry,

When opening page with this tag, we get the following browser console error:preRefused to display 'https://www.google.co.uk/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'./pre
This means there is a protection from the embedding the site into other sites:
https://developer.mozilla.org/en-US/d...


browser inside div

Posted: Fri May 23, 2014 7:09 pm
by Terry Gilliver

Ok, Thanks for the update, i will have to call it directly then and users will have to use the browser back button to return to the app.

Terry