|
|
pinTab
Started by Pintexx Support at 09-14-2007 7:40 . Topic has 18 replies.
 
 
|
|
Sort Posts:
|
|
|
|
09-14-2007, 7:40
|
Pintexx Support
Joined on 08-30-2005
Posts 1.574
|
Re: Reload another tab page from serverside tab page code
|
|
|
|
|
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
Joined on 09-11-2007
Posts 8
|
Re: Reload another tab page from serverside tab page code
|
|
|
|
|
Yes i am getting a value (heading of the tab). but error on item.setUrl ?
|
|
|
|
|
Report
|
|
|
|
09-17-2007, 8:31
|
Pintexx Support
Joined on 08-30-2005
Posts 1.574
|
Re: Reload another tab page from serverside tab page code
|
|
|
|
|
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

Joined on 04-19-2007
San Antonio, Texas
Posts 21
|
Re: Reload another tab page from serverside tab page code
|
|
|
|
|
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 |
|
|
|
|