ajax - jQuery live click binding issue with IE6/7 -


I have a problem in IE 6/7, where they ignore live binding of elements. I can not find any solution on this issue, and I really need both IE6 and 7 support (fixing should be done anyway). The first click of my elements works as a purpose, but afterwords binding goes away and I can not get it to work. It is not in IE8 or any other current browsers

This is my code as you can see, I am alerting the hrefID variable on line 5. After the first click, with HIV, I find that the binding disappears because it completely separates a href.

Can anyone help?

  // AJAX page $ ("#mContainer a: lt (6), # home one"). Live ("click", function () {var clickID = 0; var hrefID = $ (this) .attr ("href"); alert (hrefID); about 'case': clickID = 3; break; case ('' Home '': clickID = 0; break; case 'portfolio': clickID = 1; break; case 'resume': clickID = 2; 'contact': clickID = 4; break; case 'tutorial': clickID = 5; break;} $ .ajax ({type: 'POST', url: "/includes/pages/"+hrefID+".php", data: "Ajaxtab = 1", cache: false, success: function (code) {// Change tab image var expireDate = new date (new date). GetTime () + 86400 000 * 5); // 5 days document.cookie = "soluml =" + hrefID + "; end =" + expireDate.toGMTString (); $ ("# Body"). Feedto ("sharp", 0, function () {$ ("# body"). Html (code);}); $ ("#b ("Fast", 1); $ .post ({ajaxtab: clickID} "/ / topnav.php included", function (data) {. $ ("# MContainer") HTML (data)}) ;}, Error: work () {back true;}}); description is false;}); //  

I'm not 100% sure if this is a problem, but JSLIT is missing a Old IES killed about half-colon are modern browsers with very little forgiveness, so I want to give it a shot first. I am very concerned that the problem remains itself.

This:

  $ Post ("include / include / topnav.php", {ajaxtab: clickID}, function (data) {$ ("# mContainer") HTML (data).});  

should be:

  $ Post ("/ include / topnav.php", {ajaxtab: clickID}, function (data) {$ ("#mContainer") HTML (data);)}); 


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -