Skip to content

Instantly share code, notes, and snippets.

@gonzariosm
Created April 21, 2017 16:06
Show Gist options
  • Save gonzariosm/feb4c00de19b9c2f26b9e10d476b6d37 to your computer and use it in GitHub Desktop.
Save gonzariosm/feb4c00de19b9c2f26b9e10d476b6d37 to your computer and use it in GitHub Desktop.
<script>
var $_GET = {};
if(document.location.toString().indexOf('?') !== -1)
{
var query = document.location.toString().replace(/^.*?\?/, '').split('&');
for(var i=0, l=query.length; i<l; i++)
{
var aux = decodeURIComponent(query[i]).split('=');
$_GET[aux[0]] = aux[1];
}
}
if(($_GET['id'])&&($_GET['sp'])){
var iframe = document.getElementById("myframe");
iframe.src = "http://reservas.indisa.cl/Age_Web_Reserva_Horas_Medicas/ReservaHoras/rhw_Maternidad.aspx?empresa=9&sucursal=1&profesional=" + $_GET['id'] + "&especialidad=" + $_GET['sp'] + "&especialidad=" + $_GET['sp'];
}
$(document).ready(function(){
$.ajax({ url: "Scripts/load_data.php",
context: document.body,
success: function(){
}});
$.ajax({ url: "Scripts/send_data.php",
context: document.body,
success: function(){
}});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment