Try

HtmlPage.Window.Alert("Test");

as per this thread http://forums.silverlight.net/t/211409.aspx/1

On Tue, Nov 29, 2011 at 11:07 PM, Greg Keogh <g...@mira.net> wrote:

> >Maybe there is a javascript error on the page causing problems.****
>
> I don’t see one in the browser. I’ve tried running the SL4 app in debug
> and non-debug modes but I get no extra information from anywhere, just the
> same “Failed to Invoke” error. No helpful diagnostic information is
> anywhere that I can find via any trick I can think of so far.****
>
> Even if the JavaScript function doesn’t exist I get the same error.
> InvalidOperationException is all I get and nothing else to help me, so it’s
> not even getting as far as the browser. It’s like a typical security
> roadblock, but there are no hints that it is one in this case. This is just
> a perfectly normal SL4 app with no “weird” things happening, it’s just
> calls a WCF service to send XML back and forth and that’s all working fine.
> ****
>
> I will now compare the html an scripts generated by the VS2010 wizard and
> my live ones.****
>
> Greg ****
>
> _______________________________________________
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>


-- 
Regards,
Jonathan Parker
_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to