Close a php window and update the old one

Asked

Viewed 3,088 times

1

Guys... I’m not using floating window and nor modal anything of the type, my TCC got a problem and in the short term to finish I could not use this method. What I need is a code that closes the window that was opened and updates the old one. I will post my code. I’ve tried several Javascript functions but they all close the window immediately after opening. It works that way, I have a register of tax notes and in this register I have a button to include creditors of notes, when clicking on it opens a window in the browser even a separate window, so in this window the user informs the Creditor’s name of the note and its CNPJ, After insertion I want the window to be closed and then updated the Tax Notes window where you have a combobox that lists all registered creditors. Please help me out... Código JavaScript para chamar a nova Tela

Código HTML do botão da página Notas Fiscais que chama a tela Incluir Credor

This is the code of the button that calls the window...

Código Janela Incluir Credor...

Since I didn’t know what you need... I sent the entire code from the window that opens and only the code from the button that calls it... Since I already thank.... ah another detail... I’m using bootstrap...

  • 1

    Even if Thomas gives the answer (I’ll put a +1) the BIGGER problem is the question. Vc CAN NOT CLOSE A WINDOW IN PHP!!!! PHP to a "server-side" language: creates Javascript HTML code. You need to perfectly understand this, because if not, you will look for the answers in the wrong place: you can spend 50 days looking for a PHP function that will close a window, when you will need only 10 seconds to find this function, if you search "close javascript window". Note Thomas’s answer: and Javascript. NAO PHP!

1 answer

4


  • Thanks friend... it worked... just put another window.close(); that then worked exactly as I wanted... thanks...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.