We have some html that looks like this:
<form id="MyUserControl" runat="server" method="post">
<script language="javascript" src="javascript.js"></script>
The javascript file contains something like this:
document.write('<object id="MyUserControl" ');
document.write('classid="MyUserControl.dll#MyNamespace.MyUserControl"');
document.write('height="611" width="951" >');
document.write('<param name="Parm1" value="' + parm1 + '" />');
document.write('</object>');
Essentially, I'd like to be able to display some text or leave standby text in place if the object does not load properly.
The reason for all of this is that we are trying to migrate an old app from FoxPro to .Net while it's still in use. It's a fairly large application and we're converting a screen at a time. We're building .Net user controls and they are displayed in a browser object inside of FoxPro. The html and js above allow us to embed the winforms user control in a web page.
If a particular user does not have a code access group for our application server set up, the user control does not render and the screen just shows the little icon in the upper left corner that looks like something is trying to load. It never does load, but I want to signal the user to email our team to get their access straightened out.
I tried using standby and alt, but neither showed text. All of our users have IE7 and this is just a temporary solution (< 6 months).