[Dojo-interest] it works every other time

Jay Onda jay.onda at gmail.com
Tue Apr 25 22:59:48 MDT 2006


Hey gang!

I've been stuck trying to figure out this bug. Im not too sure if its dojo
related, but i know er... hope that someone has experienced this.

I have a tab pane which loads 2 jsp pages via href. (in simple terms)
The two jsps are foo.jsp and bar.jsp.

In each jsp, I have 3 containers,
foo.jsp
<div id="containerOne">, <div id="containerTwo">, <div
id="containerThreeForFoo">

bar.jsp
<div id="containerOne">, <div id="containerTwo">, <div
id="containerThreeForBar">

The information loaded up in "containerOne" and "containerTwo" contains the
same information.
so onload, i have a script that inits each tab.
onload="initTabOne();"
onload="initTabTwo();"

And they both call the function populateContainerOne();
populateContainerTwo(); and a few other custom calls to do stuff for the 3rd
container.

So I load up the page and see that tab1 rendered correctly.
I click tab 2, and the containers for "containerOne" and "containerTwo" are
blank.
I click tab 2 again, and viola! its there! When I click one more time, its
gone.  So with every other click, the page loads correctly.

I did some investigations checking to see if there were any js issues.
nothing in the log.
I do some debugging in venkman, check the rendered source and those all fly.
With the DOM inspector (FF) theres nothing.
After i click tab 2 again, its there!

My inital thought was... is it because the first two containers have the
same id?
Is this possibly some tab loading bug?

When rendering the 2 jsps directly (without calling it from the tab pane) it
works without a hitch.

I hope someone has an idea of what im talking about.
any advice, as always, is appreciated.

Thanks again~!
-Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20060425/4f8e82bd/attachment.html


More information about the Dojo-interest mailing list