Welcome to Pintexx Forum Sign in | Join | Faq

pinTab

Started by Pintexx Support at 09-14-2007 7:40 . Topic has 18 replies.

Print Search
Sort Posts:    
   09-14-2007, 7:40
Pintexx Support is not online. Last active: 25.08.2010 06:24:55 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.840
Re: Reload another tab page from serverside tab page code
Reply Quote
Hi,

that's the latest version.

Could you please

alert(item.text) before calling item.steUrl("") ?

Regards,
Hans-Peter


   Report 
   09-14-2007, 10:13
vkarunkumar is not online. Last active: 14.09.2007 19:12:35 vkarunkumar

Top 100 Posts
Joined on 09-11-2007
Posts 8
Re: Reload another tab page from serverside tab page code
Reply Quote
Yes i am getting a value (heading of the tab). but error on item.setUrl ?
   Report 
   09-17-2007, 8:31
Pintexx Support is not online. Last active: 25.08.2010 06:24:55 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.840
Re: Reload another tab page from serverside tab page code
Reply Quote
Hi,

is must be

item.setUrl("http://www.yahoo.com");

Could you please try

item.setText("test");
or
item.setTitle("test");

Regards,
Hans-Peter

   Report 
   09-21-2007, 4:45
BeemerBiker is not online. Last active: 13.04.2009 23:56:12 BeemerBiker



Top 25 Posts
Joined on 04-19-2007
San Antonio, Texas
Posts 23
Re: Reload another tab page from serverside tab page code
Reply Quote
The setUrl works, you have to return true or the tab you clicked is shown instead of the one you want.

function tabEventBeforeTabClick(lastTabItem)
{
var thisTab = __objPinTab1.getTabItemByIndex(lastTabItem.index);
if(lastTabItem.index == 0) // Acquisition is at 0
{
thisTab.setUrl("../Acquisition.aspx?Initialize=true");
return true;
}
}

If you return false then a page_load does occur but the page is never shown as the ItemClick replaces that page before it is rendered. For example, the following code does a page load and then a postback to the same page.

function tabEventBeforeTabClick(lastTabItem)
{
var thisTab = __objPinTab1.getTabItemByIndex(lastTabItem.index);
if(lastTabItem.index == 0) // Acquisition is at 0
{
thisTab.setUrl("../Acquisition.aspx?Initialize=true");
thisTab.netPostback("Cleanup");
}
}

In Acquisitions.aspx page_load one would have:
if (IsPostBack)
{
string strTemp2 = Request.Form["__EVENTTARGET"];
if (strTemp2 == "Cleanup")
{
// cleanup functions here
Response.End();
}
}
else
{
string strTemp1 = Request.QueryString["Initialize"];
}


For what it is worth, both of the above requests are executed when the BeforeClick is run

   Report 
  Page 2 of 2 (19 items) < 1 2
Pintexx Forum » Developer Produ... » pinTab » Reload another tab page from serverside tab page code