Ask A Question
Notifications
You’re not receiving notifications from this thread.
How do I embed an internal routes/show page on to an external website?
Hey all,
I've seen websites where you place some Javascript code - and they are able to display information from another website on their website. Wondering how I can do the same? I have a www.xyz.com/maps/id/show page which displays a map of a user with some other details. Any idea how I can embed this same page on an external website www.abc.com/map which shows the same map?
Thanks.
Arjun
I've seen websites where you place some Javascript code - and they are able to display information from another website on their website. Wondering how I can do the same? I have a www.xyz.com/maps/id/show page which displays a map of a user with some other details. Any idea how I can embed this same page on an external website www.abc.com/map which shows the same map?
Thanks.
Arjun
Since most of it is done using Javascript, you could technically copy the code from any example you have.
As for the Rails part, you likely need to get `get` the Json for the user. Also CORS is something to keep in mind.
I've build a couple of JS snippets/embeds. Happy to help with any specific issues.
As for the Rails part, you likely need to get `get` the Json for the user. Also CORS is something to keep in mind.
I've build a couple of JS snippets/embeds. Happy to help with any specific issues.