Hi All,

I am currently working on a large ASP.Net AJAX site and have found a
strange issue occuring only with Firefox while making it cross-browser
compatible.

To give an overview, the area of the site that I'm finding problems
with contains a page that includes an AjaxToolkit TabContainer with a
nested TabContainer within each parent tab. The nested tab container
is loaded via a Javascript call to a web service that returns the HTML
of the child tab container to be added to the parent.

I have created a cut-down version of the project that I'm working on
to demonstrate the issue.
The code has been uploaded to PasteBin.com through the following
links:

Default.aspx - http://dotnetdevelopment.pastebin.com/iKuku14C
TabPanel.ascx - http://dotnetdevelopment.pastebin.com/yBkW7f4x
WebService.vb - http://dotnetdevelopment.pastebin.com/8eyspE36

There is no additional code in the code behind for Default.aspx or
TabPanel.ascx, so I have not included these.

The error is triggered in Firefox at line 100 in Default.aspx where it
does: childTabContainer.set_activeTabIndex(0);
The error that Firebug is showing is: "childTabContainer is null"
because the $find on the line above is not picking up the component.
That piece of code is run twice and only seems to fail on the second
call for some reason...

This all works perfectly in IE6, IE7, IE8, Chrome, Safari and Opera.
It is just Firefox that is giving me this problem.

Just to make it even more interesting, if I put a breakpoint on lines
99, 100 or 102 in Firebug, it works properly...

I've tried to do Sys.Application.getComponents to confirm that the
component has been registered and it does exist in the array, but it
still won't get picked up by $find. Does anyone have any ideas as to
why this would be doing it?

Thanks in advance for any help or advice with this,

PhilHalf

Reply via email to