CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 6/18/2004 11:24:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
netclectic
Asp.Net User
tabstrip, javascript getAttrbute6/18/2004 11:24:03 AM

0/0

I've been searching for a solution to dynamically changing the selectedindex of a tabstrip using javacript and so far have been unsuccessful.

I figured i'd give it a bash myself but have been having some problems. I'm trying to chande the selected tab to enable me to focus a particular control, so far i've got this:
function focusControl(control)

{
var aControl = control;
while ((aControl.parentElement != null) && (aControl.parentElement.tagName != 'PageView'))
{
aControl = aControl.parentElement;
}

if ((aControl.parentElement != null) && (aControl.parentElement.tagName == 'PageView'))
{
var pageControl = aControl.parentElement;
var tabStrip = document.getElementById('_TabStrip');
for (var child in tabStrip.children)
{
if ((child.getAttribute("_type") == "tab") &&
(child.getAttribute("targetID") == pageControl.id))
{
child.fireEvent('onclick');
break;
}
}
}
control.focus();
}


the problem i'm having is that i just get a 'property or method not supported' error when it hits child.getAttribute. I can see in the source of the tabstrip that this is being assigned for the control so i don't understand why it's not supported.

Any ideas? Or anybody know a better way of achieving this?
netclectic
Asp.Net User
Re: tabstrip, javascript getAttrbute6/22/2004 9:51:35 AM

0/0

Somebody must have managed to change the selected tab using javascript?

I've seen this asked a few times with no reply, surely this is possibe?
netclectic
Asp.Net User
Re: tabstrip, javascript getAttrbute7/14/2004 2:02:58 PM

0/0

one last bump in desperation...
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:





Search This Site:










ibs like the old bbs's?

how do i clear the recent projects list in vs.net 2005?

dnn2.0.4:: questions about vendors and banners (part two)

formatting date in vwd

using vs.net to copy dnn to commercial host?

visual studio 2005 web deployment project especial characters

logging in from multiple pages

installing survey and user online modules

please help..

.text

validation with a tree view/form view

opening up new possibilities for inter-module processes

button.usesubmitbehavior=false comments

convert classifieds starter kit to work with ms access

minrequiredpasswordlength not recognised with mysql as database

preview button

checking for null

module alignment

localization issues stumped

get request user windows account

how to use active directory (ad) for authentication

are there any exams for asp.net ?

forms based authentication not.. authenticating!

skin making tutorial

can container sizes be controled in dotnetnuke 3.0.13?

remoting client activated

drag and drop controls to asp:table designer mode not working

menu

passing linefeeds in string variable generating javascript

"cell" link ie wierdness in menu list <li> with class aspnet-menu-leaf

 
All Times Are GMT