larkante Posted May 8, 2012 Posted May 8, 2012 My application is in an iframe that opens in a page that is in another domain. How to pick the url that called the iframe? Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 In UniURlFrame You assign the URL yourself. Why do you want to retrieve something you already know? Quote
larkante Posted May 8, 2012 Author Posted May 8, 2012 The page http://example.com/ test.html opens in an iframe my application that is in another domain. I want to know how to get the url that called the iframe. In this example the caller url is http://example.com/test.html Thank. Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 I didn't understand. You have a TUniUrlFrame in an uniGUI app right? What URL do you assign to it? Quote
leandroavila74 Posted May 8, 2012 Posted May 8, 2012 I didn't understand. You have a TUniUrlFrame in an uniGUI app right? What URL do you assign to it? I think Larkante said that a domain is an application makes reference to unigui and loads the app within an iframe, which he wants to know is how to find out who made the call domain of the application unigui. That I do not know how. Quote
leandroavila74 Posted May 8, 2012 Posted May 8, 2012 I didn't understand. You have a TUniUrlFrame in an uniGUI app right? What URL do you assign to it? would be something like: www.website.com is called a url like: http://200.163.190.36:8077 that is being called by a iframe Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 would be something like: www.website.com is called a url like: http://200.163.190.36:8077 that is being called by a iframe So answer is 200.163.190.36? Since I'm running the uniGUI server I know what my server IP is which is 200.163.190.36 right? Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 My application is in an iframe that opens in a page that is in another domain. How to pick the url that called the iframe? Your question is ambiguous. Are you owner of that "another domian"? Or someone else has setup a domain with an iframe calling your app url? Can you describe it with a real example? Quote
larkante Posted May 8, 2012 Author Posted May 8, 2012 It is just like leandro said, one page opens my application in an iframe. My system will open at various sites via iframe, so I need to know the url that called the iframe containing my application. Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 I'm not sure if I truly understand you. There are various web pages on the internet which are created by "other" people and those pages contain embedded iframes which call your uniGUI app? Quote
larkante Posted May 8, 2012 Author Posted May 8, 2012 Exactly. With unigui there any way to get the url that called the iframe or so with some cross-domain technique? Quote
Administrators Farshad Mohajeri Posted May 8, 2012 Administrators Posted May 8, 2012 It is a general question related to web technologies. I don't know if it is possible for an iframe to access url of its container. You need to google about it. Quote
larkante Posted May 8, 2012 Author Posted May 8, 2012 I had researched before creating the topic, wondered if had somehow with unigui. But that's okay. Thank you all for your attention. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.