Reset page when generating pop-up screen from a form

-1

I'm doing a functionality to upload an image of a third party to a database, this process I do from form and I incorporate a button to perform the function of loading image from a view.

The big drawback is that by clicking on the button that connects the other view and when the pop-up screen is displayed, the content of the form is expanded considerably.

This is the line and properties that I set so that it is possible to generate the pop-up screen

Response.Write("<Script Language=javascript>window.open('/Upload/Upload?nombre_campo=tercero.ruta_foto','Form','toolbar=no,menubar=no,status=yes,location=yes,scrollbars=no,resizable=yes,fullscreen=no,width=400%,height=400%');</script>");

What should I change so that this does not happen, thank you in advance

I include the following images to make me understand.

In this way you are currently

What I intend is that the back form is the actual size, should leave me this way

what happens is that the form increases the size when the pop-up screen appears.

    
asked by Andrex_11 10.10.2018 в 18:05
source

1 answer

0

Change this

Response.Write("<Script Language=javascript>window.open('/Upload/Upload?nombre_campo=tercero.ruta_foto','Form','toolbar=no,menubar=no,status=yes,location=yes,scrollbars=no,resizable=yes,fullscreen=no,width=400%,height=400%');</script>");

For the following

Response.Write("<Script Language=javascript>window.open('/Upload/Upload?nombre_campo=tercero.ruta_foto','Form','toolbar=no,menubar=no,status=yes,location=yes,scrollbars=no,resizable=yes,fullscreen=no,width=100%,height=100%');</script>");

The problem is in the width and heigh t attributes of your script

    
answered by 10.10.2018 в 21:53