go here..
http://londonheathrowcars.com/ajax/blankquote.asp
using ajax to load asp pages into a form on my blankquote.asp main page.
if you select the first radio..
London Postcode..
then choose a drop down postcode.. then choose a car.. then click get quote.. basically a price should appear but the queryin of the database is not working because it is tellin me that
document.quoteform.car1 has no properties
on the bold line of my ajax.js file
its not registering the radio buttons (saloon, estate.. )can anyone help me please?
come on the gunners!
http://londonheathrowcars.com/ajax/blankquote.asp
using ajax to load asp pages into a form on my blankquote.asp main page.
if you select the first radio..
London Postcode..
then choose a drop down postcode.. then choose a car.. then click get quote.. basically a price should appear but the queryin of the database is not working because it is tellin me that
document.quoteform.car1 has no properties
on the bold line of my ajax.js file
Code:
function createRequestObject() {
var ro;
/*@cc_on
@if (@_jscript_version >= 5)
try {
ro = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
ro = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
ro = false;
}
}
@else
ro = false;
@end @*/
if (!ro && typeof XMLHttpRequest != 'undefined') {
try {
ro = new XMLHttpRequest();
} catch (e) {
ro = false;
}
}
return ro;
}
var xmlHttp = null;
function LoadPostcodes() {
xmlHttp = createRequestObject();
var url="quote1.asp"
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadContentComplete;
xmlHttp.send('');
}
var xmlHttp = null;
function LoadContent2() {
xmlHttp = createRequestObject();
var url="quote2.asp"
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadContentComplete;
xmlHttp.send('');
}
var xmlHttp = null;
function LoadAirports() {
xmlHttp = createRequestObject();
var url="quote3.asp"
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadContentComplete;
xmlHttp.send('');
}
var xmlHttp = null;
function LoadSeaports() {
xmlHttp = createRequestObject();
var url="quote4.asp"
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadContentComplete;
xmlHttp.send('');
}
function LoadContentComplete() {
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
document.getElementById('thecellid').innerHTML = xmlHttp.responseText;
}
}
function LoadCarContent() {
xmlHttp = createRequestObject();
var url="cars.asp";
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadCarContentComplete;
xmlHttp.send('');
}
function LoadCarContentComplete() {
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
document.getElementById('carcontentid').innerHTML = xmlHttp.responseText;
}
}
function LoadButton() {
xmlHttp = createRequestObject();
var url="button.asp";
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = LoadButtonComplete;
xmlHttp.send('');
}
function LoadButtonComplete() {
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
document.getElementById('buttonid').innerHTML = xmlHttp.responseText;
}
}
function GetPrice() {
var RadioButtonValue = null;
[b]for (counter = 0; counter < document.quoteform.car1.length; counter++) {[/b]
if (document.quoteform.car1[counter].checked) {
RadioButtonValue = quoteform.car1[counter].value;
}
if (RadioButtonValue!="") {
xmlHttp = createRequestObject();
var url="price.asp?PASSMYVALUE=" + RadioButtonValue;
xmlHttp.open('GET', url, true);
xmlHttp.onreadystatechange = GetPriceComplete;
xmlHttp.send('');
} else {
alert('No option was checked.');
}
}
function GetPriceComplete() {
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
document.getElementById('newpricehere').innerHTML = xmlHttp.responseText;
}
}
}
its not registering the radio buttons (saloon, estate.. )can anyone help me please?
come on the gunners!