E
E
Eugene Ten2015-08-12 16:19:26
Classmates
Eugene Ten, 2015-08-12 16:19:26

Users not being highlighted when the invite widget is invoked?

I use this widget: https://apiok.ru/wiki/pages/viewpage.action?pageId...
If you just open it in a new window, everything works with a bang. If I open in an iframe without st.return, then users are not highlighted, and at the end of the page is <script>window.close();</script>.
Perhaps this is due to the fact that it is not called from the domain that is registered for the game, because. if set st.return, then it redirects to the url of the view

code=PARAM&message=Widget should only be called from ok.example.com
.
Can this be avoided somehow? Why doesn't it throw an error if the parameter is not set?
The game is set to ok.example.comand the widget is called with example.com.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2015-08-12
@Vjaka

And how do you plan to handle the closing of this iframe if you don't pass a handler?
According to the correct one, you need to pass the return url and in it, through postmessage, inform the main page that the dialog is completed and close the iframe.
An example with such an implementation is available at https://github.com/apiok/js_sample_widgets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question