Solved

javascript not working in ie7

Posted on 2012-03-27
2
303 Views
Last Modified: 2012-03-27
This code works in firefox but not in ie7.  It also makes all of my other javascript codes fail in ie7.  Does anybody see something wrong with it.

$("#account_info").validate( {
							
	  errorPlacement: function (error, element) {  //puts the error message beside the label    
	   $('#'+element.attr("id")+'_label').append(error); 		 
         },
		 
		 
	  rules: { 
       profile_2: { profileNotEqualTo: "#profile_1"}, //profile 1 cannot be equal to profile 2  
	     },
		 
	  messages: { // custom messages
	   county_ansi: "Setting your location is required. Please enter a city or zip code to search."
		 },
		 
	  submitHandler: function(form) { //submits form and hide button shows loading
       $("#loading_box").show();
       $("#button_box").hide();
	   form.submit();    
         }
		 
	     });

Open in new window

0
Comment
Question by:Luey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 365 total points
ID: 37772317
IE7 is fussy about javascript syntax. Could it be that line 13 needs a semi-colon at the end?
0
 

Author Closing Comment

by:Luey
ID: 37772565
I agree with fussy.  I took out this comma and it worked.  "#profile_1"}, //profile 1  
 I will try the semicolon.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question