URL from Embedded iFrame

Hi
Are any of you aware of a way to get the URL of a parent site that is loading a servoy NG solution into an iFrame ?

Essentially I have a multi tenant solution that I need to switch based on the client loading it. In order to avoid using a Combo Box where the user selects the company concerned I want to extract this from the URL they are using to access the site ie clickdigital.com or servoy.com is this possible ?

effectively I want document.URL that would be triggered using javascript in a native html page.

Many thanks
Gordon

If it is something that could be retrieved using javascript inside the iframe you can make an NG service that executes whatever you want.
You create a service. Add a method to it that executes client side and returns stuff to the server.

If you need more info let me know.

About accessing the parent’s URL from inside the iFrame: https://stackoverflow.com/questions/342 … rom-iframe
So basically you won’t be able to do it unless both parent and iFrame are part of the same domain.