Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabstript caption problem.

Status
Not open for further replies.

dk2006

MIS
Jan 19, 2006
53
US
Hello all, I have search everywhere trying to fix the problem. I tested on multiple windows and IE. Most machines on my network load this page fine. Only a few one (XP SP2 with IE7 and Win 2k server with IE6) has problme. I tested on other machines with similar OS and IE, and they are ok. The error message is "Object doesn't support this property or method".
here's where the error appears... the line in [red]red[/red]
Code:
<object class="blkText" id="TabStrip1" name="TabStrip1" 
			style="POSITION: absolute;LEFT: 5px; WIDTH: 600px; TOP: 100px; HEIGHT: 378px;" 
			classid="clsid:1EFB6596-857C-11D1-B16A-00C0F0283628" VIEWASTEXT>
			<param NAME="_ExtentX" VALUE="20267">
			<param NAME="_ExtentY" VALUE="13309">
			<param NAME="TabWidthStyle" VALUE="0">
			<param NAME="MultiRow" VALUE="0">
			<param NAME="Style" VALUE="0">
			<param NAME="ShowTips" VALUE="0">
			<param NAME="TabFixedWidth" VALUE="0">
			<param NAME="TabFixedHeight" VALUE="0">
			<param NAME="HotTracking" VALUE="0">
			<param NAME="MultiSelect" VALUE="0">
			<param NAME="Placement" VALUE="0">
			<param NAME="Separators" VALUE="0">
			<param NAME="TabMinWidth" VALUE="1000">
			<param NAME="TabStyle" VALUE="0">
			<param NAME="ImageList" VALUE="">
			<param NAME="_Version" VALUE="393216">
			<param NAME="MousePointer" VALUE="0">
			<param NAME="Enabled" VALUE="1">
			<param NAME="OLEDropMode" VALUE="0">
		</object>
		
		<script LANGUAGE="javascript">
		<!--
			[red]document.all.TabStrip1.Tabs(1).Caption		= "General";[/red]
			document.all.TabStrip1.Tabs.Add(2).Caption	= "Page Admins";
			document.all.TabStrip1.Tabs.Add(3).Caption	= "Public Content";
			document.all.TabStrip1.Tabs.Add(4).Caption	= "Private Content";
			document.all.TabStrip1.Tabs.Add(5).Caption	= "Authorizations";
		//-->
		</script>
Please help.

thanks,
dk
 
Give the page some breathing time such as this see if it behaves.
[tt]
<script LANGUAGE="javascript">
<!--
function y() {
document.all.TabStrip1.Tabs(1).Caption = "General";
document.all.TabStrip1.Tabs.Add(2).Caption = "Page Admins";
document.all.TabStrip1.Tabs.Add(3).Caption = "Public Content";
document.all.TabStrip1.Tabs.Add(4).Caption = "Private Content";
document.all.TabStrip1.Tabs.Add(5).Caption = "Authorizations";
}
window.onload=y;
//-->
</script>
[/tt]
 
Thank for responding. I have tried it and still had the same problem. I put in function. call INIT function on form load. Function INIT call function y with delay.

any more thought?

dk
 
I put in function. call INIT function on form load.

Have you tried putting it in the window onload handler instead, as tsuji showed? As far as I know, forms do not have a 'load' handler.

Also, does the non-working machine have any different security or active scripting settings?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
that's where I put it. form onload event call INIT function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top