F
F
Fox19852016-07-12 13:36:26
PHP
Fox1985, 2016-07-12 13:36:26

Is it possible to translate data from a third party site into an iframe?

Good afternoon!
I don’t know how correct this question is, but is it possible to translate the information of a third-party site loaded into an iframe or, for example, replace some words with Russian ones.


<?php if (WLS_Main::$settings['wls_author_linking'] == '1') {

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ablizin, 2016-07-12
@Fox1985

I'm assuming you want to do it through the frontend with JavaScript otherwise this question wouldn't arise (curl and all), you can do it with jQuery like this:
Next, we do everything we need with html, and what we get is inserted instead of an iframe, but the catch is that it just won’t work from another domain unless the “protection” is turned off there (until they include Access-Control in the headers -Allow-Origin: *), and until this is done it will be:

Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin

A
Alexander Aksentiev, 2016-07-12
@Sanasol

No

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question