Welcome Guest Search | Active Topics | Sign In | Register

Working with Tabstrip Objects in Javascript. Options
Jazzcatone
Posted: Tuesday, July 2, 2013 4:17:36 PM
Rank: Member
Groups: Member

Joined: 7/21/2007
Posts: 11
I have an issue that is sort of a javascript issue however any advice given would be greatly appreciated. I have two tabstrip controls on a web page. When Tabstrip1 is visible on the page Tabstrip2 is not and vice versa.
I am simply trying to run a test in JavaScript to see if a particular tabstrip exists. If it does I want to get the activeindex of the existing tabstrip and then redirect the window giving it certain querystring values. Right now the javescript runs but it always comes back as tabStrip1 being undefined when it is clearly visible. .Any and all insight and advice given would be most appreciated. \

Jason


function keeptabafterclaimchange()
{
var claim = document.getElementById('txtClaim').value
var tab2 = eo_GetObject('TabStrip2');
var tab1 = eo_GetObject('TabStrip1');

var activeindex;

if (document.getElementById(tab1)==undefined)
{
var activetab = 2;
activeindex = tab2.getSelectedIndex();
}

else
{
var activetab = 1;
activeindex = tab1.getSelectedIndex();
}



window.location = "ClaimUpdate.aspx?Claimid=" + claim + "&activetabstrip=" + activetab + "&activetabstripitemindex=" + activeindex;
}

eo_support
Posted: Tuesday, July 2, 2013 4:21:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Unfortunately we do not provide this level of service such as reviewing your code and tell you what's wrong. You will need to ask someone else to do this for you. If you have any specific question about a feature or a function we provide (such as a specific question about function eo_GetObject), we will be happy to assist you. Sorry about it!

Thanks!
Jazzcatone
Posted: Tuesday, July 2, 2013 5:07:25 PM
Rank: Member
Groups: Member

Joined: 7/21/2007
Posts: 11
Ok fair enough. In quick follow up. If I have an eo_Object like below. Is there a built in client side method or property I can use to check for its existence on a page. Any help would be most appreciated.

Jason

// how to check for its existence.
var tab1 = eo_GetObject('TabStrip1');
eo_support
Posted: Tuesday, July 2, 2013 7:09:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

eo_GetObject returns null if the object does not exist.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.