WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 xtree selection problem in frames, Redtopia, November 29, 2004
     Re:xtree selection problem in frames, Redtopia, November 29, 2004
         Re:xtree selection problem in frames, Redtopia, November 29, 2004
             Re:xtree selection problem in frames, Redtopia, November 30, 2004
     Re:xtree selection problem in frames, Redtopia, November 29, 2004
         Re:xtree selection problem in frames, Redtopia, November 29, 2004

Subject: Re:xtree selection problem in frames From: Redtopia Date: November 29, 2004

I figured out how to keep the selection... I added a new style:

.selected-inactive {
 background: #CCCCCC;
}

As far as calling the focus/blur functions, I'm having some problems:

onFocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);"

Doesn't work... I get a javascript error when the frame's focus changes. I've been playing around with making these calls via my own focus/blur functions, but I can't seem to get it right.


From: Redtopia
Sent: November 29, 2004
Subject: Re:xtree selection problem in frames

I added the following code to the <body> element:

onFocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);"

This seems to solve the problem of having a bad selection state. However, I would really like to see some kind of hilighting on the selected xtree node when the frame loses it's focus. The selection is an important visual indicator of what is being viewed in the "content" frame. Is this possible? Would this require a modification to the xtree code, or can it be done with stylesheets?

-JP

From: Redtopia
Sent: November 29, 2004
Subject: Re:xtree selection problem in frames

I've got an xtree selection problem when clicking between frames. How do I maintain a single selection in the xtree? I would like to keep the current xtree selection visible, even when the xtree frame is not in focus.

I've got 2 frames: an xtree frame and a content frame.

After clicking on a node in the xtree, it becomes selected. Then when I click in a different frame, and then back to the xtree frame, I can end up with 2 selections. The original xtree node that was selected stays selected, and if I click on a different node, that node also becomes selected. I can do this many times, creating many selections.

Thanks,
-JP






Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX