Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
I need to recover the url of the a UltraWebTab.tab
posted

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!

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    You may use tab.elemIframe member. For example:

    var tab = ultraTab.Tabs[i];
    var url = tab.getTargetUrl(); // or tab.targetUrl
    if(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).

Children