click on link and open content in div as _Blank

Asked

Viewed 34 times

-4

I need to link and have the contents of the called file displayed within a div according to the $_GET[] reported.

This command I have already understood how it should be done.

However, I need this div to be opened as if it were a _Blank. it would not be fixed at any part of the screen and also would not be filled with display: None and would be displayed habilitanda display when clicking.

The content would be searched the moment the DIV was opened as with the Divs that are opened on facebook.

I thank anyone who can help.

function carregar(pagina){
    $("#conteudo").load(pagina);
}

  • File 1
  • File 2

<div id="conteudo"></div>

i pasted the code, but it does not appear here. I do not know how to make this configuration.

  • As with the Divs that are opened on facebook.

  • put what you already have, part of the code

  • inserted the code

  • Can use bootstrap modal.

  • Leonardo talks. I’ve seen about bootstrap and really it’s an excellent tool. It solves the problem of opening modal. But I noticed that when it is opened I already have the content filled and makes an effect as display: None and block. Doing so is quiet. But I need to open the div to be loaded looking for the content at that time, as with the Divs on facebook. Anyway I appreciate your help.

1 answer

0

you create a page to receive this data, send the id by the url, as it is a get, and on this page you make a select of the data based on that id, as I understand it is what you want <a href="pagina_dados.php?&id=<?php echo $row['id'];> ">

Browser other questions tagged

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