Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting an eror in IE from this Array works Great in Firefox

Status
Not open for further replies.

murphyhg

Technical User
Joined
Mar 1, 2006
Messages
98
Location
US
Can someone please look at this array. I get an error in IE that says Object doesn't support this property. Firefox loves the code now problem. Can someone please addd somewisedom to tell me how I might accomplish this in both browsers.

// Array.unique( strict ) - Remove duplicate values
function UniqueArray( b )
{
var a = []
var i
var l = b.length;

for( i=0; i<l; i++ ) {
if( a.indexOf( b, 0, b ) < 0 )
{
a.push( b );
}
}

return a;
}
 
- What is "b"?

- What does it contain when you call the function?

- What happens if you put semicolon delimiters after the first 2 lines?

- What version of IE are you using? The "push" method is not supported in any version of IE before 5.5.

- Why do you hae 3 parameters in your indexOf call? Only 2 are supported, AFAIK.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Reply, I am using IE 6. I did not right this code. I will show you the entire file.

If you open this file in Dreamweaver and look at it in Design view you will see that I would like to accomplish. I want to be able to check for duplicates in the last five skills select boxes. There can be no duplicate skills. Second I must select 5 skills. It looks like this function a.indexOf( b, 0 ) is not supported in arrays in IE. Can you please suggest how I might accomplish this in another way and it functions in the latest version of firefox and IE?

<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CFBCI TLC Admin Interface Add Peer Contact Information - Step 2 of 3</title>
<link rel="stylesheet" type="text/css" href="../includes/cfbci.css">
<link rel="stylesheet" type="text/css" href="../includes/NewCSS.css">
<script language="JavaScript">
<!-- by Darren Richardson -->
function meBack() {
history.go(-1)
}
</script>
<script type="text/javascript" src="js/fValidate.config.js"></script>
<script type="text/javascript" src="js/fValidate.core.js"></script>
<script type="text/javascript" src="js/fValidate.lang-enUS.js"></script>
<script type="text/javascript" src="js/fValidate.validators.js"></script>
<script type="text/javascript" src="js/fValidate.basic.js"></script>
<script type="text/javascript" src="js/mySlushBox.js"></script>
<script type="text/javascript" src="js/fValidate.extended.js"></script>
<script type="text/javascript" src="js/fValidate.logical.js"></script>
<script type="text/javascript" src="js/fValidate.controls.js"></script>
<script type="text/javascript" src="js/fValidate.web.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
<script type="text/javascript">
<!--
function _CF_checkAddOrg(_CF_this)
{
//reset on submit
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;

//form element skill1 required check
if( !_CF_hasValue(_CF_this['skill1'], "SELECT", false ) )
{
_CF_onError(_CF_this, "skill1", _CF_this['skill1'].value, "Error in skill1 text.");
_CF_error_exists = true;
}

//form element skill2 required check
if( !_CF_hasValue(_CF_this['skill2'], "SELECT", false ) )
{
_CF_onError(_CF_this, "skill2", _CF_this['skill2'].value, "Error in skill2 text.");
_CF_error_exists = true;
}

//form element skill3 required check
if( !_CF_hasValue(_CF_this['skill3'], "SELECT", false ) )
{
_CF_onError(_CF_this, "skill3", _CF_this['skill3'].value, "Error in skill3 text.");
_CF_error_exists = true;
}

//form element skill4 required check
if( !_CF_hasValue(_CF_this['skill4'], "SELECT", false ) )
{
_CF_onError(_CF_this, "skill4", _CF_this['skill4'].value, "Error in skill4 text.");
_CF_error_exists = true;
}

//form element skill5 required check
if( !_CF_hasValue(_CF_this['skill5'], "SELECT", false ) )
{
_CF_onError(_CF_this, "skill5", _CF_this['skill5'].value, "Error in skill5 text.");
_CF_error_exists = true;
}


//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }

}
return false;
}else {
// run userdefined onSubmit javascript.
return PeerContactFormValidation(_CF_this);
return true;
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="Main">
<table width="760" cellspacing="2" cellpadding="3" border="0">
<tr class="menuhead">
<th scope="row" width="15%" rowspan="2" valign="top"> <table cellpadding="5" cellspacing="0" align="left" width="100%" border="0">
<tr class="menuhead">
<th scope="row"><a href="index.cfm" class="home" tabindex="1">Home</a></th>
</tr>
<tr class="menu">
<th scope="row" class="menu">Organizations</th>
</tr>
<tr>
<td scope="row" class="menu" align="left"><ul>
<li><a href="index.cfm?Circuit=Organization&fuseaction=Add" tabindex="2">Add</a></li>
<li><a href="index.cfm?Circuit=Organization&fuseaction=View" tabindex="3">View All</a></li>
</ul></td>
</tr>
<tr class="menu">
<th scope="row" class="menu">Peer Contacts</th>
</tr>
<tr>
<td scope="row" class="menu" align="left"><ul>
<li><a href="index.cfm?Circuit=PeerContact&fuseaction=SelectOrg" tabindex="4">Add</a></li>
<li><a href="index.cfm?Circuit=PeerContact&fuseaction=View" tabindex="5">View All</a></li>
</ul></td>
</tr>
<tr class="menu">
<th scope="row" class="menu">Resources</th>
</tr>
<tr>
<td scope="row" class="menu" align="left"><ul>
<li><a href="index.cfm?Circuit=Resource&fuseaction=SelectOrg" tabindex="6">Add</a></li>
<li><a href="index.cfm?Circuit=Resource&fuseaction=View" tabindex="7">View All</a></li>
</ul></td>
</tr>
<tr class="menuhead">
<th scope="row"><a href="index.cfm?Circuit=Logout" class="home" tabindex="8">Logout</a></th>
</tr>
</table></th>
<td width="85%" height="25" class="menuHead">CFBCI Grantee Directory</td>
</tr>
<tr class="content">
<td height="600" valign="top"><script language="javascript">
function PeerContactFormValidation(form)
{
var formvalid = true;

if (typeof(fValidate) == "function")
{
fValidate = new fValidate( form, 15, true );
}

for(var i = 0; i < form.elements.length; i++)
{
fValidate.revertError(form.elements);
}

//fValidate.errorMode = 15;
//fValidate.f = form;

//Peer Contact States Validation - Start
if(form.peer_contact_states_right.length < 1)
{
formvalid = false;

//set text red here
fValidate.showError( form.peer_contact_states_right.label, true, form.peer_contact_states_right );

}
//Peer Contact States Validation - End

//Last Name Validation - Start
if(form.Last_name.value.length < 1)
{

formvalid = false;
//set text red here
fValidate.showError( form.Last_name.label, false, form.Last_name );
}
//Last Name Validation - End

//First Name Validation - Start
if(form.First_name.value.length < 1)
{
formvalid = false;
//set text red here
fValidate.showError( form.First_name.label, false, form.First_name );
}
//First Name Validation - End

//Contact Methond Validation - Start
for (var i = 0 ; i < form.contact_method.length;i++)
{
if (form.contact_method.checked == true)
{
switch(form.contact_method.value)
{
case "4": //All
formvalid = CheckTextBox(form.address);
formvalid = CheckTextBox(form.city);
if( form.state.selectedIndex == 0 )
{
formvalid = false;
//set text red here
fValidate.showError( form.state.label, false, form.state );
}
if( form.Zip5.value.length != 5 || isNaN(form.Zip5.value))
{
formvalid = false;
//set text red here
fValidate.showError( form.Zip5.label, false, form.Zip5 );
}
if(form.Zip4.value.length > 0)
{
if( form.Zip4.value.length != 4 || isNaN(form.Zip4.value))
{
formvalid = false;
//set text red here
fValidate.showError( form.Zip4.label, false, form.Zip4 );
}
}

if( !IsValidEmail(form.email.value) )
{
formvalid = false;
//set text red here
fValidate.showError( form.email.label, false, form.email );
}

if( !IsValidPhone(form.Phone.value) )
{
formvalid = false;
//set text red here
fValidate.showError( form.Phone.label, false, form.Phone );
}
break;

case "3": //By Mail
formvalid = CheckTextBox(form.address);
formvalid = CheckTextBox(form.city);
if( form.state.selectedIndex == 0 )
{
formvalid = false;
//set text red here
fValidate.showError( form.state.label, false, form.state );
}
if( form.Zip5.value.length != 5 || isNaN(form.Zip5.value))
{
formvalid = false;
//set text red here
fValidate.showError( form.Zip5.label, false, form.Zip5 );
}
if(form.Zip4.value.length > 0)
{
if( form.Zip4.value.length != 4 || isNaN(form.Zip4.value))
{
formvalid = false;
//set text red here
fValidate.showError( form.Zip4.label, false, form.Zip4 );
}
}
break;

case "2": //By Email
if( !IsValidEmail(form.email.value) )
{
formvalid = false;
//set text red here
fValidate.showError( form.email.label, false, form.email );
}
break;

case "1": //By Phone
if( !IsValidPhone(form.Phone.value) )
{
formvalid = false;
//set text red here
fValidate.showError( form.Phone.label, false, form.Phone );
}
break;
}
}
else
{
formvalid = false;
//set text red here

fValidate.showError( form.contact_method[0].label, false, form.contact_method[0] );
}
}
//Contact Methond Validation - End

//Skill Area(s) Validation - Start
var skills = new Array();
skills[0] = form.skill1;
skills[1] = form.skill2;
skills[2] = form.skill3;
skills[3] = form.skill4;
skills[4] = form.skill5;

var duplaciteSkills = new Array();
var skill;

//This loop adds all of the duplacite skills to an array.
while(skills.length > 0)
{
skill = skills.shift();
//alert(skill.selectedIndex);
if(skill.selectedIndex == 0)
{
//alert(2);
duplaciteSkills.push(skill);
formvalid = false;
continue;
}
for(var i = 0; i < skills.length; i++)
{
//Making sure that a value is selected and not the same as another selection
if(skill.selectedIndex == skills.selectedIndex)
{
//alert(1);
duplaciteSkills.push(skill);
duplaciteSkills.push(skills);
formvalid = false;
}


}
skill = null;
}

if(duplaciteSkills.length > 0)
{
formvalid = false;
duplaciteSkills = UniqueArray(duplaciteSkills);
//set text red here

for(var i = 0; i < duplaciteSkills.length; i++)
{
fValidate.showError( duplaciteSkills.label, false, duplaciteSkills );
}
}
//Skill Area(s) Validation - End

return formvalid;
}

// Array.unique( strict ) - Remove duplicate values
function UniqueArray( b )
{
var a = []
var i
var l = b.length;

for( i=0; i<l; i++ ) {
if( a.indexOf( b, 0, b ) < 0 )
{
a.push( b );
}
}

return a;
}

function CheckTextBox(elem)
{
if( Trim(elem.value).length == 0 )
{
//set text red here
fValidate.showError( elem.label, false, elem );

return false;
}
return true;
}
function IsValidPhone(number)
{
//At some point we may want to add more complex validation.
return (Trim(number).length > 0)
}

function IsValidEmail(address)
{
//At some point we may want to add more complex validation.
return (Trim(address).length > 0)
}

function Trim(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
</script>
<script>
function checkCustomValidation(acceptme)
{
if (acceptme == "Phone")
document.getElementById("Email").style.display ="none";
else
document.getElementById("Phone").style.display ="none";

document.getElementById(acceptme).style.display ="inline";

//if ((document.AddOrg.acceptme.value == null) || (document.AddOrg.acceptme.value == ''))
if ((document.AddOrg.elements[acceptme].value == null) || (document.AddOrg.elements[acceptme].value == ''))
return false;
else
return true;
}
</script>
<script language="javascript">
function mergeZip()
{
document.AddOrg.zip.value = document.AddOrg.Zip5.value + document.AddOrg.Zip4.value;
}

function MergePhone()
{
document.AddOrg.DoPhone.value = document.AddOrg.Ext.value;
document.AddOrg.FullPhone.value = document.AddOrg.Phone.value + "x" + document.AddOrg.Ext.value;
}
function ChangeDropDown(me3)
{
if (me3.name == "skill1")
{
document.AddOrg.skill2.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill3.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill4.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill5.attributes["alt"].value = "selecti|0," + me3.value;
}
if (me3.name == "skill2")
{
document.AddOrg.skill1.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill3.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill4.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill5.attributes["alt"].value = "selecti|0," + me3.value;
}
if (me3.name == "skill3")
{
document.AddOrg.skill1.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill2.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill4.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill5.attributes["alt"].value = "selecti|0," + me3.value;
}
if (me3.name == "skill4")
{
document.AddOrg.skill1.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill2.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill3.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill5.attributes["alt"].value = "selecti|0," + me3.value;
}
if (me3.name == "skill5")
{
document.AddOrg.skill1.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill2.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill3.attributes["alt"].value = "selecti|0," + me3.value;
document.AddOrg.skill4.attributes["alt"].value = "selecti|0," + me3.value;
}
}
function runBoth()
{
//alert(document.AddOrg.contact_method.value);
mergeZip();
MergePhone();
}

function select_all()
{
for ( var j = 0; j < document.AddOrg.peer_contact_states_right.length; j++ )
{
document.AddOrg.peer_contact_states_right.options[j].selected = true;

}
}

</script>
<h3>Add Peer Contact Information - Step 2 of 3</h3>
<form name="AddOrg" action="index.cfm" method="POST" style="border:0 " class="smallfieldcell" onload="runBoth();" onSubmit="return _CF_checkAddOrg(this)">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="200"></td>
<td width="350"></td>
</tr>
<tr>
<td><label for="org_name">Organization Name:</label>
</td>
<td><input name="org_name" id="org_name" type="text" value="ABC Organization" maxlength="150" tooltip="Organization Name" disabled="disabled" class="fieldcell" tabindex="9" size="50" emsg="Enter an Organization Name" alt="blank" />
</td>
</tr>
<input name="org_name" id="org_name" type="hidden" value="ABC Organization" />
<tr>
<td valign="top"><label for="peer_contact_states_right">Select Peer Contact for Org in State(s):</label>
</td>
<td><table border="0">
<tr>
<td><select class="fieldcell" name="peer_contact_states_left" size="5" multiple style=" width:100px " onDblClick="moveDualList(document.AddOrg.peer_contact_states_left, document.AddOrg.peer_contact_states_right, false);" tabindex="10" >
<BR>
<option value="3">AZ</option>
</select></td>
<td><center>
<INPUT TYPE="Button" VALUE="&gt;&gt;" STYLE="width:20px; height:15px; font-size:9px; background-color:#F0EFD9;" onClick="moveDualList(document.AddOrg.peer_contact_states_left, document.AddOrg.peer_contact_states_right, true);">
<BR>
<INPUT TYPE="Button" VALUE="&gt;" STYLE="width:20px; height:15px; font-size:9px; background-color:#F0EFD9;" onClick="moveDualList(document.AddOrg.peer_contact_states_left, document.AddOrg.peer_contact_states_right, false);">
<BR>
</center>
<center>
<INPUT TYPE="Button" VALUE="&lt;" STYLE="width:20px; height:15px; font-size:9px; background-color:#F0EFD9;" onClick="moveDualList(document.AddOrg.peer_contact_states_right, document.AddOrg.peer_contact_states_left, false);">
<BR>
<INPUT TYPE="Button" VALUE="&lt;&lt;" STYLE="width:20px; height:15px; font-size:9px; background-color:#F0EFD9;" onClick="moveDualList(document.AddOrg.peer_contact_states_right, document.AddOrg.peer_contact_states_left, true);">
<BR>
</center></td>
<td><select class="fieldcell" name="peer_contact_states_right" size="5" style=" width:100px " multiple onDblClick="moveDualList(document.AddOrg.peer_contact_states_right, document.AddOrg.peer_contact_states_left, false);" alt="selectm|1" emsg="Please select Peer Contact for Org in State(s)">
><BR>
</select>
</td>
<input name="peer_contact_states_right_required" id="peer_contact_states_right_required" type="hidden" value="Please provide the states" />
</tr>
</table></td>
</tr>
<tr>
<td><label for="Last_name">Last Name:</label></td>
<td><input name="Last_name" id="Last_name" type="text" maxlength="150" tabindex="20" emsg="Enter a Last Name" size="25" alt="blank" />
</td>
</tr>
<tr>
<td><label for="First_name">First Name:</label></td>
<td><input name="First_name" id="First_name" type="text" maxlength="150" tooltip="First_name" enabled="Yes" size="25" tabindex="30" emsg="Enter a First Name" visible="Yes" alt="blank" /></td>
</tr>
<tr>
<td><label for="address">Street Address:</label></td>
<td><input name="address" id="address" type="text" maxlength="150" emsg="Enter a Street Address." tooltip="Address" size="50" visible="Yes" enabled="Yes" tabindex="40" /></td>
</tr>
<tr>
<td><label for="city">City:</label></td>
<td><table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"></td>
<td width="30%" align="right"></td>
<td width="20%"></td>
</tr>
<tr>
<td><input name="city" id="city" type="text" maxlength="150" emsg="Enter a City." tooltip="City" size="25" visible="Yes" enabled="Yes" tabindex="50" />
</td>
<td><label for="state">State:</label></td>
<td><select name="state" width="70" enabled="Yes" onchange="ChangeDropDown(this);" tabindex="51" size="1" visible="Yes" emsg="Select a State." tooltip="State" >
<option value="0" selected="selected">N/A</option>
<option value="2">AK </option>
<option value="1">AL </option>
<option value="4">AR </option>
<option value="3">AZ </option>
<option value="5">CA </option>
<option value="6">CO </option>
<option value="7">CT </option>
<option value="51">DC </option>
<option value="8">DE </option>
<option value="9">FL </option>
<option value="10">GA </option>
<option value="55">GU </option>
<option value="11">HI </option>
<option value="15">IA </option>
<option value="12">ID </option>
<option value="13">IL </option>
<option value="14">IN </option>
<option value="16">KS </option>
<option value="17">KY </option>
<option value="18">LA </option>
<option value="21">MA </option>
<option value="20">MD </option>
<option value="19">ME </option>
<option value="22">MI </option>
<option value="23">MN </option>
<option value="25">MO </option>
<option value="24">MS </option>
<option value="26">MT </option>
<option value="33">NC </option>
<option value="34">ND </option>
<option value="27">NE </option>
<option value="29">NH </option>
<option value="30">NJ </option>
<option value="31">NM </option>
<option value="28">NV </option>
<option value="32">NY </option>
<option value="35">OH </option>
<option value="36">OK </option>
<option value="37">OR </option>
<option value="38">PA </option>
<option value="54">PR </option>
<option value="39">RI </option>
<option value="40">SC </option>
<option value="41">SD </option>
<option value="42">TN </option>
<option value="43">TX </option>
<option value="44">UT </option>
<option value="46">VA </option>
<option value="53">VI </option>
<option value="45">VT </option>
<option value="47">WA </option>
<option value="49">WI </option>
<option value="48">WV </option>
<option value="50">WY </option>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><label for="Zip5">Zip Code:</label></td>
<td><table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"></td>
<td width="30%" align="right"></td>
<td width="20%"></td>
</tr>
<tr>
<td><input name="Zip5" id="Zip5" type="text" maxlength="5" onchange="runBoth();" tabindex="60" emsg="Enter valid Zip Code." size="5" />
</td>
<td><label for="Zip4">+ 4 optional&nbsp;&nbsp;</label></td>
<td><input name="Zip4" id="Zip4" type="text" maxlength="4" onchange="runBoth();" tabindex="70" emsg="Enter valid Zip Code." size="4" />
</td>
</tr>
</table></td>
<input name="zip" id="zip" type="hidden" />
</tr>
<input name="ORGSELECTED" id="ORGSELECTED" type="hidden" value="3" />
<tr>
<td><label for="Phone">Phone:</label></td>
<td><input name="Phone" id="Phone" type="text" maxlength="15" width="150" emsg="Please enter Phone Number" size="11" onchange="runBoth();" alt="phone|bok" tabindex="80" />
<label for="Ext">x</label>
<input name="Ext" id="Ext" type="text" maxlength="4" width="50" size="4" onchange="runBoth();" tabindex="90" alt="number|bok" class="smallfieldcell2" /></td>
</tr>
<input name="DoPhone" id="DoPhone" type="hidden" />
<input name="FullPhone" id="FullPhone" type="hidden" />
<tr>
<td><label for="email">Email: (Phone or email is required)</label></td>
<td><input name="email" id="email" type="text" maxlength="150" enabled="Yes" onchange="runBoth();" tabindex="100" size="25" visible="Yes" emsg="Please provide a Valid Email Address" tooltip="Email" alt="email|bok" /></td>
</tr>
<tr>
<td><label for="contact_method">Preferred contact method(s):</label></td>
<td><script language="javascript">
function getMyValue()
{
return "0";
}
</script>
<input name="contact_method" id="contact_method" type="radio" value="4" tabindex="101" emsg="Select a Preferred Contact Method." alt="radio" />
<span class="style6">All</span>&nbsp;&nbsp;
<script language="javascript">
function getMyValue()
{
return "0";
}
</script>
<input name="contact_method" id="contact_method" type="radio" value="2" tabindex="101" alt="radio" />
<span class="style6">By Email</span>&nbsp;&nbsp;
<script language="javascript">
function getMyValue()
{
return "0";
}
</script>
<input name="contact_method" id="contact_method" type="radio" value="3" tabindex="101" alt="radio" />
<span class="style6">By Mail</span>&nbsp;&nbsp;
<script language="javascript">
function getMyValue()
{
return "0";
}
</script>
<input name="contact_method" id="contact_method" type="radio" value="1" tabindex="101" alt="radio" />
<span class="style6">By Phone</span>&nbsp;&nbsp; </td>
</tr>
<tr>
<td colspan="2"><label for="skill6">Select Area(s) of Experience:</label></td>
</tr>
<input name="skill6" id="skill6" type="hidden" />
<tr>
<td><label for="skill1"># 1 Skill Area:</label>
<BR />
</td>
<td><select name="skill1" visible="Yes" enabled="Yes" tooltip="State" width="285" tabindex="110" size="1" emsg="Select Skill Area 1" alt="selecti|0" onchange="ChangeDropDown(this);" >
<option value="0" selected="selected">Please Select</option>
<option value="1">Access</option>
<option value="2">Accountability - reporting; record keeping</option>
<option value="3">Barriers</option>
<option value="4">Capacity Building</option>
<option value="5">Contracting</option>
<option value="6">Eligibility - Registration</option>
<option value="7">Employability</option>
<option value="8">Funding</option>
<option value="9">Intermediaries</option>
<option value="10">Legal Issues</option>
<option value="11">Mapping</option>
<option value="12">Outreach</option>
<option value="13">Partnerships</option>
<option value="14">Partnerships - Financial</option>
<option value="15">Partnerships - Non-Financial</option>
<option value="16">Performance Standards</option>
<option value="17">Procurement</option>
<option value="18">Promising Practices</option>
<option value="19">Referral Process</option>
<option value="20">Relationship</option>
<option value="21">Resource Directories</option>
<option value="22">Rural Issues</option>
<option value="23">Solicitation Process</option>
<option value="24">Sub-Contracting</option>
<option value="25">Technical Assistance</option>
<option value="26">Technology/Internet</option>
<option value="27">Volunteers</option>
<option value="28">Working with Business</option>
<option value="29">Working with Cultural Groups</option>
<option value="30">Advertising</option>
</select>
</td>
</tr>
<tr>
<td><label for="skill2"># 2 Skill Area:</label>
</td>
<td><select name="skill2" visible="Yes" enabled="Yes" tooltip="State" width="285" tabindex="120" size="1" emsg="Select Skill Area 2" alt="selecti|0" onchange="ChangeDropDown(this);" >
<option value="0" selected="selected">Please Select</option>
<option value="1">Access</option>
<option value="2">Accountability - reporting; record keeping</option>
<option value="3">Barriers</option>
<option value="4">Capacity Building</option>
<option value="5">Contracting</option>
<option value="6">Eligibility - Registration</option>
<option value="7">Employability</option>
<option value="8">Funding</option>
<option value="9">Intermediaries</option>
<option value="10">Legal Issues</option>
<option value="11">Mapping</option>
<option value="12">Outreach</option>
<option value="13">Partnerships</option>
<option value="14">Partnerships - Financial</option>
<option value="15">Partnerships - Non-Financial</option>
<option value="16">Performance Standards</option>
<option value="17">Procurement</option>
<option value="18">Promising Practices</option>
<option value="19">Referral Process</option>
<option value="20">Relationship</option>
<option value="21">Resource Directories</option>
<option value="22">Rural Issues</option>
<option value="23">Solicitation Process</option>
<option value="24">Sub-Contracting</option>
<option value="25">Technical Assistance</option>
<option value="26">Technology/Internet</option>
<option value="27">Volunteers</option>
<option value="28">Working with Business</option>
<option value="29">Working with Cultural Groups</option>
<option value="30">Advertising</option>
</select>
</td>
</tr>
<tr>
<td><label for="skill3"># 3 Skill Area:</label>
</td>
<td><select name="skill3" visible="Yes" enabled="Yes" tooltip="State" width="285" tabindex="130" size="1" emsg="Select Skill Area 3" alt="selecti|0" onchange="ChangeDropDown(this);" >
<option value="0" selected="selected">Please Select</option>
<option value="1">Access</option>
<option value="2">Accountability - reporting; record keeping</option>
<option value="3">Barriers</option>
<option value="4">Capacity Building</option>
<option value="5">Contracting</option>
<option value="6">Eligibility - Registration</option>
<option value="7">Employability</option>
<option value="8">Funding</option>
<option value="9">Intermediaries</option>
<option value="10">Legal Issues</option>
<option value="11">Mapping</option>
<option value="12">Outreach</option>
<option value="13">Partnerships</option>
<option value="14">Partnerships - Financial</option>
<option value="15">Partnerships - Non-Financial</option>
<option value="16">Performance Standards</option>
<option value="17">Procurement</option>
<option value="18">Promising Practices</option>
<option value="19">Referral Process</option>
<option value="20">Relationship</option>
<option value="21">Resource Directories</option>
<option value="22">Rural Issues</option>
<option value="23">Solicitation Process</option>
<option value="24">Sub-Contracting</option>
<option value="25">Technical Assistance</option>
<option value="26">Technology/Internet</option>
<option value="27">Volunteers</option>
<option value="28">Working with Business</option>
<option value="29">Working with Cultural Groups</option>
<option value="30">Advertising</option>
</select>
</td>
</tr>
<tr>
<td><label for="skill4"># 4 Skill Area:</label>
</td>
<td><select name="skill4" visible="Yes" enabled="Yes" tooltip="State" width="285" tabindex="140" size="1" emsg="Select Skill Area 4" alt="selecti|0" onchange="ChangeDropDown(this);" >
<option value="0" selected="selected">Please Select</option>
<option value="1">Access</option>
<option value="2">Accountability - reporting; record keeping</option>
<option value="3">Barriers</option>
<option value="4">Capacity Building</option>
<option value="5">Contracting</option>
<option value="6">Eligibility - Registration</option>
<option value="7">Employability</option>
<option value="8">Funding</option>
<option value="9">Intermediaries</option>
<option value="10">Legal Issues</option>
<option value="11">Mapping</option>
<option value="12">Outreach</option>
<option value="13">Partnerships</option>
<option value="14">Partnerships - Financial</option>
<option value="15">Partnerships - Non-Financial</option>
<option value="16">Performance Standards</option>
<option value="17">Procurement</option>
<option value="18">Promising Practices</option>
<option value="19">Referral Process</option>
<option value="20">Relationship</option>
<option value="21">Resource Directories</option>
<option value="22">Rural Issues</option>
<option value="23">Solicitation Process</option>
<option value="24">Sub-Contracting</option>
<option value="25">Technical Assistance</option>
<option value="26">Technology/Internet</option>
<option value="27">Volunteers</option>
<option value="28">Working with Business</option>
<option value="29">Working with Cultural Groups</option>
<option value="30">Advertising</option>
</select>
</td>
</tr>
<tr>
<td><label for="skill5"># 5 Skill Area:</label>
</td>
<td><select name="skill5" visible="Yes" enabled="Yes" tooltip="State" width="285" tabindex="150" size="1" emsg="Select Skill Area 5" alt="selecti|0" onchange="ChangeDropDown(this);" >
<option value="0" selected="selected">Please Select</option>
<option value="1">Access</option>
<option value="2">Accountability - reporting; record keeping</option>
<option value="3">Barriers</option>
<option value="4">Capacity Building</option>
<option value="5">Contracting</option>
<option value="6">Eligibility - Registration</option>
<option value="7">Employability</option>
<option value="8">Funding</option>
<option value="9">Intermediaries</option>
<option value="10">Legal Issues</option>
<option value="11">Mapping</option>
<option value="12">Outreach</option>
<option value="13">Partnerships</option>
<option value="14">Partnerships - Financial</option>
<option value="15">Partnerships - Non-Financial</option>
<option value="16">Performance Standards</option>
<option value="17">Procurement</option>
<option value="18">Promising Practices</option>
<option value="19">Referral Process</option>
<option value="20">Relationship</option>
<option value="21">Resource Directories</option>
<option value="22">Rural Issues</option>
<option value="23">Solicitation Process</option>
<option value="24">Sub-Contracting</option>
<option value="25">Technical Assistance</option>
<option value="26">Technology/Internet</option>
<option value="27">Volunteers</option>
<option value="28">Working with Business</option>
<option value="29">Working with Cultural Groups</option>
<option value="30">Advertising</option>
</select>
</td>
</tr>
<input name="Submitted" id="Submitted" type="hidden" value="1" />
<input name="Circuit" id="Circuit" type="hidden" value="PeerContact" />
<input name="fuseaction" id="fuseaction" type="hidden" value="PeerContact2Add" />
<input name="Edit" id="Edit" type="hidden" value="False" />
<input name="OrgID" id="OrgID" type="hidden" value="3" />
<input name="PrevQuerySting" id="PrevQuerySting" type="hidden" value="/cfbci-tlc/admin/index.cfm?" />
<tr>
<td colspan="2"><BR />
<BR />
<table width="60%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr align="center">
<td width="33.3%">&nbsp;
<input name="Previous" id="Previous" type="button" value="Previous" visible="Yes" enabled="Yes" tooltip="Previous" tabindex="200" onclick="javascript:window.location.href=' /></td>
<td width="33.3%">&nbsp;
<input name="Cancel" id="Cancel" type="button" value="Cancel" visible="Yes" enabled="Yes" tooltip="Cancel" tabindex="210" onclick="javascript:window.location.href='main.cfm';" /></td>
<td width="33.3%">&nbsp;
<input name="Next" id="Next" type="submit" value="Next" enabled="Yes" tabindex="220" visible="Yes" tooltip="Next" /></td>
</tr>
</table>
<br />
<br />
</td>
</tr>
</table>
<input type='hidden' name='org_name_CFFORMREQUIRED' value='Enter Organization Name.'>
<input type='hidden' name='Last_name_CFFORMREQUIRED' value=': Enter a Last Name.'>
<input type='hidden' name='First_name_CFFORMREQUIRED' value='Enter a First Name.'>
<input type='hidden' name='Zip5_CFFORMZIPCODE' value='Enter valid Zip Code.'>
<input type='hidden' name='Zip4_CFFORMINTEGER' value='Enter Zip Code.'>
<input type='hidden' name='Phone_CFFORMTELEPHONE' value='Enter a valid Phone Number.'>
<input type='hidden' name='Ext_CFFORMINTEGER' value='Enter Phone Extension entry.'>
<input type='hidden' name='email_CFFORMEMAIL' value='Enter a valid E-mail Address.'>
<input type='hidden' name='contact_method_CFFORMREQUIRED' value='Select a Preferred Contact Method.'>
<input type='hidden' name='contact_method_CFFORMREQUIRED' value='Select a Preferred Contact Method.'>
<input type='hidden' name='contact_method_CFFORMREQUIRED' value='Select a Preferred Contact Method.'>
<input type='hidden' name='contact_method_CFFORMREQUIRED' value='Select a Preferred Contact Method.'>
</form>
<script>
runBoth();
//window.location.reload( false );
</script>
</td>
</tr>
</table>
 
I added this little bit of code and it works fine now.

Array.prototype.indexOf=function(n)
{for(var i=0;i<this.length;i++){if(this===n){return i;}}return -1;}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top