By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,500 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,500 IT Pros & Developers. It's quick & easy.

submit(); problem

P: n/a
DB
Hi All
Having stared at this all morning and altered various things with no effect
other then to exasperate the problem i'm wondering if anyone could take a
look at the code below and see why on earth it's failing - I'm getting a
"Object doesn't suppport this property or method" Line 32 char 5 when i
attempt to change the location, have looked all over for answers and not
found anything on the net or in the js ref docs i have - any pointers
greatfully recieved. It was working until I added in the Location submit
function and now fails on all of the submit functions..
Thanks in Advance.
Diz

<html>
<head>
<link rel="stylesheet" href="includes/styles.css">
<script language="JavaScript">
<!--
function portOption(val) {
portOption = val;
if (portOption == "yes") {
alert("open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID='
+userid+'&op=yes';
document.quoteForm.submit();
exit;
} else {
alert("no open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' +userid+'&op=no';
document.quoteForm.Submit();
exit;
}
}

var selectedLocationValue = null;
var selectedLocationText = null;
function checkLocations(what) {
userid = document.quoteForm.CompanyID.value;
selectedLocationValue = what.options[what.selectedIndex].value;
var substrings = selectedLocationValue.split('London');
if ((substrings.length - 1) > 0) {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action = 'services.asp';
//?circuits=true&action=autoquote&UserGroupID=' + userid;
document.quoteForm.Submit();
}
} else {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.Submit();
}

}

}

function getCircuits() {
bus = document.quoteForm.bus[0].checked;
res = document.quoteForm.bus[1].checked;
userid = document.quoteForm.CompanyID.value;
if ((bus == false) && (res == false)) {
traffic = false;
}else {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.submit();
}
}

var selectedOptionValue = null;
var selectedOptionText = null;

function setCompany(what) {
selectedOptionValue = what.options[what.selectedIndex].value;
document.quoteForm.action = 'services.asp?action=autoquote&UserGroupID=' +
selectedOptionValue;
document.quoteForm.submit();
}

function resetQuote() {
document.quoteForm.action = 'services.asp?action=autoquote';
document.quoteForm.submit();
}

//-->
</script>
</head>
<body>

<form name="quoteForm" method="POST" action="getquote.asp">
<table class="AutoQuote">
<tr>
<td bgcolor=#c0c0c0 colspan=2 class="QuoteHd">Autoquote tool</td>
</tr>
<tr>
<td>Salesperson: SalesPerson</td>
<td align="right">Company: <input type="hidden" name="CompanyName"
value="2heads"><input type="hidden" name="CompanyID" value="1">2heads</td>
</tr>
<tr>
<td colspan=2>What committed data rate (CDR) does the customer require?
<select name="CDR" onChange="javascript:getCircuits()"><option
value="1">10</option><option value="2">15</option><option
value="3">20</option><option value="4" selected>25</option><option
value="5">30</option><option value="6">35</option><option
value="7">40</option><option value="8">45</option><option
value="9">50</option><option value="10">55</option><option
value="11">60</option><option value="12">65</option><option
value="13">70</option><option value="14">75</option><option
value="15">80</option><option value="16">85</option><option
value="17">90</option><option value="18">95</option><option
value="19">100</option><option value="20">105</option><option
value="21">110</option><option value="22">115</option><option
value="23">120</option><option value="24">125</option><option
value="25">130</option><option value="26">135</option><option
value="27">140</option><option value="28">145</option><option
value="29">150</option><option value="30">155</option><option
value="31">160</option><option value="32">165</option><option
value="33">170</option><option value="34">175</option><option
value="35">180</option><option value="36">185</option><option
value="37">190</option><option value="38">195</option><option
value="39">200</option><option value="40">250</option><option
value="41">300</option><option value="42">350</option><option
value="43">400</option><option value="44">450</option><option
value="45">500</option><option value="46">550</option><option
value="47">600</option><option value="48">650</option><option
value="49">700</option><option value="50">750</option><option
value="51">800</option><option value="52">850</option><option
value="53">900</option><option value="54">950</option><option
value="55">1000</option><option value="56">1050</option><option
value="57">1100</option><option value="58">1150</option><option
value="59">1200</option><option value="60">1250</option><option
value="61">1300</option><option value="62">1350</option><option
value="63">1400</option><option value="64">1450</option><option
value="65">1500</option><option value="66">1550</option><option
value="67">1600</option><option value="68">1650</option><option
value="69">1700</option><option value="70">1750</option><option
value="71">1800</option><option value="72">1850</option><option
value="73">1900</option><option value="74">1950</option><option
value="75">2000</option></select>Mbit/s</td>
</tr>
<tr>
<td rowspan=2 valign=top>Does the customer have a </td>
<td><input type="radio" name="bus" value="yes" checked
onClick="javascript:getCircuits()">business traffic
profile</td></tr><tr><td><input type="radio" name="bus" value="no"
onClick="javascript:getCircuits()">residential traffic
profile</td></tr><tr><td colspan=2>For this capacity you require at least
<b>1<input type="hidden" name="circuitnumber" value="1">&nbsp;Fast
Ethernet<input type="hidden" name="circuittype" value="Fast Ethernet"></b>
Circuit(s)</td></tr><tr><td >Connection Location:</td><td><select
name="connlocation" onBlur="javascript:checkLocations(this)"><option
value="London Telehouse">London Telehouse</option><option value="London
Location 2">London Location 2</option><option
value="Manchester">Manchester</option><option
value="Birmingham">Birmingham</option><option
value="Dublin">Dublin</option></select></td></tr><tr><td>Contract
length:</td><td><select name="ContractLength"><option value="6 Months">6
Months</option><option value="7 Months">7 Months</option><option value="8
Months">8 Months</option><option value="9 Months">9 Months</option><option
value="10 Months">10 Months</option><option value="11 Months">11
Months</option><option value="12 Months">12 Months</option><option value="13
Months">13 Months</option><option value="14 Months">14
Months</option><option value="15 Months">15 Months</option><option value="16
Months">16 Months</option><option value="17 Months">17
Months</option><option value="18 Months">18 Months</option><option value="19
Months">19 Months</option><option value="20 Months">20
Months</option><option value="21 Months">21 Months</option><option value="22
Months">22 Months</option><option value="23 Months">23
Months</option><option value="24 Months">24
Months</option></select></td></tr><input type="hidden" name="op"
value="yes"><tr><td colspan="2" class="QuoteFt"><input type="submit"
name="submit" value="get quote" class="bluebut"> &nbsp; <input type="button"
name="reset" value="reset" class="bluebut"
onClick="javascript:resetQuote()"></td></tr></table></form>

</body>
</html>
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
DB
I've actually spotted that i've left in two exit; 's and a couple of
Submit(); 's (capital S) in there - these were just put in whilst clutching
at straws a couple of mins ago, and aren't really in the script, please
ignore..!

"DB" <%64%69%7a%7a%79%62%69%72%64%40%64%69%7a%7a%79%2e% 63%78> wrote in
message news:vs************@corp.supernews.com...
Hi All
Having stared at this all morning and altered various things with no effect other then to exasperate the problem i'm wondering if anyone could take a
look at the code below and see why on earth it's failing - I'm getting a
"Object doesn't suppport this property or method" Line 32 char 5 when i
attempt to change the location, have looked all over for answers and not
found anything on the net or in the js ref docs i have - any pointers
greatfully recieved. It was working until I added in the Location submit
function and now fails on all of the submit functions..
Thanks in Advance.
Diz

<html>
<head>
<link rel="stylesheet" href="includes/styles.css">
<script language="JavaScript">
<!--
function portOption(val) {
portOption = val;
if (portOption == "yes") {
alert("open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID='
+userid+'&op=yes';
document.quoteForm.submit();
exit;
} else {
alert("no open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' +userid+'&op=no'; document.quoteForm.Submit();
exit;
}
}

var selectedLocationValue = null;
var selectedLocationText = null;
function checkLocations(what) {
userid = document.quoteForm.CompanyID.value;
selectedLocationValue = what.options[what.selectedIndex].value;
var substrings = selectedLocationValue.split('London');
if ((substrings.length - 1) > 0) {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action = 'services.asp';
//?circuits=true&action=autoquote&UserGroupID=' + userid;
document.quoteForm.Submit();
}
} else {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.Submit();
}

}

}

function getCircuits() {
bus = document.quoteForm.bus[0].checked;
res = document.quoteForm.bus[1].checked;
userid = document.quoteForm.CompanyID.value;
if ((bus == false) && (res == false)) {
traffic = false;
}else {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.submit();
}
}

var selectedOptionValue = null;
var selectedOptionText = null;

function setCompany(what) {
selectedOptionValue = what.options[what.selectedIndex].value;
document.quoteForm.action = 'services.asp?action=autoquote&UserGroupID=' + selectedOptionValue;
document.quoteForm.submit();
}

function resetQuote() {
document.quoteForm.action = 'services.asp?action=autoquote';
document.quoteForm.submit();
}

//-->
</script>
</head>
<body>

<form name="quoteForm" method="POST" action="getquote.asp">
<table class="AutoQuote">
<tr>
<td bgcolor=#c0c0c0 colspan=2 class="QuoteHd">Autoquote tool</td>
</tr>
<tr>
<td>Salesperson: SalesPerson</td>
<td align="right">Company: <input type="hidden" name="CompanyName"
value="2heads"><input type="hidden" name="CompanyID" value="1">2heads</td>
</tr>
<tr>
<td colspan=2>What committed data rate (CDR) does the customer require?
<select name="CDR" onChange="javascript:getCircuits()"><option
value="1">10</option><option value="2">15</option><option
value="3">20</option><option value="4" selected>25</option><option
value="5">30</option><option value="6">35</option><option
value="7">40</option><option value="8">45</option><option
value="9">50</option><option value="10">55</option><option
value="11">60</option><option value="12">65</option><option
value="13">70</option><option value="14">75</option><option
value="15">80</option><option value="16">85</option><option
value="17">90</option><option value="18">95</option><option
value="19">100</option><option value="20">105</option><option
value="21">110</option><option value="22">115</option><option
value="23">120</option><option value="24">125</option><option
value="25">130</option><option value="26">135</option><option
value="27">140</option><option value="28">145</option><option
value="29">150</option><option value="30">155</option><option
value="31">160</option><option value="32">165</option><option
value="33">170</option><option value="34">175</option><option
value="35">180</option><option value="36">185</option><option
value="37">190</option><option value="38">195</option><option
value="39">200</option><option value="40">250</option><option
value="41">300</option><option value="42">350</option><option
value="43">400</option><option value="44">450</option><option
value="45">500</option><option value="46">550</option><option
value="47">600</option><option value="48">650</option><option
value="49">700</option><option value="50">750</option><option
value="51">800</option><option value="52">850</option><option
value="53">900</option><option value="54">950</option><option
value="55">1000</option><option value="56">1050</option><option
value="57">1100</option><option value="58">1150</option><option
value="59">1200</option><option value="60">1250</option><option
value="61">1300</option><option value="62">1350</option><option
value="63">1400</option><option value="64">1450</option><option
value="65">1500</option><option value="66">1550</option><option
value="67">1600</option><option value="68">1650</option><option
value="69">1700</option><option value="70">1750</option><option
value="71">1800</option><option value="72">1850</option><option
value="73">1900</option><option value="74">1950</option><option
value="75">2000</option></select>Mbit/s</td>
</tr>
<tr>
<td rowspan=2 valign=top>Does the customer have a </td>
<td><input type="radio" name="bus" value="yes" checked
onClick="javascript:getCircuits()">business traffic
profile</td></tr><tr><td><input type="radio" name="bus" value="no"
onClick="javascript:getCircuits()">residential traffic
profile</td></tr><tr><td colspan=2>For this capacity you require at least
<b>1<input type="hidden" name="circuitnumber" value="1">&nbsp;Fast
Ethernet<input type="hidden" name="circuittype" value="Fast Ethernet"></b>
Circuit(s)</td></tr><tr><td >Connection Location:</td><td><select
name="connlocation" onBlur="javascript:checkLocations(this)"><option
value="London Telehouse">London Telehouse</option><option value="London
Location 2">London Location 2</option><option
value="Manchester">Manchester</option><option
value="Birmingham">Birmingham</option><option
value="Dublin">Dublin</option></select></td></tr><tr><td>Contract
length:</td><td><select name="ContractLength"><option value="6 Months">6
Months</option><option value="7 Months">7 Months</option><option value="8
Months">8 Months</option><option value="9 Months">9 Months</option><option
value="10 Months">10 Months</option><option value="11 Months">11
Months</option><option value="12 Months">12 Months</option><option value="13 Months">13 Months</option><option value="14 Months">14
Months</option><option value="15 Months">15 Months</option><option value="16 Months">16 Months</option><option value="17 Months">17
Months</option><option value="18 Months">18 Months</option><option value="19 Months">19 Months</option><option value="20 Months">20
Months</option><option value="21 Months">21 Months</option><option value="22 Months">22 Months</option><option value="23 Months">23
Months</option><option value="24 Months">24
Months</option></select></td></tr><input type="hidden" name="op"
value="yes"><tr><td colspan="2" class="QuoteFt"><input type="submit"
name="submit" value="get quote" class="bluebut"> &nbsp; <input type="button" name="reset" value="reset" class="bluebut"
onClick="javascript:resetQuote()"></td></tr></table></form>

</body>
</html>

Jul 20 '05 #2

P: n/a
DB
Problem arose from the submit button being named submit.. now renamed to
submitit and all is pink and fluffy with the world
D.

"DB" <%64%69%7a%7a%79%62%69%72%64%40%64%69%7a%7a%79%2e% 63%78> wrote in
message news:vs************@corp.supernews.com...
Hi All
Having stared at this all morning and altered various things with no effect other then to exasperate the problem i'm wondering if anyone could take a
look at the code below and see why on earth it's failing - I'm getting a
"Object doesn't suppport this property or method" Line 32 char 5 when i
attempt to change the location, have looked all over for answers and not
found anything on the net or in the js ref docs i have - any pointers
greatfully recieved. It was working until I added in the Location submit
function and now fails on all of the submit functions..
Thanks in Advance.
Diz

<html>
<head>
<link rel="stylesheet" href="includes/styles.css">
<script language="JavaScript">
<!--
function portOption(val) {
portOption = val;
if (portOption == "yes") {
alert("open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID='
+userid+'&op=yes';
document.quoteForm.submit();
exit;
} else {
alert("no open port option");
userid = document.quoteForm.CompanyID.value;
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' +userid+'&op=no'; document.quoteForm.Submit();
exit;
}
}

var selectedLocationValue = null;
var selectedLocationText = null;
function checkLocations(what) {
userid = document.quoteForm.CompanyID.value;
selectedLocationValue = what.options[what.selectedIndex].value;
var substrings = selectedLocationValue.split('London');
if ((substrings.length - 1) > 0) {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action = 'services.asp';
//?circuits=true&action=autoquote&UserGroupID=' + userid;
document.quoteForm.Submit();
}
} else {
if (navigator.appName == 'Netscape' || document.all) {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.Submit();
}

}

}

function getCircuits() {
bus = document.quoteForm.bus[0].checked;
res = document.quoteForm.bus[1].checked;
userid = document.quoteForm.CompanyID.value;
if ((bus == false) && (res == false)) {
traffic = false;
}else {
document.quoteForm.action =
'services.asp?circuits=true&action=autoquote&UserG roupID=' + userid;
document.quoteForm.submit();
}
}

var selectedOptionValue = null;
var selectedOptionText = null;

function setCompany(what) {
selectedOptionValue = what.options[what.selectedIndex].value;
document.quoteForm.action = 'services.asp?action=autoquote&UserGroupID=' + selectedOptionValue;
document.quoteForm.submit();
}

function resetQuote() {
document.quoteForm.action = 'services.asp?action=autoquote';
document.quoteForm.submit();
}

//-->
</script>
</head>
<body>

<form name="quoteForm" method="POST" action="getquote.asp">
<table class="AutoQuote">
<tr>
<td bgcolor=#c0c0c0 colspan=2 class="QuoteHd">Autoquote tool</td>
</tr>
<tr>
<td>Salesperson: SalesPerson</td>
<td align="right">Company: <input type="hidden" name="CompanyName"
value="2heads"><input type="hidden" name="CompanyID" value="1">2heads</td>
</tr>
<tr>
<td colspan=2>What committed data rate (CDR) does the customer require?
<select name="CDR" onChange="javascript:getCircuits()"><option
value="1">10</option><option value="2">15</option><option
value="3">20</option><option value="4" selected>25</option><option
value="5">30</option><option value="6">35</option><option
value="7">40</option><option value="8">45</option><option
value="9">50</option><option value="10">55</option><option
value="11">60</option><option value="12">65</option><option
value="13">70</option><option value="14">75</option><option
value="15">80</option><option value="16">85</option><option
value="17">90</option><option value="18">95</option><option
value="19">100</option><option value="20">105</option><option
value="21">110</option><option value="22">115</option><option
value="23">120</option><option value="24">125</option><option
value="25">130</option><option value="26">135</option><option
value="27">140</option><option value="28">145</option><option
value="29">150</option><option value="30">155</option><option
value="31">160</option><option value="32">165</option><option
value="33">170</option><option value="34">175</option><option
value="35">180</option><option value="36">185</option><option
value="37">190</option><option value="38">195</option><option
value="39">200</option><option value="40">250</option><option
value="41">300</option><option value="42">350</option><option
value="43">400</option><option value="44">450</option><option
value="45">500</option><option value="46">550</option><option
value="47">600</option><option value="48">650</option><option
value="49">700</option><option value="50">750</option><option
value="51">800</option><option value="52">850</option><option
value="53">900</option><option value="54">950</option><option
value="55">1000</option><option value="56">1050</option><option
value="57">1100</option><option value="58">1150</option><option
value="59">1200</option><option value="60">1250</option><option
value="61">1300</option><option value="62">1350</option><option
value="63">1400</option><option value="64">1450</option><option
value="65">1500</option><option value="66">1550</option><option
value="67">1600</option><option value="68">1650</option><option
value="69">1700</option><option value="70">1750</option><option
value="71">1800</option><option value="72">1850</option><option
value="73">1900</option><option value="74">1950</option><option
value="75">2000</option></select>Mbit/s</td>
</tr>
<tr>
<td rowspan=2 valign=top>Does the customer have a </td>
<td><input type="radio" name="bus" value="yes" checked
onClick="javascript:getCircuits()">business traffic
profile</td></tr><tr><td><input type="radio" name="bus" value="no"
onClick="javascript:getCircuits()">residential traffic
profile</td></tr><tr><td colspan=2>For this capacity you require at least
<b>1<input type="hidden" name="circuitnumber" value="1">&nbsp;Fast
Ethernet<input type="hidden" name="circuittype" value="Fast Ethernet"></b>
Circuit(s)</td></tr><tr><td >Connection Location:</td><td><select
name="connlocation" onBlur="javascript:checkLocations(this)"><option
value="London Telehouse">London Telehouse</option><option value="London
Location 2">London Location 2</option><option
value="Manchester">Manchester</option><option
value="Birmingham">Birmingham</option><option
value="Dublin">Dublin</option></select></td></tr><tr><td>Contract
length:</td><td><select name="ContractLength"><option value="6 Months">6
Months</option><option value="7 Months">7 Months</option><option value="8
Months">8 Months</option><option value="9 Months">9 Months</option><option
value="10 Months">10 Months</option><option value="11 Months">11
Months</option><option value="12 Months">12 Months</option><option value="13 Months">13 Months</option><option value="14 Months">14
Months</option><option value="15 Months">15 Months</option><option value="16 Months">16 Months</option><option value="17 Months">17
Months</option><option value="18 Months">18 Months</option><option value="19 Months">19 Months</option><option value="20 Months">20
Months</option><option value="21 Months">21 Months</option><option value="22 Months">22 Months</option><option value="23 Months">23
Months</option><option value="24 Months">24
Months</option></select></td></tr><input type="hidden" name="op"
value="yes"><tr><td colspan="2" class="QuoteFt"><input type="submit"
name="submit" value="get quote" class="bluebut"> &nbsp; <input type="button" name="reset" value="reset" class="bluebut"
onClick="javascript:resetQuote()"></td></tr></table></form>

</body>
</html>

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.