Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-13-2012, 05:44 PM   PM User | #1
carreto
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
carreto is an unknown quantity at this point
conflict between js - don't work simultaneously

Hi,
can you help me out please?
I have a menu working with ddsmoothmenu.js.
When i insert the js below the menu stop working.

Code:
// validateForm.js//
$('document').ready(function(){
$('#form').validate({
rules:{
"email":{
required:true,
email:true,
maxlength:100
},						
},
messages:{
"email":{
required:"This field is required",
email:"Please enter a valid email address"
},		
},
submitHandler: function(form){
$(form).ajaxSubmit({
target: '#preview',
success: function(response) { 
$('#formbox').slideUp('fast'); 
}
}); 
}
})
});

I load these files in the HTML:
Code:
<script src="js/jquery-1.7.2.min.js"></script> <!-- jQuery library --> 
<script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>
<script src="js/success_msg.js"></script> <!-- jQuery library --> 
<script src="js/jquery.easing.1.3.min.js"></script> <!-- jQuery Easing --> 
<script src="js/jquery-ui.min.js"></script> <!-- jQuery Ui --> 
<script src="js/ddsmoothmenu.js"></script> <!-- Nav Menu ddsmoothmenu -->
<script src="js/jquery.flexslider.js"></script> <!-- Flex Slider  -->
<script src="js/jquery.eislideshow.js"></script> <!-- Elastic Slider  -->
<script src="js/jquery.iconmenu.js"></script> <!-- Sliding Text and Icon Menu Style  -->
<script src="js/colortip.js"></script> <!-- Colortip Tooltip Plugin  -->
<script src="js/tytabs.js"></script> <!-- jQuery Plugin tytabs  -->
<script src="js/carousel.js"></script> <!-- jQuery Carousel  -->
<script src="js/jquery.prettyPhoto.js"></script> <!-- jQuery Prettyphoto  -->
<script src="js/jquery.isotope.min.js"></script> <!-- Isotope Filtering  -->
<script src="js/selectnav.js"></script> <!-- Responsive Navigation Menu by SelectNav -->
<script src="js/jquery.ui.totop.js"></script> <!-- UItoTop plugin  -->
<script src="js/custom.js"></script> <!-- Custom Js file for javascript in html -->
<script src="js/jquery.tweet.js"></script> <!-- jQuery Tweets -->
<script src="js/jflickrfeed.min.js"></script> <!-- jQuery Flickr -->
<script src="js/twitter-flickr-options.js"></script> <!-- jQuery Tweets Options -->
<script type="text/javascript" src="js/validateForm.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script> 
<script type="text/javascript" src="js/jquery.form.js"></script> 
<script type="text/javascript" src="js/googleTranslate.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>document.cookie='resolution='+Math.max(screen.width,screen.height)+'; path=/';</script>
<script language="JavaScript" type="text/javascript"> if (top.location != self.location) top.location = self.location; </script>

Last edited by VIPStephan; 11-14-2012 at 01:46 AM.. Reason: added code BB tags
carreto is offline   Reply With Quote
Old 11-14-2012, 01:45 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
First of all, read this sticky and think about whether this could apply to you. Secondly, read the browser’s error console and tell us what it says.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:55 PM.


Advertisement
Log in to turn off these ads.