I need to recover the url of the a UltraWebTab.tab after she changes in his/her internal navigation. How do I make that?
I get to recover the initial url of the tab and after navigating in the it paginates of the web that opens inside of the tab the address url the initial stays of when the tab was created.
the code in javascript is:
function RecoverUrlTab() { var ultraTab = igtab_getTabById("uwtConsultarProcesso"); if(ultraTab != null) { var Tabs = ultraTab.Tabs; for(i = 0; i < Tabs.length; i++) { var tab = ultraTab.Tabs[i]; var target = tab.getTargetUrl(); } } }
I thank who can help!
Hi,
You may use tab.elemIframe member. For example:
var tab = ultraTab.Tabs[i];var url = tab.getTargetUrl(); // or tab.targetUrlif(url) tab.elemIframe.src = url;
There are also other objects to use like tab.elemIframe.contentWindow.location, etc. However, all that probably is available only within local server. If user will go to www or something like that, then security of browser will block your access to all those objects and you will not get current location (or iframe.src).
Viktor, thank you for the answer, my problem was solved.
Hi viktor,
In our website also we are using the elemIframe object and oTab.elemIframe.contentWindow object. Can you tell me exactly with what security settings in IE we will not be able to access this object ? Also if possible can you tell us a workaround to get the frame object ?
Thanks in advance.