troubleshooting Question

My form is not submitting when I click on submit.

Avatar of lulu50
lulu50Flag for United States of America asked on
JavaScriptJScriptAJAX
6 Comments1 Solution352 ViewsLast Modified:
Hi,

the search criteria on the left side menu is not submitting my form in Firefox but it is working fine in IE.

I am not sure how to solve it.

http://www.churchesbulletin.com/post.cfm?stid=22&ctid=3956&chid=1676
<div align="center" class="BtnSearchByChurchhere" style="text-align:center;padding: 6px 0px 0px 0px;" >    
	<input id="BtnCh" type="submit" value="" name="BtnCh" onclick="valChurch();"/>
	</div>
________________________________________________


function valChurch(){

var errorMsg = "";
var errorField = null;
var objFromDate = document.getElementById("dateFromCh").value; 
var objToDate = document.getElementById("dateToCh").value; 

var date1 = new Date(objFromDate); 
var date2 = new Date(objToDate); 

var DcFrm = document.getElementById("FRMAcc");
DcFrm.method="post"; 

   
 if (DcFrm.PriceFromCh.value != "")
 {
	if(parseInt(DcFrm.PriceFromCh.value) > parseInt(DcFrm.PriceToCh.value))
	{
		errorMsg += "Price FROM Less than price TO\n";
		if (errorField==null) errorField=FRMAcc.PriceFromCh;
	}
 }
 
 if(date1 > date2) 
  { 
		errorMsg += "From Date should be less than To Date\n";
		if (errorField==null) errorField=FRMAcc.dateFromCh;
  } 
 
  if (errorMsg != "") {
    errorMsg += "---------------------------------\n\n";
    errorMsg += "Please correct the problem(s)\n";
    alert(errorMsg );
    errorField.focus();
    return false;
  }
 
	FRMAcc.action="post.cfm?s=CH&CHID=" + '<cfoutput>#cookie.CHID#</cfoutput>';
	FRMAcc.submit(); 
}
ASKER CERTIFIED SOLUTION
AielloJ

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros