views:

233

answers:

0

We're doing some preliminary explorations of Windows Desktop Gadgets here at our company and we've decided to try our first one simply by embedding an IFRAME inside the gadget HTML and pointing it to a web page we already have hosted on our intranet. The page on our intranet includes JQuery (whose calls seem to be working inside the page), and is written with ASP.NET WebForms.

The problem is that when we click on a LinkButton on the page, the gadget throws us an error. I've consulted the MSDN docs, and can't find anything that would lead me to believe that there's a security setting that precludes this, but here we have it. We've also tried simply embedding an IFRAME on a webpage which gets opened via IE (not hosted as a gadget, and it works fine).

__doPostBack('repeaterFBRStaff$ctl03$lbOfficePhone','')

We get the following error:

Microsoft JScript runtime error: Object expected

Does anyone have any insight as to why this is happening? Our next move is to re-implement the page as a "native" gadget without the IFRAME, and make all of the calls via Ajax requests to webservices, but for the simple proof of concept, we'd like to get the IFRAME technique working if it's possible.

Our IFRAME container code looks like this:

<html>
<head>
    <title>Dialer</title>
</head>
<body>
    <iframe src="http://intranet.ourcompany.com/Search/Search.aspx" name="myIFrame"
        id="idIFrame" height="176" width="330" scrolling="auto" frameborder="1"></iframe>
</body>
</html>