Focal Point
[SOLVED] hyperlink to go to tab2 using tabcontrol

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/406103713

December 14, 2009, 03:35 PM
getit
[SOLVED] hyperlink to go to tab2 using tabcontrol
Hi,
I am using a simple tabcontrol in html layout painter with Tab1 and tab2.
If on tab1 page I have a hyperlink when clicked needs to show tab2, what is the onclick code that I should use?. the following does not seem to work.?

document.getElementById('tabitem2').focus();
document.getElementById('tabitem2').activate();

This message has been edited. Last edited by: Kerry,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
December 14, 2009, 04:03 PM
dhagen
The URL should be:

javascript:document.getElementById('tabitem2').click() 



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
December 14, 2009, 04:12 PM
getit
it works..excellent!.
Thank you very much dhagen..


App Studio Version 8202
windows Platform
SQL Server 2008/2012
December 14, 2009, 04:35 PM
getit
Hey,
If this hyperlink is inside iframe1 on tab1 ..it doesn't switch to tab2..should the reference change.?


App Studio Version 8202
windows Platform
SQL Server 2008/2012
December 14, 2009, 04:52 PM
getit
got it , looks like it should be
parent.document.getElementById('tabitem2').click()


App Studio Version 8202
windows Platform
SQL Server 2008/2012