I need to hide a Button on pageshow that's my source:
<?php include('inc/header.php'); ?>
<script type="text/javascript">
$(document).bind('pageshow', function() {
$('#adiar').b('refresh');
});
</script>
<body>
<div data-role="page" id="jsTestes">
<?php include('cabecalho.php'); ?>
<div data-role="content" style="padding: 15px"style="background: url('http://assets.codiqa.com/ps/24291/507dad2f02328271ios_default_bg_tile.jpg') repeat">
<b>
<u>Teste:</u> <?php $testeSelecionado = $_GET["teste"]; echo $testeSelecionado?>
<p>
<u>Porta:</u> <?php $porta=1; echo $porta;?>
</p>
<p>
<u>Estado do alerta:</u> <?php $status='Aguardando Resposta...'; echo
$status;?>
</p>
</b>
<div>
<a href="jsListaTestes.php" id="adiar" data-role="button" data-theme="b" data-inline="false">Adiar</a>
</div>
</div>
</div>
</body>
</html>
When I call this page direct(writing adress) this work,
but when i call this page by another page, I need refresh the page to work
like:
<a href="jsTestes.php" id="adiar" data-role="button" data-theme="b" data-inline="false">Adiar</a>
I just need any way to call by another page and hide the button , without refresh.
Please, help me