first commit
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function loadRoutes(id) {
|
||||
var xmlhttp = ajaxFunction();
|
||||
if (xmlhttp!=null) {
|
||||
var url = '?ajax=routes&id='+id;
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if(this.readyState==4 && this.status == 200) {
|
||||
document.getElementById('item'+id).innerHTML = this.responseText;
|
||||
} else if (this.readyState == 4 && this.status != 200) {
|
||||
alert('Error!');
|
||||
//alert(this.responseXML+'/'+this.responseText+'/'+this.statusText);
|
||||
//alert(this.getAllResponseHeaders());
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",url,true);
|
||||
xmlhttp.send(null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function getQuote(id,sid) {
|
||||
var xmlhttp = ajaxFunction();
|
||||
if (xmlhttp!=null) {
|
||||
var url = '?ajax=quote&id='+id+'&sid='+sid;
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if(this.readyState==4 && this.status == 200) {
|
||||
document.getElementById('quote_'+id+'_'+sid).innerHTML = this.responseText;
|
||||
} else if (this.readyState == 4 && this.status != 200) {
|
||||
alert('Error!');
|
||||
//alert(this.responseXML+'/'+this.responseText+'/'+this.statusText);
|
||||
//alert(this.getAllResponseHeaders());
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",url,true);
|
||||
xmlhttp.send(null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function loadTaxi(id) {
|
||||
var xmlhttp = ajaxFunction();
|
||||
if (xmlhttp!=null) {
|
||||
var url = '?ajax=taxi&id='+id;
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if(this.readyState==4 && this.status == 200) {
|
||||
document.getElementById('taxi_'+id).innerHTML = this.responseText;
|
||||
} else if (this.readyState == 4 && this.status != 200) {
|
||||
alert('Error!');
|
||||
//alert(this.responseXML+'/'+this.responseText+'/'+this.statusText);
|
||||
//alert(this.getAllResponseHeaders());
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",url,true);
|
||||
xmlhttp.send(null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function quoteTaxi(id) {
|
||||
var xmlhttp = ajaxFunction();
|
||||
if (xmlhttp!=null) {
|
||||
var url = '?ajax=taxiquote&id='+id;
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if(this.readyState==4 && this.status == 200) {
|
||||
document.getElementById('taxi_'+id).innerHTML = this.responseText;
|
||||
} else if (this.readyState == 4 && this.status != 200) {
|
||||
alert('Error!');
|
||||
//alert(this.responseXML+'/'+this.responseText+'/'+this.statusText);
|
||||
//alert(this.getAllResponseHeaders());
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",url,true);
|
||||
xmlhttp.send(null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function ajaxFunction()
|
||||
{
|
||||
if (window.XMLHttpRequest)
|
||||
{
|
||||
// code for IE7+, Firefox, Chrome, Opera, Safari
|
||||
return new XMLHttpRequest();
|
||||
}
|
||||
else if (window.ActiveXObject)
|
||||
{
|
||||
// code for IE6, IE5
|
||||
return new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Your browser does not support XMLHTTP!");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
function showScooters(tid,id) {
|
||||
$('#item'+id).width('90%');
|
||||
$('#item'+id).height('90%');
|
||||
$('#overlay'+tid).html('<iframe src="scooters.php?id='+tid+'" width="95%" style="position: absolute; height: 85%; border: none"></iframe>');
|
||||
}
|
||||
function showScooters1(tid,id) {
|
||||
$('#item'+id+"_content_1").show();
|
||||
$('#item'+id+"_content_2").hide();
|
||||
$('#item'+id).width('90%');
|
||||
$('#item'+id).height('90%');
|
||||
$('#item'+id+"_content_1").width('100%');
|
||||
$('#item'+id+"_content_1").height('100%');
|
||||
$('#item'+id+"_content_1").html('<iframe src="scooters.php?id='+tid+'" width="95%" style="position: absolute; height: 85%; border: none"></iframe>');
|
||||
}
|
||||
function showScooters2(tid,id) {
|
||||
$('#item'+id+"_content_1").hide();
|
||||
$('#item'+id+"_content_2").show();
|
||||
$('#item'+id).width('90%');
|
||||
$('#item'+id).height('90%');
|
||||
$('#item'+id+"_content_2").width('100%');
|
||||
$('#item'+id+"_content_2").width('100%');
|
||||
//$('#overlay'+tid).html('<iframe src="scooters.php?id='+tid+'" width="95%" style="position: absolute; height: 85%; border: none"></iframe>');
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
Reference in New Issue
Block a user