Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I have site :www.abfar-bushehr.ir/?template=English
it's menu works fine in chrome and fire fox browsers but it doesn't work i IE.
would some body please help me?
it's really important for me

Thanks a lot
Posted
Updated 12-Apr-15 0:56am
v2
Comments
Kornfeld Eliyahu Peter 12-Apr-15 7:22am    
Use debugger...
In IE there is a JavaScript error: SCRIPT1028: Expected identifier, string or number at menuJScript.js, line 20 character 5
behish 12-Apr-15 7:36am    
I saw that.
you know I write Jquery code for my menu but that jquery does not work in IE
here is my jquery:
/*Desinged By "B@h@reh.$h@r!f!@n" 22-01-2014*/
$(document).ready(function () {
$("#mainMenu ul").css({
"position": "absolute",
"margin": "0",
"padding": "0"
});
$("#mainMenu").css({
"position": "relative"
});
$("#mainMenu > li").css({
"display": "inline-block"
});

$("#mainMenu > li > ul").css({
"display": "none"
});
$("#mainMenu > li > ul ul").css({
"top": "0px",
});

$("#mainMenu li").css({
"list-style": "none",
"position": "relative",
"margin": "0",
"padding": "0"
});


var param = $('#mainMenu').attr("dir");
if (param == "ltr") {
$("#mainMenu > li > ul").css("left", "0");
}
$("#mainMenu li").mouseenter(function () {
$(this).parent().find("ul").css("display", "none");
if ($(this).find(">ul") != undefined) {
$(this).find(">ul").css("display", "block");
if ($(this).parent().attr('id') != "mainMenu") {
if (param == "ltr")
$(this).find(">ul").css("left", $(this).width());
else {
$(this).find(">ul").css("right", $(this).width());
}
}
}
});
$("#mainMenu").mouseleave(function () {
$("#mainMenu").find("ul").css("display", "none");
});


})

would you please tell me what to do?
Kornfeld Eliyahu Peter 12-Apr-15 7:54am    
You are running your site in IE7 compatibility mode! Why?
Try and remove that <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>...
Check jQuery compatibility here: https://jquery.com/browser-support/!
behish 13-Apr-15 7:29am    
Thanks a lot,It just work
Mohibur Rashid 13-Apr-15 3:57am    
You should follow the suggestion, regarding debugging. And I also have checked your source code. one of your javascript is written as
$("#mainMenu > li > ul ul").css({
"top": "0px",//line 19
});//line 20

line 19 has a comma at the end. IE does not support this type of coding. This type of coding should not be allowed. Interestingly lots of other programming language also support same behavior. Anyway, remove the comma on line 19. There may be other error too. Just debug them on your ie browser(F12 is the magic button)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900