[CLOSED] Loading Java Applet

  1. #1

    [CLOSED] Loading Java Applet

    Hi,

    I am integrating the RealObjects editor-on NG editor into our Ext.NET app. I can easily load it via an AutoLoad URL in a panel (IFrame mode); but I'm finding that prompt boxes are appearing underneath the panel, as shown in the screenshot (I have the loadmask showing, and the editor on the bottom half; with an ext prompt box showing):

    Click image for larger version. 

Name:	Capture.JPG 
Views:	126 
Size:	33.3 KB 
ID:	3311

    Is there something I can do to stop this from happening? Or, is there a better way to integrate a java applet, aside from the AutoLoad method?

     <ext:Panel runat="server" ID="pnlDocumentEditor" Title="[no document loaded]" Icon="Exclamation"
                                    MonitorResize="true" Layout="FitLayout">
                                    <AutoLoad Url="../../Scripts/plugins/edit-on-ng/samples/custom/index.html" Mode="IFrame"
                                        MaskMsg="Loading editor.." ShowMask="true" Method="GET" Callback="pnlCards.setHeight(600);">
                                    </AutoLoad>
                                    <Listeners>
                                        <Resize Handler="if(typeof pnlDocumentEditor_IFrame != 'undefined'){pnlDocumentEditor_IFrame.eong.resizeEditor(this.lastSize.width - 20, this.lastSize.height - 50);}" />
                                    </Listeners>
                                </ext:Panel>
    Ext.Msg.prompt('Report Name', 'Choose a new report name:', function (btn, text) {
            if (btn == 'ok') {
        ....
    }
    });

    Thanks.
    Last edited by Daniil; Oct 07, 2011 at 12:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I don't think there is a way to load Java applet except iframe.

    Well, I can suggest you to manually set position for a prompt dialog.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    
        <script type="text/javascript">
            var onClick = function () {
                Ext.Msg.prompt("Title", "Message");
                Ext.Msg.getDialog().setPosition(10, 10);
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Button runat="server" Text="Show prompt">
                <Listeners>
                    <Click Handler="onClick();" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
  3. #3
    Ah ok, thanks. I'll reposition the box; thanks.

Similar Threads

  1. Replies: 0
    Last Post: Jun 15, 2012, 11:49 AM
  2. [CLOSED] Row Expander - Expanding a row using Java Script Dynamically?
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 31, 2011, 10:34 AM
  3. [CLOSED] loading applet based page in iframe
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 07, 2010, 2:41 AM
  4. [CLOSED] [1.0] Java Script broken under IE
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 06, 2010, 4:46 PM
  5. [CLOSED] Calling Java script function with in a AjaxEvent
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 21, 2009, 9:13 AM

Tags for this Thread

Posting Permissions