[#346] Iframe fully loaded? | Wordpress

Migrated from Redmine #346 | Author: Marko Hofmann
Status: Feedback | Priority: High, I’m very impatient | Created: 2019-02-26


Hi there,

I use the wordpress plugin of simplybook.me and I would like to implement a gift of 7% if the customers pays in advance.
It’s no problem for me doing this with javascript, as there is the gift app.

The only problem is the wordpress plugin uses an iframe, and I have to determine when the dom is loaded.
I think this would work with a callback function, that gets me notified when I can access the dom.

I saw there is an API App with a callback Url, can I use this for this purpose, if yes how?
I would be happy with an alternative solution too.

Many thanks in advance.

Marko

Marko Hofmann wrote:

Can I add an Access-Control-Allow-Origin Header?

Vitaliy Kordiak wrote:

Hi Marko,

Our WordPress plugin is essentially a shell over the widget.
Our widget has limited capabilities. And unfortunately this feature is not supported.

Marko Hofmann wrote:

Vitaliy Kordiak wrote:

Hi Marko,

Our WordPress plugin is essentially a shell over the widget.
Our widget has limited capabilities. And unfortunately this feature is not supported.

Yeah I noticed that, it’s basically an iframe.

Is it possible for you to add an header information via PHP or Webserver to Praxis-Natur-Heilung - Mag. Robert Haas | Webseite und Online-Buchungen ?

Like that: enable cross-origin resource sharing

Access-Control-Allow-Origin: https://www.praxis-natur-heilung.at/

That would really help me much!

Dmytro Bondarev wrote:

Unfortunately it is not possible because of security reasons.

Marko Hofmann wrote:

Dmitry Bondarev wrote:

Unfortunately it is not possible because of security reasons.

So I would have to build the hole calender with the API from scratch just to have that feature???

I guess I am also not allowed to use javascript directly on Praxis-Natur-Heilung - Mag. Robert Haas | Webseite und Online-Buchungen

so sad…

Dmytro Bondarev wrote:

You can use google tag manager custom feature and add your script.
Also you can sendMessage from google tag manager to your iframe.

Marko Hofmann wrote:

Dmitry Bondarev wrote:

You can use google tag manager custom feature and add your script.
Also you can sendMessage from google tag manager to your iframe.

Thank you very much, it worked perfectly!

I already lost the hope <3