Why are you using a FORM to achive it ?? in this case at my personal advice it will be more simple this approach : a simple button which call a javascript function to retrieve data and then you may use this data as per your need. In example:
<input type="button" id="ID" name="ID" value="Get Data" onclick="YourFunction"/>
<script type="text/javascript">
function Yourfunction()
{
$.ajax({
type: "POST/GET", url: url, data: p,
success: function (msg) {
//tmp = JSON.parse(msg); if needed
//do something here
},
error: function (msg) {
//do something here
}
});
}
</script>
However if may give us more info it would be better to better help you