Inserting a page from one site into another

0

I have a site developed in a CMS and in a certain page of this site, I need to insert another page that was developed without the aid of the CMS. To be more precise, this page I am trying to incorporate into my site is a dynamic price table that uses the HTML and JavaScript language.

Given that this my CMS website was all developed with the help of a plugin that works with shortcodes. In this plugin there is a shortcode where you can add HTML code.

Knowing this, I researched ways to embed this page (rate card) within my CMS website.

The first alternative I found was through the iframe , however when trying to access the site page, the browser reports that that page is trying to load scripts from unsafe sources, and ends up "blocking "the frame where the table would be displayed, leaving only a blank space. You can enable the site to load unsafe scripts, however you need to click on a very discreet "shell" that is in the upper right corner of the browser, which is a negative point for site visitors.

The second alternative would be to copy the whole html code from the price table, and insert it into the shortcode, in the same way the iframe was inserted. In trying to insert the entire code into the page, I realized that when loading the page all the formatting that was in the site layout, it was unconfigured, I believe because of some css / style sheet conflict.

So, I ask the following questions:

  • Is it possible to insert the table by IFrame without the browser blocking the content on account of the warning that "the site is trying to load scripts from unsafe sources"?

  • If by IFrame is not possible, how can I do to resolve this problem of site layout unconfiguration, when the price table is inserted?

I leave here the table page: link

And the CMS site page where I'm trying to embed the table: link

I'll be grateful if anyone can give me a light on this problem. :)

    
asked by anonymous 12.05.2017 / 20:42

2 answers

0

You can use iFrame, or jQuery with Ajax to call this page.

$.ajax({
  url: 'SUA URL'
  success: function(data){//}
});
    
12.05.2017 / 20:55
0

Look, I'm using Chrome 67 and iframe worked ... I opened the second link, for me it gave a 404 error, but I edited it by the code inspector and instead of the error message I inserted the iframe without problems, of the same way that opening directly:

<div class="col-md-12">
  <iframe src="https://piscinafacil.com.br/tabela2.html"width="100%" height="900"></iframe>
</div>

The only problem I had was the characters ², which for me appear here as ò . Probably javascript is fetching values that are not UTF-8, or if it's a separate javascript see if it's saved in UTF-8.

    
13.07.2018 / 17:53