Welcome to Pintexx Forum Sign in | Join | Faq

pinTab

Started by fora at 04-15-2006 12:52 . Topic has 8 replies.

Print Search
Sort Posts:    
   04-15-2006, 12:52
fora is not online. Last active: 20.05.2006 11:02:16 fora

Top 150 Posts
Joined on 04-15-2006
Posts 5
Smile [:)] Problems with changing tab text in client mode
Reply Quote
I add tabs by code inside all tabs:
parent.parent.dodajTabulator();
the dodajTabulator is defined in main page (index.aspx) where i have pinTab control.
            function dodajTabulator()
            {
                var item = __objpinTab1.createItem();
                item.url ='../prva.aspx';
                item.title = 'Prva stran';
                item.text = 'Prva stran';
                __objpinTab1.addDyn(item);
                __objpinTab1.getTabItemByIndex(__objpinTab1.getItems().length - 1);
              }
The first problems appears at the last item. The active tab hasn't change to the new tab just added.
On every page i have the next line of code:
  <body>
        <script language="javascript">
            parent.parent.setTabulatorTitle('<%# getTabTitle() %>');
        </script>
and the function is in main page:
            function setTabulatorTitle(tit)
            {
                var tabItem = __objpinTab1.getActiveTabItem();
                tabItem.text = "" + tit;
                tabItem.title = "" + tit;
            }
The problem is that my text of tabs hasn't changed. The tit has a value.
It looks like that control doesn't render text of tabs or something like that.
Any suggestions?


   Report 
   04-15-2006, 3:52
fora is not online. Last active: 20.05.2006 11:02:16 fora

Top 150 Posts
Joined on 04-15-2006
Posts 5
Smile [:)] Re: Problems with changing tab text in client mode
Reply Quote
I resolved the first problem. I replace:
__objpinTab1.getTabItemByIndex(__objpinTab1.getItems().length - 1);
with:
__objpinTab1.setActiveTab(__objpinTab1.getItems().length - 1);

The problem with text still exists.

   Report 
   04-18-2006, 7:25
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Problems with changing tab text in client mode
Reply Quote

Hi,

setting the .text does not work because the item is not redrawn.

We will provide a setText() method asap.

Regards,
Hans-Peter 

 

 


   Report 
   04-21-2006, 9:16
fora is not online. Last active: 20.05.2006 11:02:16 fora

Top 150 Posts
Joined on 04-15-2006
Posts 5
Re: Problems with changing tab text in client mode
Reply Quote
When will be possible to use setText method?
I create an internet page with tabs, and i want to change text to page title, so user can distinguish between tabs.

   Report 
   04-24-2006, 2:52
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Problems with changing tab text in client mode
Reply Quote

Hi,

we have a new fix where this method is now available.

Please goto www.pintexx.com --> support --> Fix

Regards,
Hans-Peter


   Report 
   04-28-2006, 11:53
fora is not online. Last active: 20.05.2006 11:02:16 fora

Top 150 Posts
Joined on 04-15-2006
Posts 5
Re: Problems with changing tab text in client mode
Reply Quote
Hi.
I downloaded new version upgrade all dll files and JS scripts, but i get the JS error: Object doesn't suport this property or method.
My code is:
                var tabItem = __objpinTab1.getActiveTabItem();
                tabItem.settext("" + tit);
I also try with setText (T not t)
Any help.
Thanks

   Report 
   04-28-2006, 2:45
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Problems with changing tab text in client mode
Reply Quote

Hi,

its

item.setText("Text");

I tried it again and it works for me.
Did you clear browser cache before running ?
The file date of "tab/include/pinTab.js" must be of 4/27.

Regards,
Hans-Peter


   Report 
   04-29-2006, 8:54
fora is not online. Last active: 20.05.2006 11:02:16 fora

Top 150 Posts
Joined on 04-15-2006
Posts 5
Re: Problems with changing tab text in client mode
Reply Quote
Still not working:
                var tabItem = __objpinTab1.getActiveTabItem();
                tabItem.setText("test");
I have cleared the browser cache.
I have the file data 4/24 not 4/27.
I look into your fix and downloaded again the latest fix and all the dates are 4/24.
I use internet explorer, in firefox the text doesn't change, but the error also doesn't accures.

   Report 
   05-01-2006, 1:47
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Problems with changing tab text in client mode
Reply Quote

Hi,

4/24 is OK.

Could you please check if you have a valid tabItem object i.e.

alert(tabItem);

Which mode do you use: grafic(Images) mode or color mode ?
 Does the tab item already had a text after creating ?

If you use the API/client.aspx sample and add this line:

  function getActiveTabItem()
  {
   alert("URL of current tab: " + __objPinTab1.getActiveTabItem().url);
   __objPinTab1.getActiveTabItem().setText("Newtext");
  }

What happens ?

Regards,
Hans-Peter


   Report 
Pintexx Forum » Developer Produ... » pinTab » Re: Problems with changing tab text in client mode