System.Gadget.Flyout.file gives unspecified error

Hello guys.

the following code is giving a javascript error which says "unspecified error":

System.Gadget.Flyout.file ="channel.htm";

System.Gagdet.Flyout.show =true;

Any clues on why this is happening? btw, the file property is the only one that is missing.

thanks a lot.

[886 byte] By [LuisMiguelAbreu] at [2008-2-15]
# 1
Are you certain it's those two lines causing it as they're okay? Post the rest of the code around it, as I suspect the error is elsewhere.
JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 2

hello.

well, i'm not seeing anything wrong either. as i said in the previous post, i've stepped into the method and the class is missing that property. after rebooting, it started working without any problems. i'm not really sure on why that happened but i can assure that i didn't like having a problem which just disappeared after a reboot...

LuisMiguelAbreu at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 3
Exiting and reloading Sidebar would probably have done the trick.

I've done that since Beta 1 after any Gadget code changes, as it seems to partially cache the Gadget files. Half of the time they're corrupt after you've modified them, so you get really odd error messages! Don't ask me why - it's probably an IE issue.

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 4
The only times I've seen the System.Xxx APIs become inaccessible is when using VBScript - one of the reasons why we recommend using JScript for gadget development. Are you by any chance using VBScript?
BruceWilliams at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 5
No, I tested on Javascript
JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 6
If anyone has a gadget that even intermittently hits this problem, please send it to me - I'd sure like to track this down.
BruceWilliams at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 7
hello.

well, it's a pitty that it's working now (and it really is outside my hands since i've already delivered the code to the guy that asked me to develop it).

LuisMiguelAbreu at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 8
Luis Miguel Abreu wrote:
hello.

well, it's a pitty that it's working now (and it really is outside my hands since i've already delivered the code to the guy that asked me to develop it).


I've created a Repro gadget on the Known bugs in Sidebar page. Bug#11
JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...