Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default applet in a webform



    I have an applet that I instantiate on a web form using an
    applet tag such as: <Applet> stuff in here </Applet>


    Assume the name of the applet control is 'VIEWER'.

    I instantiate the viewer on the webform in a client
    browser window like this

    var newWindow = open('webformWithViewer');

    This creates the new window with the applet as expected.

    I want to call a method contained in the viewer right
    after I open it, such as :

    var newWindow = open('webformWithViewer');
    var oViewer = newWindow.Document.Applets[0];

    oViewer.DoSomething();


    My problem is that the viewer and/or window are not fully
    instantiated yet and therefore DoSomething() fails.


    How can I wait for the window and viewer to be completely
    opened?

    Also, is there a way to hide a window on the client?

    Your help would be appreciated.

    Bobby G




    Bobby G Guest

  2. Similar Questions and Discussions

    1. Resize Applet?
      I'm using an educational software CD that uses shockwave applets to display images with information on them. The problem is that the size if the...
    2. cftree with applet
      All, I am using CFTREE to build a tree using the java applet option. If I understand correctly, this will require a JRE to be loaded on the...
    3. Integrating an Applet with PHP
      I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn...
    4. AnotherClock Applet
      J. B. Wood wrote: I like the afterstep clock myself and have noticed that it is missing as well. I have a backup tape from my system when it...
    5. Including WebForm Image Control in a Webform Table Control
      What is the code for including an image control in a Table control of a WebForm ???? regards
  3. #2

    Default Re: applet in a webform


    I will look into that, however, I just have to guess at
    the timeout value, correct? Sometimes it won't be long
    enough?

    Thanks for the info,

    Bobby G
    >-----Original Message-----
    >use a timeout function with a call back
    >something like
    >window.setTimeout ("AddTips()",100); addtips gets called
    after a
    >"Bobby G" <BGeo@yahoo.com> wrote in message
    >news:032101c35079$ebfae860$a101280a@phx.gbl...
    >>
    >>
    >> I have an applet that I instantiate on a web form using
    an
    >> applet tag such as: <Applet> stuff in here </Applet>
    >>
    >>
    >> Assume the name of the applet control is 'VIEWER'.
    >>
    >> I instantiate the viewer on the webform in a client
    >> browser window like this
    >>
    >> var newWindow = open('webformWithViewer');
    >>
    >> This creates the new window with the applet as expected.
    >>
    >> I want to call a method contained in the viewer right
    >> after I open it, such as :
    >>
    >> var newWindow = open('webformWithViewer');
    >> var oViewer = newWindow.Document.Applets[0];
    >>
    >> oViewer.DoSomething();
    >>
    >>
    >> My problem is that the viewer and/or window are not
    fully
    >> instantiated yet and therefore DoSomething() fails.
    >>
    >>
    >> How can I wait for the window and viewer to be
    completely
    >> opened?
    >>
    >> Also, is there a way to hide a window on the client?
    >>
    >> Your help would be appreciated.
    >>
    >> Bobby G
    >>
    >>
    >>
    >>
    >
    >
    >.
    >
    Bobby G Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139