Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

i'm add preventFocus second argument in Tree::select for prevent focus in gecko.

In ie7 works for me, mb there is some test/demo page?

2

Hi Moro,

I have an input field in which I have to enter a path.
When I select this field, I display a Mif.Tree underneath it in order to easily select this path (the tree represents a directory structure).

With Safari 3, when you select an element in the tree, the focus remains on the input field. This is what I want.

With Firefox 3, when you select an element in the tree, the input field looses focus to the current node. In order to act the same way as Safari, I commented out lines 496, 497 and 498 of mif.tree-v1.0.js :

//if(Browser.Engine.gecko) {
//    this.wrapper.focus();
//}

With IE 7, I always loose focus: The current selected node takes it.

Is there a way to prevent this?

Thanks,
Peter