Good afternoon. I developed a project for fast communication with customers, similar to the American service, but reworked under the Russian realities. The fact that now the user creates their own page in the service and places a link to your website page in the social.network, etc. But now there is a demand for creating a multi-user web widget that people can embed on your website. The question is, what is better to use tools for such tasks? You need that people can insert the widget code on the website, and therefore displayed his personal content from the page in my service. For example how I have done it jivosite, vk, facebook, etc.
At the moment the whole service I built in PHP together with a MySQL database. I would like to understand the principle of operation of the widgets and that their development is worth exploring.
As mentioned above, Yes, you can and ifram, but it has a drawback. It can broken not on all clients.
On account of the script, I think this is the best option, though complicated.
We once implemented a widget, only a little different. I will describe how we did.
The user had to place a div where you had to load our widget. And connected a single js file that is responsible for everything. That is, he added your styles, checked on jquery and if no, then connect,
So he connected me.card.
In that div, which is placed initially, was gradually filled with the desired form.
And the overall picture was generated of the whole widget.
Also provided versionist widget that would have the users who have already put the widget did not should communicate after updating the code.
Yes, quite not easy, but they did work.
Darrin.Daniel answered on June 10th 19 at 15:43
Ifram, which displays the appropriate page with your service.
You can, of course, you're tripping, and draw JS-om the whole interface on the fly via a download from your server script, but it is quite a chore. Therefore, ifram.
Leora answered on June 10th 19 at 15:45
I don't know. Like the developer and have already developed a project and just open the website where the widget and see what it's made of, suddenly became a challenge?
Widget is nothing but the normal html, css, js and any backend.