Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7083247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:09:17+00:00 2026-05-28T07:09:17+00:00

I have to integrate a Java applet into a simple asp.net 2.0 control. This

  • 0

I have to integrate a Java applet into a simple asp.net 2.0 control.

This applet is a bought product and cannot be modified. It contains a button designed to be clicked to continue. The button click is linked to a JavaScript function.

So we can see this applet as a black box, eating data and calling a JS function when it’s done.

I have to make a postback when the JS function is called to go to the next page. Easy, I just have to write it. But I would also like to hide the applet, or the div containing it, because the postback trigger some long treatment. The point is that, while waiting, the user can click on the applet button and triggers the postback again.

In my JavaScript called function, I tried many solutions:

  • Make 2 postbacks. Of course this doesn’t work, as a postback is a reload of the page
  • Hide/show the div or the applet using JavaScript
  • Hide/show the div or the applet using jQuery
  • Hide/show the div or the applet calling the click event of an invisible button to set Visible = false in the code behind

But it always fails: it seems that the web browser (IE 8.0 or Chrome) waits the end of the postback/JS function to update the page, and don’t bother with some UI update just before.

So here I am:

  • I need the postback to go to the next page (I do not control the entire environment where my control is used)
  • I have to hide the applet, otherwise the user can re-click on it
  • I can’t make a two-step process, like having the JS function hiding the applet and displaying a link to to the next page, involving a new click

My simple control:

<%@ Control Language="C#" AutoEventWireup="false" Codebehind="MyControl.ascx.cs"
    Inherits="MyControl" %>
<div id="m_DivPostDisplay" runat="server">
    <asp:Label ID="lblState" runat="server" Text="Displaying something like please wait..." />
</div>
<div id="m_DivAppletContainer" runat="server">
    <applet name="myApplet" archive="./myJar.jar"
        code="Main.class" height="700" width="530" mayscript>
    </applet>
</div>

The related javascript (injected when the page load):

<script language='javascript'>
    function sendData(data) {
        // This is where I try to hide the applet or the div
        //.....

        // Go to the next page
        WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(\"nextButtonId\", \"\", true, \"\", \"\", false, true));
    }
</script>

Do you have any idea of what could be done to fix my problem?
Thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:09:17+00:00Added an answer on May 28, 2026 at 7:09 am

    Finally we asked the applet editor to add a new feature, so we can now disable its buttons when we need.

    So when we click on the button, we keep it disabled, launch the postback, and change page when the postback returns.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a need to integrate a third-party Java applet into a custom web
We have an asp.net mvc application that we would like to integrate a FileSystemWatcher
I'm experience with Java, but I have to integrate a java library into a
I have recently inherited some Java code and need to integrate it into a
I have to integrate the Facebook social plugins into a JSF application. This recommends
I have a simple Java application and I'm trying to integrate Hibernate in Spring
Is it possible to have a Java/J2EE web application integrate/communicate with SharePoint to load,
I have this external module of my system and I thought to integrate it
For a while I have been struggling to integrate scala with java methods that
I have a Java app that needs to integrate with a 3rd party library.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.