Vista Sidebar Gadget doesn't show popup - System.Gadget.Flyout.show doesn't set true

I have a very strange error. I am unable to get the popup to be displayed on my gadget, despite the fact that it reproduced the departure code symbol for a character from a gadget with a full popup.

Here's the code:

function doFly(i){

var div = 'div_' + i;
flyHTML = $(div).html();

if (System.Gadget.Flyout.show == false){

System.Gadget.Flyout.file = "flyout.html";
System.Gadget.Flyout.show = true;
msgJS(System.Gadget.Flyout.show);
}

else{
System.Gadget.Flyout.show = false;
}


}

      

The msgJS function provides an ActiveX popup for debugging purposes. Even though I set .show to true on the previous line, the value is still false when I call the popup. I cannot get a popup to show the period. At first I thought I was losing click events, but if I stay in the main DOM gadget, the clicks are logged and the rest of the code runs correctly.

What happens in that .show won't be configured at all? I have checked the known bugs and none of them seem to address this. This is going crazy.

0


source to share


1 answer


Update: here's the code I'm using now:

doFly (i) function {



var div = 'div_' + i;
flyHTML = $(div).html();

if (System.Gadget.Flyout.show == false){

    try {
        System.Gadget.Flyout.file = "flyout.html";
        System.Gadget.Flyout.show = true;
        $('a#teamr').text(System.Gadget.Flyout.show);
    }
    catch(e){
        $('a#teamr').text(e);
    }
}

else{
    System.Gadget.Flyout.show = false;
}

      

Which shows that the code is not throwing an exception and the .show value is false. There's a sidebar related error where the gadget loses focus and closes the popup. I can only imagine that I will have to make do. I have a question: what causes the loss of focus? Bizarre.

0


source







All Articles