On Nov 27, 10:12 am, pbd22 <dush...@gmail. comwrote:
Hi.
Can somebody tell me how to prevent a postback
when I click on the little "plus" sign next to the
treenode's root folder? It postbacks and I have to
restart a video stream coming to the page via an
iframe.
I have tried javascript:void (0) and that doesn't work.
anybody?
thanks.
I didn't want to deal with that either so I wrote my own treeview
using javascript.
First I put a Plus/Minus image box in front of a div then added all
the nodes to the div as labels
Then when someone clicks the div I change the image to the plus/minus
and expand/contract the div by setting all the subnodes visibility to
visible and position to static for plus and visibility to hidden and
position to absolute for minus
The position absolute will allow the div directly below that one to
move up into the blank space then when static is put back everything
returns to its rightful place.