Send and Receive data with popup

Asked

Viewed 30 times

-1

I have a list on the parent page as follows:

Pagina Pai

When I click on any row of the table a popup is opened, and I’m doing it as follows:

function abrePopUp(ID) { //aqui é o valor do ID que quero enviar
  var w, h, left, top;
  w = screen.width;
  h = screen.height;
  left = (w - 1300) / 2;
  settings = "width=1300, height=600, directories=no, location=no, menubar=no, scrollbars=no, status=no, toolbar=no, resizable=no, left=" + left + ", top=200px";
  window.open("http://192.168.1.144/novoGrupo", "popup", settings);
};

The open Popup is this:

Pagina PopUp

What I’m wanting is, take the value of the line ID that I clicked and put it in a variable on the Popup page, how do I do this?

  • 1

    can pass as query string parameter, for example "/newGroup/? id=1" and retrieve it on the page

1 answer

0

Browser other questions tagged

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