I do not know if it is possible, but I would like to create a link (or simulate one) where I need to pass data to the page of that link, but I would not like to pass this data by get
but by post
, otherwise (I know that for an advanced user it will be possible to see this data, but there would be no problem).
Below the link I'm creating:
<a href="pagina_a_ser_chamada" data-usuario="1" data-cliente="3" class="openLink">
Abrir dados do cliente 3
</a>
<a href="pagina_a_ser_chamada" data-usuario="1" data-cliente="4" class="openLink">
Abrir dados do cliente 4
</a>
<a href="pagina_a_ser_chamada" data-usuario="1" data-cliente="5" class="openLink">
Abrir dados do cliente 5
</a>
I tried to do something with jQuery, but I could not pass the data usuario
and cliente
and not I want to have to pass pagina_a_ser_chamada?usuario=1&cliente=3
$(document).ready(function() {
$('.openLink').click(function(event) {
event.preventDefault();
window.open($(this).attr('href'), '_blank');
});
});