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 5957749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:26:44+00:00 2026-05-22T18:26:44+00:00

I´m developing for web using struts and one applet that I use that is

  • 0

I´m developing for web using struts and one applet that I use that is called in jsp. when I click in the first time, the popup shows perfectly and when I click the second time in the button who calls the applet, my applet window does not render, show only the background. When I try F5 it works.

This problem occurs only in firefox. How I resolve this problem?

Here´s my onclick:

onClick="javascript:showPopupAssinatura('<c:url value="/jsp/servidor/tabletAssinaturaManuscrita.jsp"/>', 'PopupAjuda', 633, 349, 'status=0,scrollbars=0, resizable=no');"

Here´s my function showPopupAssinatura:

function showPopupAssinatura(mypage,myname,w,h,features) {
if(screen.width){
     var winl = (screen.width-w)/2;
     var wint = (screen.height-h)/2;
     }else{winl = 0;wint =0;}
     if (winl < 0) winl = 0;
     if (wint < 0) wint = 0;
     var settings = 'height=' + h + ',';
     settings += 'width=' + w + ',';
     settings += 'top=' + wint + ',';
     settings += 'left=' + winl + ',';
     settings += features;
     var target = "mppesga" + myname;
     win = window.open(mypage,target,settings);

     if (win != null) {
        win.window.focus();
 }
}
  • 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-22T18:26:45+00:00Added an answer on May 22, 2026 at 6:26 pm

    I resolved this problem using javascript method: showModalDialog !!!

    function showPopupAssinatura(mypage,myname,w,h,features) {
    if(screen.width){
         var winl = (screen.width-w)/2 - 66;
         var wint = (screen.height-h)/2 + 26;
         var navegador = navigator.appName.toLowerCase();
    
    }else{winl = 0;wint =0;}
    
         if (winl < 0) winl = 0;
         if (wint < 0) wint = 0;
    
         var settings = 'height=' + h + ',';
         settings += 'width=' + w + ',';
         settings += 'top=' + wint + ',';
         settings += 'left=' + winl + ',';
         settings += features;
         var target = "mppesga" + myname;
    
         /** 
    
          * checking what browser is currently being used to make the action of  
          * visualize the popup. 
          */
    
         if(navegador.indexOf("netscape") != -1)
             win = window.showModalDialog(mypage,null,"dialogWidth:"+w+"; dialogHeight:"+(h+=6)+"; dialogTop:"+wint+"; dialogLeft:"+winl+"; resizable:no");
         else
             win = window.open(mypage,target,settings);
    
         if (win != null) {
            win.window.focus();
     }
    }
    

    This solution only works in firefox because in IE, the size is out of standard, So, I put condition for browser that´s use in the moment.

    I hope that I can help someone if the same problem if this code. =]

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

Sidebar

Related Questions

I am developing a web application using Struts 2.1.2 and Hibernate 3.2.6.GA. I have
I'm using JQuery and Prototype in this web application that I'm developing. I'm looking
I am developing some client side Javascript that is using some JSON web services
I am developing a Java EE web application using Struts. The problem is with
I am developing a web application using Struts 1.2.7 I want to print a
I am part of a team that is developing a web application using a
I use tomcat. I am developing a web application using struts2, and I use
I'm developing web application using CodeIgniter. All this time, I put the custom js
I am developing a web service that renders characters using the PHP GD extension,
I'm developing a web- application using NHibernate. Can you tell me how to write

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.