I have a complex page that can be customized and needs to be embedded on the sites of some clients. For each client, it should look the same, but the parameters may be slightly different. The page also contains a custom object that uses the plugin in the browser.
I had 2 ideas for this:
- Using iFrame - so I just insert my page and pass the parameters to the Query String.
- Using a remote JS file - for example, SDK for Facebook and other Work. Passing parameters in JS code. As far as I understand, I can just put some βparentβ div on the page and the remote JS file, which should fill the parent div with the necessary elements.
Which should i use? What are the cons / pros of each?
Thanks!
Roman source share